TencentDB for Redis supports the automatic failover of proxy nodes and Redis servers (data storage nodes) to ensure service availability.
You can use the failure simulation feature in the TencentDB for Redis console to perform failure simulations or tests. The shutdown
command is sent to all master nodes to trigger the automatic high availability (HA) logic to perform failure simulation.
Proxy nodes are used in both standard and cluster architectures of TencentDB for Redis. The standard architecture has three proxy nodes, while the number of proxy nodes in the cluster architecture increases linearly with that of shards. The high availability design of proxy nodes is as follows:
TencentDB for Redis in standard architecture or cluster architecture adopts the same cluster management mechanism as the Redis Cluster, which uses the Gossip protocol to detect the status of nodes in a cluster. The cluster-node-timeout
parameter is used to specify the maximum amount of time a Redis cluster node can be unavailable, without it being considered as failing. We recommend you set this parameter to its default value (1500 ms) and do not change it. For more information, see Scaling with Redis Cluster.
A failure simulation will make Redis unavailable for less than one minute until the failover is completed. The data written during the simulation may be lost.
##API
API | Description |
---|---|
KillMasterGroup | Performs a failure simulation |
SwitchProxy | Simulates the failure of a proxy node |
Was this page helpful?