How to Obtain Client Access Information and Usage Statistics?
When a business is decommissioned, you can effectively monitor and view client connections using the CLIENT LIST command to ensure no lingering connections remain. Executing the client list command on the Proxy node returns information and statistics for all clients connected to the Redis server, as shown below.
Note:
In high-load scenarios and large-scale deployments of Distributed Cache proxies, the CLIENT LIST command may impose significant memory pressure on specific shards, potentially leading to OOM and key eviction.
xx.xx.xx.xx:6379> client list
id=-524313527796215 addr=10.xx.xx.xx:51860 fd=3 name= cmd=client age=3 idle=0 proxy=356089c45395053d205d9abe1d**************
|
id | a unique 64-bit client ID |
addr | client address and port |
fd | file descriptor used by the socket |
name | the name set by the client using CLIENT SETNAME |
cmd | the most recently executed command |
age | the duration of the connection in seconds. |
idle | the idle time in seconds. |
How do I use the hash algorithm of Tencent Cloud Distributed Cache Cluster Edition?
The hash algorithm of the Distributed Cache Redis Cluster Edition is the same as that in the a Redis Community Edition cluster, i.e., HASH_SLOT = CRC16(key) mod 16384. For more information, see Redis Cluster Specification. What is the maximum capacity of a single instance?
|
Memory Edition (Standard Architecture) | |
Memory Edition (Cluster Architecture) | |
CKV Edition (Standard Architecture) | |
CKV Edition (Cluster Architecture) | |
Is the data stored in Tencent Cloud Distributed Cache reliable?
Distributed Cache standard architecture (0 replicas) does not provide high availability. Other editions adopt a primary-secondary replication structure, combining hot backup and daily cold backup to ensure data reliability.
Which persistence method does Tencent Cloud Distributed Cache use?
On the Distributed Cache backend, the backup cluster performs full data backup, and persistence is done on the replicas which is virtually imperceptible to the online business.
Why is 2 MB of storage capacity used right after an instance is purchased?
That is used by the Distributed Cacheinstance in maintaining its data structure.
Can Tencent Cloud Distributed Cache be managed with visual tools such as Redis Desktop Manager?
You can perform Ops and management operations in the Distributed Cacheconsole. If you need to use a visual tool, use a CVM instance as a jump server to provide an access address for Redis Desktop Manager.
Will my business be interrupted during scaling?
Momentary disconnections during scaling of different editions of Distributed Cache are as describe below:
During scale-up, if the expanded capacity exceeds the remaining capacity of a single server, the cluster will perform sharding or migrate nodes, and a momentary business disconnection will occur; otherwise, no disconnections will occur.
During scale-out, the number of nodes in the cluster will be increased, and a momentary business disconnection will occur.
During scale-in, node repossession will cause node migration in the cluster, and a momentary business disconnection will occur.
During scale-down, no momentary business disconnections will occur.
How do I add a monitoring alarm?
Do I need to purchase different instances for selecting 0–15 databases?
No. Multiple databases can be set on one Standard Architecture or Cluster Architecture instance.
Does Tencent Cloud Distributed Cache support Lua?
For Standard Architecture instances purchased before September 1, 2018, Lua is not enabled by default, and you can submit a ticket for application. For instances purchased after that date, Lua is enabled by default. The cluster architecture has the Lua feature enabled by default.
DoesTencent Cloud Distributed Cache support caching invalidated subscription events?
Yes.
What should I do if I accidentally delete my account or forget the password?
If you accidentally deleted an account, you can log in to the Tencent Cloud Distributed Cache console, click an instance ID to enter the instance management page, and select Account Management > Create Account to create a new account. If you forgot the password of the default account, you can reset it by locating the corresponding account on the Account Management page.
What should I do if the data on a replica node is out of sync with the data on the master node in Tencent Cloud Distributed Cache?
Updates of the Tencent Cloud Distributed Cache master node will be automatically replicated to its associated replica node. Due to Redis' async replication mechanism, replica node updates may lag behind the master node updates. Possible causes are as follows:
The I/O write volume of the master node exceeds the sync speed of the replica node.
There is a network delay between the master node and the replica node.
How do I check the port connectivity of Tencent Cloud Distributed Cache?
You can use the telnet command to check the port connectivity.
How do I set a caching policy in Tencent Cloud Distributed Cache?
Log in to the Tencent Cloud Distributed Cache console, click an instance ID in the instance list to enter the parameter configuration page, and configure a caching policy through the maxmemory-policy parameter, whose default value is noeviction. How do I download a client for Tencent Cloud Distributed Cache?
Clients compatible with the Redis protocol can access Tencent Cloud Distributed Cache. You can choose an appropriate client as needed. For the download addresses, see Clients. How do I upgrade the version of Tencent Cloud Distributed Cache?
How do I upgrade the architecture of Tencent Cloud Distributed Cache?