检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Value range: master: master node slave: standby node. replication_ip String Parameter description: Replica IP address. Value range: N/A. is_replication Boolean Parameter description: Whether the replica is newly added.
Master/Standby, read/write splitting, and cluster (except single-replica cluster) instances: Data persistence is supported by default. Read/Write splitting Read/Write splitting instances: Read/Write splitting is implemented on the server by default.
High availability is achieved by having a standby node take over in the event that a failure occurs on the master node.
Scenarios Where Redis Operations Fail Scenario Description Master/standby switchover triggered by a fault If the master node is faulty due to Redis underlying hardware or other reasons, a master/standby switchover is triggered to ensure that the instance is still available.
DCS Best Practices This section summarizes best practices of Distributed Cache Service (DCS) in common scenarios. Each practice is given a description and procedure.
v2" "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dcs/v2/model" region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dcs/v2/region" ) func main() { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security
For single-node, master/standby, and Redis Cluster instances, connections to Redis Server nodes are displayed. On the page, you can specify a Redis Server or proxy node to query, enter an address, update the query results, and set columns to display.
failed_sum Integer Total number of failed diagnosis items. role String Node roles: master and slave. diagnosis_dimension_list Array of DiagnosisDimension objects Diagnosis dimension list. command_time_taken_list CommandTimeTakenList object Command execution duration list.
Notes and Constraints Expired keys can be scanned only for DCS Redis 4.0 and later (enterprise edition excluded) instances. Released expired keys cannot be queried. This scan is on the master node of the instance and will affect instance performance.
The following operations are based on an example of accessing a Redis instance on a client on an elastic cloud server (ECS). To access a Redis 3.0 instance over a public network, see Connecting to Redis 3.0 over a Public Network on redis-cli.
When the cluster topology changes (for example after a master/standby switchover or scaling), new nodes cannot be identified, causing service failures.
If they are in the same VPC, check the security group rules (for DCS Redis 3.0 instances) or whitelists (for DCS Redis 4.0 or 5.0 instances) to ensure that the IP addresses and ports of the Redis instances are accessible.
When creating a node pool, set Node Type to Elastic Cloud Server (VM), Container Engine to Docker, OS to CentOS 7.6, and bind an existing EIP or create one. Procedure Creating a Client Image Download a Redis client. Log in to the CCE cluster node.
High availability is achieved by having a standby node take over in the event that a failure occurs on the master node.
) except exceptions.ClientRequestException as e: print(e.status_code) print(e.request_id) print(e.error_code) print(e.error_msg) Creating an instance diagnosis task and setting the diagnosis start time and end time and the IP address of the node
Import the RDB file (or files) to the cloud server. The cloud server must be connected to the target DCS instance.
NOTE: The backslash (\) and quotation mark (") are special characters for JSON messages. When using these characters in a parameter value, add the escape character (\) before the characters, for example, \\ and \". engine String Yes Cache engine.
= null) { jedis.close(); } } } } Result: total:200 booked:15 remain:185 Parent topic: Service Application
Unit: GB. ip String IP address for connecting to the DCS instance For a cluster instance, multiple IP addresses are returned and separated by commas (,).
WithAk(ak). WithSk(sk). WithProjectId(projectId). Build() client := dcs.NewDcsClient( dcs.DcsClientBuilder(). WithRegion(region.ValueOf("<YOUR REGION>")). WithCredential(auth).