Redis Sentinel provides high availability (HA) services for open source Redis. ApsaraDB for Redis is compatible with Redis Sentinel to support services that run Sentinel. This topic describes how to enable the Sentinel-compatible mode in the ApsaraDB for Redis console.
Prerequisites
The ApsaraDB for Redis instance runs Redis 4.0, 5.0, or 6.0.
The ApsaraDB for Redis instance is deployed in a virtual private cloud (VPC).
NoteIf the ApsaraDB for Redis instance runs in the classic network, switch the network type to VPC. For more information, see Switch the network type from classic network to VPC.
Overview of Redis Sentinel
Redis Sentinel provides open source Redis with features such as master and replica monitoring, fault alerting, and automatic failover. Redis Sentinel is suitable for many business scenarios that use self-managed Redis databases and require high reliability. To facilitate the migration of these self-managed Redis databases to the cloud, Alibaba Cloud provides the Sentinel-compatible mode.
ApsaraDB for Redis uses the HA component developed by Alibaba Cloud without the need to use Redis Sentinel. For more information about the HA component, see Features.
After you enable the Sentinel-compatible mode, you can run the Sentinel commands described in the following table.
Command | Description |
SENTINEL sentinels | Queries Sentinel instances of a specified master and the status of these Sentinel instances. The following syntax is used:
|
SENTINEL get-master-addr-by-name | Queries the IP address and port number of a specified master. The following syntax is used:
|
Procedure
Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
In the left-side navigation pane, click System Parameters.
Enable the Sentinel-compatible mode for the instance.
Related API operations
API operation | Description |
Queries the configuration and operational parameters of a Redis instance. | |
Modifies the parameter settings of a Redis instance. |