Backup and restoration
diff --git a/docs/dcs/umn/dcs-pd-0916001.html b/docs/dcs/umn/dcs-pd-0916001.html
index 64957eacb..45eeb16e2 100644
--- a/docs/dcs/umn/dcs-pd-0916001.html
+++ b/docs/dcs/umn/dcs-pd-0916001.html
@@ -1,7 +1,7 @@
Redis 3.0 Instance Specifications
-This section describes DCS Redis 3.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured bandwidth, and reference performance.
+ This section describes DCS Redis 3.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured bandwidth, and reference performance.
The following metrics are related to the instance specifications:
- Used memory: You can check the memory usage of an instance by viewing the Memory Usage and Used Memory metrics.
- Maximum connections: The maximum number of connections allowed is the maximum number of clients that can be connected to an instance. To check the number of connections to an instance, view the Connected Clients metric.
- QPS represents queries per second, which is the number of commands processed per second.
- Single-node, master/standby, and Proxy Cluster types are available.
- Only the x86 architecture is supported. The Arm architecture is not supported.
diff --git a/docs/dcs/umn/dcs-pd-0916002.html b/docs/dcs/umn/dcs-pd-0916002.html
index 984b21dd3..2db5d5d9a 100644
--- a/docs/dcs/umn/dcs-pd-0916002.html
+++ b/docs/dcs/umn/dcs-pd-0916002.html
@@ -1,7 +1,7 @@
Redis 4.0 and 5.0 Instance Specifications
-This section describes DCS Redis 4.0 and 5.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured bandwidth, and reference performance.
+ This section describes DCS Redis 4.0 and 5.0 instance specifications, including the total memory, available memory, maximum number of connections allowed, maximum/assured bandwidth, and reference performance.
The following metrics are related to the instance specifications:
diff --git a/docs/dcs/umn/dcs-pd-200312004.html b/docs/dcs/umn/dcs-pd-200312004.html
index fb207032d..f3ca08bb7 100644
--- a/docs/dcs/umn/dcs-pd-200312004.html
+++ b/docs/dcs/umn/dcs-pd-200312004.html
@@ -12,7 +12,7 @@
For details, see: Modifying Maintenance Time Window.
Cross-AZ DeploymentMaster/Standby instances are deployed across different AZs with physically isolated power supplies and networks. Applications can also be deployed across AZs to achieve HA for both data and applications.
- When creating a master/standby or cluster DCS Redis instance, you can select a standby AZ for the standby node.
+ When creating a master/standby or cluster DCS Redis instance, you can select a standby AZ for the node.
ShardA shard is a management unit of a cluster DCS Redis instance. Each shard corresponds to a redis-server process. A cluster consists of multiple shards. Each shard has multiple slots. Data is distributedly stored in the slots. The use of shards increases cache capacity and concurrent connections.
Each cluster instance consists of multiple shards. By default, each shard is a master/standby instance with two replicas. The number of shards is equal to the number of master nodes in a cluster instance.
diff --git a/docs/dcs/umn/dcs-pd-200713005.html b/docs/dcs/umn/dcs-pd-200713005.html
index 7e23a1e9a..a9601a41d 100644
--- a/docs/dcs/umn/dcs-pd-200713005.html
+++ b/docs/dcs/umn/dcs-pd-200713005.html
@@ -10,7 +10,7 @@
-Table 1 Commands supported by DCS Redis 3.0 instances 1Keys
+Table 1 Commands supported by DCS Redis 3.0 instances (1)Keys
|
String
|
@@ -360,7 +360,7 @@
|---|
-Table 2 Commands supported by DCS Redis 3.0 instances 2HyperLoglog
+Table 2 Commands supported by DCS Redis 3.0 instances (2)HyperLoglog
|
Pub/Sub
|
@@ -458,7 +458,7 @@
Commands Disabled by DCS for Redis 3.0The following lists commands disabled by DCS for Redis 3.0.
- Table 3 Redis commands disabled in single-node and master/standby Redis 3.0 instancesKeys
+Table 3 Redis commands disabled in single-node and master/standby DCS Redis 3.0 instancesKeys
|
Server
|
@@ -508,7 +508,7 @@
|---|
-Table 4 Redis commands disabled in Proxy Cluster Redis 3.0 instancesKeys
+Table 4 Redis commands disabled in Proxy Cluster DCS Redis 3.0 instancesKeys
|
Server
|
diff --git a/docs/dcs/umn/dcs-pd-200813002.html b/docs/dcs/umn/dcs-pd-200813002.html
index 3468174a2..4e634f5c0 100644
--- a/docs/dcs/umn/dcs-pd-200813002.html
+++ b/docs/dcs/umn/dcs-pd-200813002.html
@@ -651,7 +651,7 @@
|---|
-Table 4 Redis commands disabled in Redis Cluster Redis 5.0 instancesKeys
+Table 4 Redis commands disabled in Redis Cluster DCS Redis 5.0 instancesKeys
|
Server
|
diff --git a/docs/dcs/umn/dcs-pd-200813003.html b/docs/dcs/umn/dcs-pd-200813003.html
index 480ed9d68..c13cbf309 100644
--- a/docs/dcs/umn/dcs-pd-200813003.html
+++ b/docs/dcs/umn/dcs-pd-200813003.html
@@ -124,7 +124,7 @@
Multi-key commands that do not support cross-slot access
|
-SMOVE, SORT, BITOP, MSETNX, RENAME, RENAMENX, BLPOP, BRPOP, RPOPLPUSH, BRPOPLPUSH, PFMERGE, PFCOUNT
+ | SMOVE, SORT, BITOP, MSETNX, RENAME, RENAMENX, BLPOP, BRPOP, RPOPLPUSH, BRPOPLPUSH, PFMERGE, PFCOUNT, BLMOVE, COPY, GEOSEARCHSTORE, LMOVE, ZRANGESTORE
|
diff --git a/docs/dcs/umn/dcs-pd-200813004.html b/docs/dcs/umn/dcs-pd-200813004.html
index 9b13a702d..fba32c02e 100644
--- a/docs/dcs/umn/dcs-pd-200813004.html
+++ b/docs/dcs/umn/dcs-pd-200813004.html
@@ -9,6 +9,8 @@
EVAL and EVALSHA Commands- When the EVAL or EVALSHA command is run, at least one key must be contained in the command parameter. Otherwise, the error message "ERR eval/evalsha numkeys must be bigger than zero in redis cluster mode" is displayed.
- When the EVAL or EVALSHA command is run, a cluster DCS Redis instance uses the first key to compute slots. Ensure that the keys to be operated in your code are in the same slot. For details, visit https://redis.io/commands.
- For the EVAL command:
- You are advised to learn the Lua script features of Redis before running the EVAL command. For details, see https://redis.io/commands/eval.
- The execution timeout time of a Lua script is 5 seconds. Time-consuming statements such as long-time sleep and large loop statements should be avoided.
- When calling a Lua script, do not use random functions to specify keys. Otherwise, the execution results are inconsistent on the master and standby nodes.
+Debugging Lua ScriptsWhen you debug Lua scripts for Proxy Cluster and read/write splitting instances, only the asynchronous non-blocking mode --ldb is supported. The synchronous blocking mode --ldb-sync-mode is not supported. By default, the maximum concurrency on each proxy is 2. This restriction does not apply to other instance types.
+
Other Restrictions- The time limit for executing a Redis command is 15 seconds. To prevent other services from failing, a master/replica switchover will be triggered after the command execution times out.
diff --git a/docs/dcs/umn/dcs-pd-200916001.html b/docs/dcs/umn/dcs-pd-200916001.html
index 3afb64eaf..945ae25d2 100644
--- a/docs/dcs/umn/dcs-pd-200916001.html
+++ b/docs/dcs/umn/dcs-pd-200916001.html
@@ -472,7 +472,7 @@
Commands Disabled by DCS for Redis 4.0The following lists commands disabled by DCS for Redis 4.0.
- Table 3 Redis commands disabled in single-node and master/standby Redis 4.0 instancesKeys
+Table 3 Redis commands disabled in single-node and master/standby DCS Redis 4.0 instancesKeys
|
Server
|
@@ -532,7 +532,7 @@
|---|
-Table 4 Redis commands disabled in Redis Cluster Redis 4.0 instancesKeys
+Table 4 Redis commands disabled in Redis Cluster DCS Redis 4.0 instancesKeys
|
Server
|
diff --git a/docs/dcs/umn/dcs-pd-210209002.html b/docs/dcs/umn/dcs-pd-210209002.html
index 2503a4a0a..11cb6e92f 100644
--- a/docs/dcs/umn/dcs-pd-210209002.html
+++ b/docs/dcs/umn/dcs-pd-210209002.html
@@ -110,7 +110,7 @@
ZRANGEBYSCORE
|
-CLIENT KILL
+ | CONFIG GET
|
PTTL
@@ -125,7 +125,7 @@
|
ZRANK
|
-CLIENT LIST
+ | MONITOR
|
RANDOMKEY
@@ -140,7 +140,7 @@
|
ZREMRANGEBYRANK
|
-CLIENT GETNAME
+ | SLOWLOG
|
RENAME
@@ -155,7 +155,7 @@
|
ZREMRANGEBYCORE
|
-CLIENT SETNAME
+ | ROLE
|
RENAMENX
@@ -170,7 +170,7 @@
|
ZREVRANGE
|
-CONFIG GET
+ | SWAPDB
|
RESTORE
@@ -185,7 +185,7 @@
|
ZREVRANGEBYSCORE
|
-MONITOR
+ | MEMORY
|
SORT
@@ -200,7 +200,7 @@
|
ZREVRANK
|
-SLOWLOG
+ | CONFIG
|
TTL
@@ -215,7 +215,7 @@
|
ZSCORE
|
-ROLE
+ | ACL
|
TYPE
@@ -230,7 +230,7 @@
|
ZUNIONSTORE
|
-SWAPDB
+ | -
|
SCAN
@@ -245,7 +245,7 @@
|
ZINTERSTORE
|
-MEMORY
+ | -
|
OBJECT
@@ -256,11 +256,11 @@
|
RPUSH
|
--
+ | SMISMEMBER
|
ZSCAN
|
-CONFIG
+ | -
|
PEXPIREAT
@@ -275,7 +275,7 @@
|
ZRANGEBYLEX
|
--
+ | -
|
PEXPIRE
@@ -299,7 +299,7 @@
|
-
|
--
+ | BLMOVE
|
-
|
@@ -308,13 +308,13 @@
-
|
--
+ | COPY
|
SETNX
|
-
|
--
+ | LMOVE
|
-
|
@@ -329,7 +329,7 @@
-
|
--
+ | LPOS
|
-
|
@@ -363,11 +363,101 @@
-
|
--
+ | ZDIFF
|
-
|
+-
+ |
+BITFIELD_RO
+ |
+-
+ |
+-
+ |
+-
+ |
+ZDIFFSTORE
+ |
+-
+ |
+
+-
+ |
+GETDEL
+ |
+-
+ |
+-
+ |
+-
+ |
+ZINTER
+ |
+-
+ |
+
+-
+ |
+GETEX
+ |
+-
+ |
+-
+ |
+-
+ |
+ZMSCORE
+ |
+-
+ |
+
+-
+ |
+-
+ |
+-
+ |
+-
+ |
+-
+ |
+ZRANDMEMBER
+ |
+-
+ |
+
+-
+ |
+-
+ |
+-
+ |
+-
+ |
+-
+ |
+ZRANGESTORE
+ |
+-
+ |
+
+-
+ |
+-
+ |
+-
+ |
+-
+ |
+-
+ |
+ZUNION
+ |
+-
+ |
+
@@ -454,7 +544,7 @@
| WATCH
|
-SELECT
+ | SELECT (not supported by Redis Cluster instances)
|
SCRIPT KILL
|
@@ -469,7 +559,7 @@
-
|
--
+ | CLIENT CACHING
|
SCRIPT LOAD
|
@@ -484,7 +574,7 @@
-
|
--
+ | CLIENT GETREDIR
|
-
|
@@ -499,7 +589,7 @@
-
|
--
+ | CLIENT INFO
|
-
|
@@ -514,7 +604,7 @@
-
|
--
+ | CLIENT TRACKING
|
-
|
@@ -529,7 +619,7 @@
-
|
--
+ | CLIENT TRACKINGINFO
|
-
|
@@ -544,7 +634,7 @@
-
|
--
+ | CLIENT UNPAUSE
|
-
|
@@ -559,7 +649,7 @@
-
|
--
+ | CLIENT KILL
|
-
|
@@ -574,7 +664,7 @@
-
|
--
+ | CLIENT LIST
|
-
|
@@ -583,65 +673,168 @@
XTRIM
|
+-
+ |
+-
+ |
+-
+ |
+CLIENT GETNAME
+ |
+-
+ |
+-
+ |
+XAUTOCLAIM
+ |
+
+-
+ |
+-
+ |
+-
+ |
+CLIENT SETNAME
+ |
+-
+ |
+-
+ |
+XGROUP CREATECONSUMER
+ |
+
+-
+ |
+-
+ |
+-
+ |
+HELLO
+ |
+-
+ |
+-
+ |
+-
+ |
+
+-
+ |
+-
+ |
+-
+ |
+RESET
+ |
+-
+ |
+-
+ |
+-
+ |
+
Commands Disabled by DCS for Redis 6.0
- Table 3 Redis commands disabled in DCS Redis 6.0 instancesGeneric (Key)
+Table 3 Redis commands disabled in DCS Redis 6.0 instancesGeneric (Key)
|
-Server
+ | Server
+ |
+Cluster
|
-MIGRATE
+ | MIGRATE
|
-SLAVEOF
+ | SLAVEOF
+ |
+CLUSTER MEET
|
--
+ | -
|
-SHUTDOWN
+ | SHUTDOWN
+ |
+CLUSTER FLUSHSLOTS
|
--
+ | -
|
-LASTSAVE
+ | LASTSAVE
+ |
+CLUSTER ADDSLOTS
|
--
+ | -
|
-DEBUG commands
+ | DEBUG commands
+ |
+CLUSTER DELSLOTS
|
--
+ | -
|
-COMMAND
+ | COMMAND
+ |
+CLUSTER SETSLOT
|
--
+ | -
|
-SAVE
+ | SAVE
+ |
+CLUSTER BUMPEPOCH
|
--
+ | -
|
-BGSAVE
+ | BGSAVE
+ |
+CLUSTER SAVECONFIG
|
--
+ | -
|
-BGREWRITEAOF
+ | BGREWRITEAOF
+ |
+CLUSTER FORGET
|
--
+ | -
|
-SYNC
+ | SYNC
+ |
+CLUSTER REPLICATE
|
--
+ | -
|
-PSYNC
+ | PSYNC
+ |
+CLUSTER COUNT-FAILURE-REPORTS
+ |
+
+-
+ |
+-
+ |
+CLUSTER FAILOVER
+ |
+
+-
+ |
+-
+ |
+CLUSTER SET-CONFIG-EPOCH
+ |
+
+-
+ |
+-
+ |
+CLUSTER RESET
|
diff --git a/docs/dcs/umn/dcs-ug-0312004.html b/docs/dcs/umn/dcs-ug-0312004.html
index 2857ab373..e520632f0 100644
--- a/docs/dcs/umn/dcs-ug-0312004.html
+++ b/docs/dcs/umn/dcs-ug-0312004.html
@@ -3,7 +3,7 @@
Preparing Required Resources
To access DCS instances through a Virtual Private Cloud (VPC), create a VPC and configure security groups and subnets for it before using DCS. A VPC provides an isolated virtual network environment which you can configure and manage. Using VPCs enhances cloud resource security and simplifies network deployment.
Once you have created the required resources, you can use them for all DCS instances you subsequently create.
- Creating a VPC and Subnet- Log in to the management console.
- Click
in the upper left corner and select a region and a project. - Click Service List, and choose Network > Virtual Private Cloud to launch the VPC console.
- Click Apply for VPC.
- Create a VPC as prompted, retaining the default values unless otherwise required.
For details about how to create a VPC, see Creating a VPC.
+Creating a VPC and Subnet- Log in to the management console.
- Click
in the upper left corner and select a region and a project. - Click Service List, and choose Network > Virtual Private Cloud to launch the VPC console.
- Click Apply for VPC.
- Create a VPC as prompted, retaining the default values unless otherwise required.
For details about how to create a VPC, see Creating a VPC.
After a VPC is created, a subnet is also created in the subnet. If the VPC needs more subnets, go to 6 and 7. Otherwise, go to Creating a Security Group.
- When creating a VPC, CIDR Block indicates the IP address range of the VPC. If this parameter is set, the IP addresses of subnets in the VPC must be within the IP address range of the VPC.
- If you create a VPC to provision DCS instances, you do not need to configure the CIDR block for the VPC.
diff --git a/docs/dcs/umn/dcs-ug-0312009.html b/docs/dcs/umn/dcs-ug-0312009.html
index 61cec1a5e..dbef1a249 100644
--- a/docs/dcs/umn/dcs-ug-0312009.html
+++ b/docs/dcs/umn/dcs-ug-0312009.html
@@ -32,9 +32,9 @@
If the command output contains redis, the phpredis client environment has been set up.
- Access the DCS instance by using phpredis.
- Edit a redis.php file.
<?php
- $redis_host = "{redis_instance_address}";
- $redis_port = 6379;
- $user_pwd = "{password}";
+ $redis_host = "{redis_instance_address}";
+ $redis_port = {port};
+ $user_pwd = "{password}";
$redis = new Redis();
if ($redis->connect($redis_host, $redis_port) == false) {
die($redis->getLastError());
@@ -49,7 +49,7 @@
echo $value;
$redis->close();
?>
-{redis_instance_address} indicates the IP address/domain name of DCS instance and 6379 is an example port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation. If password-free access is enabled, shield the if statement for password authentication.
+{redis_instance_address} indicates the example IP address/domain name of the DCS instance and {port} indicates the port number of the DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation. If password-free access is enabled, shield the if statement for password authentication.
- Run the php redis.php command to access the DCS instance.
diff --git a/docs/dcs/umn/dcs-ug-0312010.html b/docs/dcs/umn/dcs-ug-0312010.html
index 0a84efc5d..7c87cb71c 100644
--- a/docs/dcs/umn/dcs-ug-0312010.html
+++ b/docs/dcs/umn/dcs-ug-0312010.html
@@ -26,7 +26,7 @@ int main(int argc, char **argv) {
redisContext *conn;
redisReply *reply;
if (argc < 3) {
- printf("Usage: example {instance_ip_address} 6379 {password}\n");
+ printf("Usage: example {instance_ip_address} 6379 {password}\n");
exit(0);
}
const char *hostname = argv[1];
@@ -66,7 +66,7 @@ int main(int argc, char **argv) {
If an error is reported, locate the directory where the hiredis.h file is saved and modify the compilation command.
After the compilation, an executable connRedis file is obtained.
- Run the following command to access the chosen DCS Redis instance:
./connRedis {redis_instance_address} 6379 {password}
-{redis_instance_address} indicates the IP address/domain name of DCS instance and 6379 is an example port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+{redis_instance_address} indicates the IP address/domain name of DCS instance and 6379 is an example port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
You have successfully accessed the instance if the following command output is displayed:
AUTH: OK
SET: OK
diff --git a/docs/dcs/umn/dcs-ug-0312011.html b/docs/dcs/umn/dcs-ug-0312011.html
index f2d2e4457..aa50e2e50 100644
--- a/docs/dcs/umn/dcs-ug-0312011.html
+++ b/docs/dcs/umn/dcs-ug-0312011.html
@@ -20,7 +20,7 @@
- Use the redis-py client to connect to the instance. In the following steps, commands are executed in CLI mode. (Alternatively, write the commands into a Python script and then execute the script.)
- Run the python command to enter the CLI mode. You have entered CLI mode if the following command output is displayed:
Figure 2 Entering the CLI mode
- Run the following command to access the chosen DCS Redis instance:
r = redis.StrictRedis(host='XXX.XXX.XXX.XXX', port=6379, password='******');
-XXX.XXX.XXX.XXX indicates the IP address/domain name of the DCS instance and 6379 is an example port number of the instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+XXX.XXX.XXX.XXX indicates the IP address/domain name of the DCS instance and 6379 is an example port number of the instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
You have successfully accessed the instance if the following command output is displayed. Enter commands to perform read and write operations on the database.
Figure 3 Redis connected successfully
@@ -30,7 +30,7 @@
- Go to the directory where the decompressed redis-py-cluster package is saved, and install redis-py-cluster.
python setup.py install
- Access the DCS Redis instance by using redis-py-cluster.
In the following steps, commands are executed in CLI mode. (Alternatively, write the commands into a Python script and then execute the script.)
-- Run the python command to enter the CLI mode.
- Run the following command to access the chosen DCS Redis instance. If the instance does not have a password, exclude password='******' from the command.
>>> from rediscluster import RedisCluster
+- Run the python command to enter the CLI mode.
- Run the following command to access the chosen DCS Redis instance. If the instance does not have a password, exclude password='******' from the command.
>>> from rediscluster import RedisCluster
>>> startup_nodes = [{"host": "192.168.0.143", "port": "6379"},{"host": "192.168.0.144", "port": "6379"},{"host": "192.168.0.145", "port": "6379"},{"host": "192.168.0.146", "port": "6379"}]
diff --git a/docs/dcs/umn/dcs-ug-0312012.html b/docs/dcs/umn/dcs-ug-0312012.html
index ee6d790b2..864867dc5 100644
--- a/docs/dcs/umn/dcs-ug-0312012.html
+++ b/docs/dcs/umn/dcs-ug-0312012.html
@@ -26,7 +26,7 @@ var redis = new Redis({
port: 6379, // Redis port
host: '192.168.0.196', // Redis host
family: 4, // 4 (IPv4) or 6 (IPv6)
- password: '******',
+ password: '******',
db: 0
});
redis.set('foo', 'bar');
@@ -42,7 +42,7 @@ redis.sadd('set', 1, 3, 5, 7);
redis.sadd('set', [1, 3, 5, 7]);
// All arguments are passed directly to the redis server:
redis.set('key', 100, 'EX', 10);
-host indicates the example IP address/domain name of the DCS instance and port indicates the port number of the DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+host indicates the example IP address/domain name of the DCS instance and port indicates the port number of the DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
- Run the sample script to access the chosen DCS instance.
node ioredisdemo.js
@@ -66,7 +66,7 @@ var redis = new Redis({
port: 6379, // Redis port
host: '192.168.0.196', // Redis host
family: 4, // 4 (IPv4) or 6 (IPv6)
- password: '******',
+ password: '******',
db: 0
});
redis.set('foo', 'bar');
@@ -82,7 +82,7 @@ redis.sadd('set', 1, 3, 5, 7);
redis.sadd('set', [1, 3, 5, 7]);
// All arguments are passed directly to the redis server:
redis.set('key', 100, 'EX', 10);
-host indicates the example IP address/domain name of the DCS instance and port indicates the port number of the DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+host indicates the example IP address/domain name of the DCS instance and port indicates the port number of the DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. ****** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
- Run the sample script to access the chosen DCS instance.
node ioredisdemo.js
diff --git a/docs/dcs/umn/dcs-ug-0312013.html b/docs/dcs/umn/dcs-ug-0312013.html
index 519743b91..9181de735 100644
--- a/docs/dcs/umn/dcs-ug-0312013.html
+++ b/docs/dcs/umn/dcs-ug-0312013.html
@@ -17,7 +17,7 @@ namespace redisdemo
class Program
{
// redis config
- private static ConfigurationOptions connDCS = ConfigurationOptions.Parse(" 10.10.38.233:6379,password= ********,connectTimeout=2000");
+ private static ConfigurationOptions connDCS = ConfigurationOptions.Parse("{instance_ip_address}:{port},password=********,connectTimeout=2000");
//the lock for singleton
private static readonly object Locker = new object();
//singleton
@@ -50,7 +50,7 @@ namespace redisdemo
}
}
}
- 10.10.38.233:6379 contains an example IP address/domain name and port number of the DCS Redis instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. ******** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
+ {instance_ip_address} and {port} are the IP address/domain name and port number of the DCS Redis instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. ******** indicates the password used for logging in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation.
- Run the code. You have successfully accessed the instance if the following command output is displayed:
Hello, DCS for Redis!
For more information about other commands of StackExchange.Redis, visit StackExchange.Redis.
diff --git a/docs/dcs/umn/dcs-ug-0312016.html b/docs/dcs/umn/dcs-ug-0312016.html
index d92ed82b8..f83a47334 100644
--- a/docs/dcs/umn/dcs-ug-0312016.html
+++ b/docs/dcs/umn/dcs-ug-0312016.html
@@ -77,26 +77,26 @@
Maintenance
|
-Time when maintenance takes place. To modify the time window, click the icon.
+ | Time when maintenance takes place. To modify the time window, click the icon.
|
- Connection
+ | Connection
|
-Password Protected
+ | Password Protected
|
-Currently, password-protected access and password-free access are supported.
+ | Currently, password-protected access and password-free access are supported.
|
- Connection Address
+ | Connection Address
|
-Domain name and port number of the instance. You can click to change the port.
- NOTE: - The instance has a domain name address if it was created after DCS has been interconnected with DNS. Instances created before the interconnection only have IP addresses and cannot be changed to domain name access.
- For a master/standby DCS Redis 4.0/5.0/6.0 instance, Connection Address indicates the domain name and port number of the master node, and Read-only Address indicates the domain name and port number of the standby node. When connecting to such an instance, you can use the domain name and port number of the master node or the standby node. For details, see Architecture of Master/Standby DCS Redis 4.0/5.0/6.0 Instances.
- You can change the port only for a DCS Redis 4.0/5.0/6.0 instance, but not for a DCS Redis 3.0 instance.
+ Domain name and port number of the instance. You can click to change the port.
+ NOTE: - The instance has a domain name address if it was created after DCS has been interconnected with DNS. Instances created before the interconnection only have IP addresses and cannot be changed to domain name access.
- For a master/standby DCS Redis 4.0 and later instance, Connection Address indicates the domain name and port number of the master node, and Read-only Address indicates the domain name and port number of the standby node. When connecting to such an instance, you can use the domain name and port number of the master node or the standby node. For details, see Architecture of Master/Standby DCS Redis 4.0/5.0/6.0 Instances.
- You can change the port only for a DCS Redis 4.0 and later instance, but not for a DCS Redis 3.0 instance.
|
|
- IP Address
+ | IP Address
|
-IP address and port number of the chosen instance.
+ | IP address and port number of the chosen instance.
|
Network
@@ -119,7 +119,7 @@
| Security Group
|
Security group that controls access to the DCS instance. To modify the security group, click .
-This parameter is displayed only for DCS Redis 3.0 instances. DCS for Redis 4.0/5.0/6.0 are based on VPC Endpoint and do not support security groups. You can click configure the whitelist to configure the whitelist.
+This parameter is displayed only for DCS Redis 3.0 instances. DCS for Redis 4.0/5.0/6.0 are based on VPC Endpoint and do not support security groups. You can click configure to configure the whitelist.
|
diff --git a/docs/dcs/umn/dcs-ug-0312019.html b/docs/dcs/umn/dcs-ug-0312019.html
index ab1c5f040..b64cc97a3 100644
--- a/docs/dcs/umn/dcs-ug-0312019.html
+++ b/docs/dcs/umn/dcs-ug-0312019.html
@@ -2,7 +2,7 @@
Exporting DCS Instance List
On the DCS console, you can export DCS instance information in full to an Excel file.
-
diff --git a/docs/dcs/umn/dcs-ug-0312037.html b/docs/dcs/umn/dcs-ug-0312037.html
index b61d2407d..09a1e7560 100644
--- a/docs/dcs/umn/dcs-ug-0312037.html
+++ b/docs/dcs/umn/dcs-ug-0312037.html
@@ -5,7 +5,7 @@
Simply download the source Redis backup data and then upload the data to an OBS bucket in the same region as the target DCS Redis instance. After you have created a migration task on the DCS console, DCS will read data from the OBS bucket and data will be migrated to the target instance.
.aof, .rbb, .zip, and .tar.gz files can be uploaded to OBS buckets. You can directly upload .aof and .rdb files or compress them into .zip or .tar.gz files before uploading.
- Prerequisites- The OBS bucket must be in the same region as the target DCS Redis instance.
- The data files to be uploaded must be in the .aof, .rdb, .zip, or .tar.gz format.
- To migrate data from a single-node or master/standby Redis instance of other cloud vendors, create a backup task and download the backup file.
- To migrate data from a cluster Redis instance of other cloud vendors, download all backup files and upload all of them to the OBS bucket. Each backup file contains data for a shard of the instance.
- Redis Cluster instances only support .rdb files and do not support .aof files.
+ Prerequisites- The OBS bucket must be in the same region as the target DCS Redis instance.
- The data files to be uploaded must be in .aof, .rdb, .zip, or .tar.gz formats. .zip files must contain .aof or .rdb files.
- To migrate data from a single-node or master/standby Redis instance of other cloud vendors, create a backup task and download the backup file.
- To migrate data from a cluster Redis instance of other cloud vendors, download all backup files and upload all of them to the OBS bucket. Each backup file contains data for a shard of the instance.
- Redis Cluster instances only support .rdb files and do not support .aof files.
Step 1: Prepare the Target DCS Redis Instance- If a DCS Redis instance is not available, create one first. For details, see Creating a DCS Redis Instance.
- If a DCS Redis instance is available, you do not need to create a new one. However, you can clear the instance data before the migration.
- If the target instance is Redis 4.0 and later, clear the data by referring to Clearing DCS Instance Data.
- If the target instance is a DCS Redis 3.0 instance, run the FLUSHALL command to clear data.
- If the target instance data is not cleared before the migration and the source and target instances contain the same key, the key in the target instance will be overwritten by the key in the source instance after the migration.
- Redis is backward compatible. The target instance version must be the same as or later than the source instance version.
@@ -20,9 +20,9 @@
- Install OBS Browser+.
For details, see section "Installing OBS Browser+" in Object Storage Service (OBS) Tools Guide (OBS Browser+).
- Log in to OBS Browser+.
For details, see section "Logging In to OBS Browser+" in Object Storage Service (OBS) Tools Guide (OBS Browser+).
- Create a bucket.
- Upload backup data.
- - On the OBS console, upload the backup data files to the OBS bucket.
Perform the following steps if the backup file size does not exceed 5 GB: - In the bucket list, click the name of the created bucket.
- In the navigation pane, choose Objects.
- On the Objects tab page, click Upload Object.
- Upload the objects.
To upload objects, drag files or folders to the Upload Object area or click add file. A maximum of 100 files can be uploaded at a time. The total size cannot exceed 5 GB.
+ - On the OBS console, upload the backup data files to the OBS bucket.
Perform the following steps if the backup file size does not exceed 5 GB: - In the bucket list, click the name of the created bucket.
- In the navigation pane, choose Objects.
- On the Objects tab page, click Upload Object.
- Upload the objects.
To upload objects, drag files or folders to the Upload Object area or click add file. A maximum of 100 files can be uploaded at a time. The total size cannot exceed 5 GB.
Figure 1 Uploading an object
- - (Optional) Select KMS encryption to encrypt the file you want to upload.
- Click Upload.
+ - (Optional) Select KMS encryption to encrypt the file you want to upload.
- Click Upload.
diff --git a/docs/dcs/umn/dcs-ug-0326008.html b/docs/dcs/umn/dcs-ug-0326008.html
index a7eb1c256..23bc54506 100644
--- a/docs/dcs/umn/dcs-ug-0326008.html
+++ b/docs/dcs/umn/dcs-ug-0326008.html
@@ -31,7 +31,7 @@
- On the instance creation page, the default parameter templates are used by default.
- If you use a custom template, the selected cache engine version and instance type must match those of the template. For details about using custom templates, see Creating a Custom Parameter Template.
- Choose whether to enable Auto Backup.
This parameter is displayed only when the instance type is master/standby or cluster. For more information on how to configure a backup policy, see Overview.
- - Specify the number of instances to create.
- Enter an instance name.
The value of Name contains at least 4 characters. When you create multiple instances at a time, the instances are named in the format of custom name-n, where n starts from 000 and is incremented by 1. For example, if you create two instances and set name to dcs_demo, the two instances are respectively named as dcs_demo-000 and dcs_demo-001.
+ - Specify the number of instances to create.
- Enter an instance name.
The value of Name contains at least 4 characters. When you create multiple instances at a time, the instances are named in the format of custom name-n, where n starts from 000 and is incremented by 1. For example, if you create two instances and set name to dcs_demo, the two instances are respectively named as dcs_demo-000 and dcs_demo-001.
- Click More Settings to configure more parameters.
- Enter a description of the instance.
- Rename critical commands.
Command Renaming is displayed for Redis 4.0 and later. Currently, you can only rename the COMMAND, KEYS, FLUSHDB, FLUSHALL, HGETALL, SCAN, HSCAN, SSCAN, and ZSCAN commands.
- Specify the maintenance window.
Choose a window for DCS O&M personnel to perform maintenance on your instance. You will be contacted before any maintenance activities are performed.
diff --git a/docs/dcs/umn/dcs-ug-0326009.html b/docs/dcs/umn/dcs-ug-0326009.html
index bbd6c9d7e..bf35899a1 100644
--- a/docs/dcs/umn/dcs-ug-0326009.html
+++ b/docs/dcs/umn/dcs-ug-0326009.html
@@ -2,14 +2,13 @@
Accessing a DCS Redis Instance Through redis-cli
Access a DCS Redis instance through redis-cli on an ECS in the same VPC. For more information on how to use other Redis clients, visit https://redis.io/clients.
- - Redis 3.0 does not support port customization and allows only port 6379. For Redis 4.0 and later, you can specify a port or use the default port 6379. The following uses the default port 6379. If you have specified a port, replace 6379 with the actual port.
- When connecting to a Redis Cluster instance, ensure that -c is added to the command. Otherwise, the connection will fail.
- Access a DCS instance of a type other than Redis Cluster.
Perform the following procedure to access a single-node, master/standby instance.
./redis-cli -h ${dcs_instance_address} -p 6379 -a ${password}
- - If the instance is password-free, connect it by running the ./redis-cli -h ${dcs_instance_address} -p 6379 command.
- If the instance is password-protected, connect it by running the ./redis-cli -h ${dcs_instance_address} -p 6379 -a ${password} command.
- {dcs_instance_address} can be the Connection Address (domain name) or IP Address. Should I Use a Domain Name or an IP Address to Connect to a DCS Redis Instance?

+ - If the instance is password-free, connect it by running the ./redis-cli -h ${dcs_instance_address} -p 6379 command.
- If the instance is password-protected, connect it by running the ./redis-cli -h ${dcs_instance_address} -p 6379 -a ${password} command.
- {dcs_instance_address} can be the Connection Address (domain name) or IP Address. For details, see Should I Use Domain Name or IP Address to Connect to a Redis Instance?.

- - Access a DCS instance of the Redis Cluster type.
Perform the following procedure to access a DCS Redis 4.0 or 5.0 instance in Redis Cluster type.
-- Run the following commands to access the chosen DCS Redis instance:
./redis-cli -h {dcs_instance_address} -p 6379 -a {password} -c
+ - Access a DCS instance of the Redis Cluster type.
Do as follows to access a Redis Cluster instance:
+- Run the following commands to access the chosen DCS Redis instance:
./redis-cli -h {dcs_instance_address} -p 6379 -a {password} -c
{dcs_instance_address} indicates the IP address/domain name of the DCS Redis instance, 6379 is the port used for accessing the instance, {password} is the password of the instance, and -c is used for accessing Redis Cluster nodes. The IP address/domain name and port number are obtained in 1.
Example: root@ecs-redis:~/redis-6.2.13/src# ./redis-cli -h 192.168.0.85 -p 6379 -a ****** -c
192.168.0.85:6379>
diff --git a/docs/dcs/umn/dcs-ug-0326019.html b/docs/dcs/umn/dcs-ug-0326019.html
index c63578ce3..230204528 100644
--- a/docs/dcs/umn/dcs-ug-0326019.html
+++ b/docs/dcs/umn/dcs-ug-0326019.html
@@ -596,7 +596,7 @@
NOTE: Slow queries caused by the MIGRATE, SLAVEOF, CONFIG, BGSAVE, and BGREWRITEAOF commands are not counted.
-
+ |
|
DCS Redis instance
|
@@ -784,7 +784,7 @@
Instance Node Status
|
- Status of instance nodes. If the status is normal, the value is 0. If the status is abnormal, the value is 1.
+ | Status of instance nodes. If the status is normal, the value is 0. If the status is abnormal, the value is 1.
|
-
|
@@ -1210,7 +1210,7 @@
-Redis Server Metrics of DCS Redis Instances - The Monitored Object column lists instances that support the corresponding metrics.
+ Redis Server Metrics of DCS Redis Instances - The Monitored Object column lists instances that support the corresponding metrics.
@@ -1378,7 +1378,7 @@
Memory Fragmentation Ratio
|
- Current memory fragmentation, which is the ratio between used_memory_rss/used_memory.
+ | Current memory fragmentation, which is the ratio between used_memory_rss/used_memory.
|
≥ 0
|
@@ -1598,7 +1598,7 @@
NOTE: Slow queries caused by the MIGRATE, SLAVEOF, CONFIG, BGSAVE, and BGREWRITEAOF commands are not counted.
-
+ |
|
Redis Server of a cluster instance
Redis Server of a master/standby DCS Redis 4.0/5.0/6.0 instance
@@ -1624,7 +1624,7 @@
|
SADD
|
- Number of SADD commands processed per second
+ | Number of SADD commands processed per second
Unit: count/s
|
0–500,000
@@ -1639,7 +1639,7 @@
|
SMEMBERS
|
- Number of SMEMBERS commands processed per second
+ | Number of SMEMBERS commands processed per second
Unit: count/s
|
0–500,000
@@ -1667,7 +1667,7 @@
|
DEL
|
- Number of DEL commands processed per second
+ | Number of DEL commands processed per second
Unit: count/s
|
0–500,000
@@ -1682,7 +1682,7 @@
|
EXPIRE
|
- Number of EXPIRE commands processed per second
+ | Number of EXPIRE commands processed per second
Unit: count/s
|
0–500,000
@@ -1697,7 +1697,7 @@
|
GET
|
- Number of GET commands processed per second
+ | Number of GET commands processed per second
Unit: count/s
|
0–500,000
@@ -1712,7 +1712,7 @@
|
HDEL
|
- Number of HDEL commands processed per second
+ | Number of HDEL commands processed per second
Unit: count/s
|
0–500,000
@@ -1727,7 +1727,7 @@
|
HGET
|
- Number of HGET commands processed per second
+ | Number of HGET commands processed per second
Unit: count/s
|
0–500,000
@@ -1742,7 +1742,7 @@
|
HMGET
|
- Number of HMGET commands processed per second
+ | Number of HMGET commands processed per second
Unit: count/s
|
0–500,000
@@ -1757,7 +1757,7 @@
|
HMSET
|
- Number of HMSET commands processed per second
+ | Number of HMSET commands processed per second
Unit: count/s
|
0–500,000
@@ -1772,7 +1772,7 @@
|
HSET
|
- Number of HSET commands processed per second
+ | Number of HSET commands processed per second
Unit: count/s
|
0–500,000
@@ -1787,7 +1787,7 @@
|
MGET
|
- Number of MGET commands processed per second
+ | Number of MGET commands processed per second
Unit: count/s
|
0–500,000
@@ -1802,7 +1802,7 @@
|
MSET
|
- Number of MSET commands processed per second
+ | Number of MSET commands processed per second
Unit: count/s
|
0–500,000
@@ -1817,7 +1817,7 @@
|
SET
|
- Number of SET commands processed per second
+ | Number of SET commands processed per second
Unit: count/s
|
0–500,000
@@ -1861,7 +1861,7 @@
| |
|---|
-Proxy Metrics - The Monitored Object column lists instances that support the corresponding metrics.
- Dimensions lists the metric dimensions.
+ Proxy Metrics - The Monitored Object column lists instances that support the corresponding metrics.
- Dimensions lists the metric dimensions.
Table 5 Proxy metrics of Proxy Cluster DCS Redis 3.0 instancesMetric ID
diff --git a/docs/dcs/umn/dcs-ug-0326026.html b/docs/dcs/umn/dcs-ug-0326026.html
index 5bfa9bb1f..3667d0750 100644
--- a/docs/dcs/umn/dcs-ug-0326026.html
+++ b/docs/dcs/umn/dcs-ug-0326026.html
@@ -8,7 +8,12 @@
|
-2023-09-25
+ | 2024-02-17
+ |
+Updated Exporting DCS Instance List and How Do I Access a DCS Redis Instance Through Redis Desktop Manager?.
+ |
+
+2023-09-25
|
Modified the following content:
diff --git a/docs/dcs/umn/dcs-ug-0713005.html b/docs/dcs/umn/dcs-ug-0713005.html
index 7996e9f8a..e3189ebe9 100644
--- a/docs/dcs/umn/dcs-ug-0713005.html
+++ b/docs/dcs/umn/dcs-ug-0713005.html
@@ -22,7 +22,7 @@
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
- <version>3.6.0</version>
+ <version>3.10.0</version>
</dependency>
application.properties Configuration
-Bean Configuration- Single-node, master/standby, and Proxy Cluster
import java.time.Duration;
+
+(Optional) Configuring SSL ConnectionsIf SSL is enabled for the instance, use the following content to replace the JedisClientConfiguration construction method clientConfiguration() in Bean Configuration for connecting to the instance with SSL. For details about whether your DCS Redis instances support SSL, see Configuring SSL.
+ @Bean
+public JedisClientConfiguration clientConfiguration() throws Exception {
+ JedisClientConfiguration.JedisClientConfigurationBuilder configurationBuilder
+ = JedisClientConfiguration.builder()
+ .connectTimeout(Duration.ofMillis(redisConnectTimeout))
+ .readTimeout(Duration.ofMillis(redisReadTimeout));
+
+ configurationBuilder.usePooling().poolConfig(redisPoolConfig());
+ configurationBuilder.useSsl().sslSocketFactory(getTrustStoreSslSocketFactory());
+ return configurationBuilder.build();
+}
+
+private SSLSocketFactory getTrustStoreSslSocketFactory() throws Exception{
+ //Load the CA certificate in the user-defined path based on service requirements.
+ CertificateFactory cf = CertificateFactory.getInstance("X.509");
+ Certificate ca;
+ try (InputStream is = new FileInputStream("./ca.crt")) {
+ ca = cf.generateCertificate(is);
+ }
+
+ //Create keystore.
+ String keyStoreType = KeyStore.getDefaultType();
+ KeyStore keyStore = KeyStore.getInstance(keyStoreType);
+ keyStore.load(null, null);
+ keyStore.setCertificateEntry("ca", ca);
+
+ //Create TrustManager.
+ TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(
+ TrustManagerFactory.getDefaultAlgorithm());
+ trustManagerFactory.init(keyStore);
+
+ //Create SSLContext.
+ SSLContext context = SSLContext.getInstance("TLS");
+ context.init(null, trustManagerFactory.getTrustManagers(), new SecureRandom());
+ return context.getSocketFactory();
+}
Parameter Description
- Table 1 RedisStandaloneConfiguration parametersParameter
+Table 1 RedisStandaloneConfiguration parametersParameter
|
-Default Value
+ | Default Value
|
-Description
+ | Description
|
-hostName
+ | hostName
|
-localhost
+ | localhost
|
-IP address/domain name for connecting to a DCS Redis instance
+ | IP address/domain name for connecting to a DCS Redis instance
|
-port
+ | port
|
-6379
+ | 6379
|
-Port number
+ | Port number
|
-database
+ | database
|
-0
+ | 0
|
-Database number. Default: 0.
+ | Database number. Default: 0.
|
-password
+ | password
|
--
+ | -
|
-Password
+ | Password
|
-Table 2 RedisClusterConfiguration parametersParameter
+Table 2 RedisClusterConfiguration parametersParameter
|
-Description
+ | Description
|
-clusterNodes
+ | clusterNodes
|
-Cluster node connection information, including the node IP address and port number
+ | Cluster node connection information, including the node IP address and port number
|
-maxRedirects
+ | maxRedirects
|
-Maximum redirecting times
+ | Maximum redirecting times
|
-password
+ | password
|
-Password
+ | Password
|
-Table 3 JedisPoolConfig parametersParameter
+Table 3 JedisPoolConfig parametersParameter
|
-Default Value
+ | Default Value
|
-Description
+ | Description
|
-minIdle
+ | minIdle
|
--
+ | -
|
-Minimum connections in the connection pool
+ | Minimum connections in the connection pool
|
-maxIdle
+ | maxIdle
|
--
+ | -
|
-Maximum idle connections in the connection pool
+ | Maximum idle connections in the connection pool
|
-maxTotal
+ | maxTotal
|
--
+ | -
|
-Maximum total connections in the connection pool
+ | Maximum total connections in the connection pool
|
-blockWhenExhausted
+ | blockWhenExhausted
|
-true
+ | true
|
-Indicates whether to wait after the connection pool is exhausted. true: Wait. false: Do not wait. To validate maxWaitMillis, this parameter must be set to true.
+ | Indicates whether to wait after the connection pool is exhausted. true: Wait. false: Do not wait. To validate maxWaitMillis, this parameter must be set to true.
|
-maxWaitMillis
+ | maxWaitMillis
|
--1
+ | -1
|
-Maximum amount of time (in milliseconds) to wait for connection after the connection pool is exhausted. The default value -1 indicates to wait indefinitely.
+ | Maximum amount of time (in milliseconds) to wait for connection after the connection pool is exhausted. The default value -1 indicates to wait indefinitely.
|
-testOnCreate
+ | testOnCreate
|
-false
+ | false
|
-Indicates whether to enable connectivity test on creating connections. false: Disable. true: Enable.
+ | Indicates whether to enable connectivity test on creating connections. false: Disable. true: Enable.
|
-testOnBorrow
+ | testOnBorrow
|
-false
+ | false
|
-Indicates whether to enable connectivity test on obtaining connections. false: Disable. true: Enable. For heavy-traffic services, set this parameter to false to reduce overhead.
+ | Indicates whether to enable connectivity test on obtaining connections. false: Disable. true: Enable. For heavy-traffic services, set this parameter to false to reduce overhead.
|
-testOnReturn
+ | testOnReturn
|
-false
+ | false
|
-Indicates whether to enable connectivity test on returning connections. false: Disable. true: Enable. For heavy-traffic services, set this parameter to false to reduce overhead.
+ | Indicates whether to enable connectivity test on returning connections. false: Disable. true: Enable. For heavy-traffic services, set this parameter to false to reduce overhead.
|
-testWhileIdle
+ | testWhileIdle
|
-false
+ | false
|
-Indicates whether to check for idle connections. If this parameter is set to false, idle connections are not evicted. Recommended value: true.
+ | Indicates whether to check for idle connections. If this parameter is set to false, idle connections are not evicted. Recommended value: true.
|
-softMinEvictableIdleTimeMillis
+ | softMinEvictableIdleTimeMillis
|
-1800000
+ | 1800000
|
-Duration (in milliseconds) after which idle connections are evicted. If the idle duration is greater than this value and the maximum number of idle connections is reached, idle connections are directly evicted.
+ | Duration (in milliseconds) after which idle connections are evicted. If the idle duration is greater than this value and the maximum number of idle connections is reached, idle connections are directly evicted.
|
-minEvictableIdleTimeMillis
+ | minEvictableIdleTimeMillis
|
-60000
+ | 60000
|
-Minimum amount of time (in milliseconds) a connection may remain idle in the pool before it is eligible for eviction. The recommended value is -1, indicating that softMinEvictableIdleTimeMillis is used instead of minEvictableIdleTimeMillis.
+ | Minimum amount of time (in milliseconds) a connection may remain idle in the pool before it is eligible for eviction. The recommended value is -1, indicating that softMinEvictableIdleTimeMillis is used instead.
|
-timeBetweenEvictionRunsMillis
+ | timeBetweenEvictionRunsMillis
|
-60000
+ | 60000
|
-Interval (in milliseconds) for checking and evicting idle connections.
+ | Interval (in milliseconds) for checking and evicting idle connections.
|
-Table 4 JedisClientConfiguration parametersParameter
+Table 4 JedisClientConfiguration parametersParameter
|
-Default Value
+ | Default Value
|
-Description
+ | Description
|
-connectTimeout
+ | connectTimeout
|
-2000
+ | 2000
|
-Connection timeout interval, in milliseconds.
+ | Connection timeout interval, in milliseconds.
|
-readTimeout
+ | readTimeout
|
-2000
+ | 2000
|
-Timeout interval for waiting for a response, in milliseconds.
+ | Timeout interval for waiting for a response, in milliseconds.
|
-poolConfig
+ | poolConfig
|
--
+ | -
|
-Pool configurations. For details, see JedisPoolConfig.
+ | Pool configurations. For details, see JedisPoolConfig.
|
diff --git a/docs/dcs/umn/dcs-ug-1009001.html b/docs/dcs/umn/dcs-ug-1009001.html
index c0e0765dd..a720d9ce3 100644
--- a/docs/dcs/umn/dcs-ug-1009001.html
+++ b/docs/dcs/umn/dcs-ug-1009001.html
@@ -3,7 +3,7 @@
Viewing Redis Run Logs
You can create run log files on the DCS console to collect run logs of DCS Redis instances within a specified period. After the logs are collected, you can download the log files to view the logs.
This function is supported by DCS Redis 4.0 instances and later.
- Procedure- Log in to the DCS console.
- Click
in the upper left corner and select a region and a project. - In the navigation pane, choose Cache Manager.
- Click the name of a DCS instance.
- Click the Run Logs tab.
- Click Create Log File.
If the instance is the master/standby or cluster type, you can specify the shard and replica whose run logs you want to collect. If the instance is the single-node type, logs of the only node of the instance will be collected.
+Procedure- Log in to the DCS console.
- Click
in the upper left corner and select a region and a project. - In the navigation pane, choose Cache Manager.
- Click the name of a DCS instance.
- Click Run Logs.
- Click Create Log File.
For a master/standby or cluster instance, logs will be collected from the specified shard and replica. If the instance is the single-node type, logs of the only node of the instance will be collected.
Select the collection period and click OK.
- After the log file is successfully collected, click Download to download it.
diff --git a/docs/dcs/umn/dcs-ug-190808001.html b/docs/dcs/umn/dcs-ug-190808001.html
index 12ec26cf0..00f951b4f 100644
--- a/docs/dcs/umn/dcs-ug-190808001.html
+++ b/docs/dcs/umn/dcs-ug-190808001.html
@@ -3,7 +3,7 @@
Analyzing Big Keys and Hot Keys
By performing big key analysis and hot key analysis, you will have a picture of keys that occupy a large space and keys that are the most frequently accessed.
Notes on big key analysis:
- - All DCS Redis instances support big key analysis.
- During big key analysis, all keys will be traversed. The larger the number of keys, the longer the analysis takes.
- Perform big key analysis during off-peak hours and avoid automatic backup periods.
- For a master/standby or cluster instance, the big key analysis is performed on the standby node, so the impact on the instance is minor. For a single-node instance, the big key analysis is performed on the only node of the instance and will reduce the instance access performance by up to 10%. Therefore, perform big key analysis on single-node instances during off-peak hours.
- A maximum of 100 big key analysis records (20 for Strings and 80 for Lists/Sets/Zsets/Hashes) are retained for each instance. When this limit is reached, the oldest records will be deleted to make room for new records. You can also manually delete records you no longer need.
+ - All DCS Redis instances support big key analysis.
- During big key analysis, all keys will be traversed. The larger the number of keys, the longer the analysis takes.
- Perform big key analysis during off-peak hours and avoid automatic backup periods.
- For a master/standby or cluster instance, the big key analysis is performed on the standby node, so the impact on the instance is minor. For a single-node instance, the big key analysis is performed on the only node of the instance and will reduce the instance access performance by up to 10%. Therefore, perform big key analysis on single-node instances during off-peak hours.
- A maximum of 100 big key analysis records (20 for Strings; 80 for Lists/Sets/Zsets/Hashes and max. 20 for each type) are retained for each instance. When this limit is reached, the oldest records will be deleted to make room for new records. You can also manually delete records you no longer need.
Notes on hot key analysis:
- Only DCS Redis 4.0/5.0/6.0 instances support hot key analysis, and the maxmemory-policy parameter of the instances must be set to allkeys-lfu or volatile-lfu.
- During hot key analysis, all keys will be traversed. The larger the number of keys, the longer the analysis takes.
- Perform hot key analysis shortly after peak hours to ensure the accuracy of the analysis results.
- The hot key analysis is performed on the master node of each instance and will reduce the instance access performance by up to 10%.
- A maximum of 100 hot key analysis records are retained for each instance. When this limit is reached, the oldest records will be deleted to make room for new records. You can also manually delete records you no longer need.
Perform big key and hot key analysis during off-peak hours to avoid 100% CPU usage.
diff --git a/docs/dcs/umn/dcs-ug-190926001.html b/docs/dcs/umn/dcs-ug-190926001.html
index a3ef2ed25..8d3b33c83 100644
--- a/docs/dcs/umn/dcs-ug-190926001.html
+++ b/docs/dcs/umn/dcs-ug-190926001.html
@@ -8,7 +8,7 @@
For details about the configuration parameters, see Modifying Configuration Parameters.
You can view the slow log of a Proxy Cluster DCS Redis 3.0 instance only if the instance is created after October 14, 2019. If the instance was created earlier, contact technical support to upgrade it. The upgrade adds the slow log function to the console, and does not affect services.
- Viewing Slow Queries on the Console- Log in to the DCS console.
- Click
in the upper left corner and select a region and a project. - In the navigation pane, choose Cache Manager.
- Click the name of a DCS instance.
- Choose Analysis and Diagnosis > Slow Queries.
- Select a start date and an end date to view slow queries within the specified period.
For details about the commands, visit the Redis official website.
+ Viewing Slow Queries on the Console- Log in to the DCS console.
- Click
in the upper left corner and select a region and a project. - In the navigation pane, choose Cache Manager.
- Click the name of a DCS instance.
- Choose Analysis and Diagnosis > Slow Queries.
- Select a start date and an end date to view slow queries within the specified period.
- For details about the commands, visit the Redis official website.
- Slow queries of up to seven days can be queried.
Figure 1 Slow query log of an instance
diff --git a/docs/dcs/umn/dcs-ug-210330002.html b/docs/dcs/umn/dcs-ug-210330002.html
index 6b00ff8ba..c48af4b1b 100644
--- a/docs/dcs/umn/dcs-ug-210330002.html
+++ b/docs/dcs/umn/dcs-ug-210330002.html
@@ -85,13 +85,16 @@
Performance
-- The SCAN command is executed at the data plane every 5 ms, that is, 200 times per second. If Keys to Iterate is set to 10, 100, or 1000, 2000, 20,000, or 200,000 keys are scanned per second.
- The larger the number of keys scanned per second, the higher the CPU usage.
+- The SCAN command is executed at the data plane every 5 ms, that is, 200 times per second. If Keys to Iterate is set to 10, 50, 100, or 1000, 2000, 10,000, 20,000, or 200,000 keys are scanned per second.
- The larger the number of keys scanned per second, the higher the CPU usage.
Reference test
-A master/standby instance is scanned. There are 10 million keys that will not expire and 5 million keys that will expire. The expiration time is 1 to 10 seconds. - Natural deletion: 10,000 records are deleted per second. It takes 8 minutes to delete 5 million expired keys. The CPU usage is about 5%.
- Keys to Iterate set to 10: The scanning takes 125 minutes (15 million/2000/60 seconds) and the CPU usage is about 8%.
- Keys to Iterate set to 50: The scanning takes 25 minutes (15 million/10,000/60 seconds) and the CPU usage is about 10%.
- Keys to Iterate set to 100: The scanning takes 12.5 minutes (15 million/20,000/60 seconds) and the CPU usage is about 20%.
- Keys to Iterate set to 1000: The scanning takes 1.25 minutes (15 million/200,000/60 seconds) and the CPU usage is about 25%.
+ A master/standby instance is scanned. There are 10 million keys that will not expire and 5 million keys that will expire. The expiration time is 1 to 10 seconds. A full scan is executed.
+ The following test results are for reference only. They may vary depending on the site environment and network fluctuation.
+
+ - Natural deletion: 10,000 expired keys are deleted per second. It takes 8 minutes to delete 5 million expired keys. The CPU usage is about 5%.
- Keys to Iterate set to 10: The scanning takes 125 minutes (15 million/2000/60 seconds) and the CPU usage is about 8%.
- Keys to Iterate set to 50: The scanning takes 25 minutes (15 million/10,000/60 seconds) and the CPU usage is about 10%.
- Keys to Iterate set to 100: The scanning takes 12.5 minutes (15 million/20,000/60 seconds) and the CPU usage is about 20%.
- Keys to Iterate set to 1000: The scanning takes 1.25 minutes (15 million/200,000/60 seconds) and the CPU usage is about 25%.
Configuration suggestions
-- You can configure the number of keys to be scanned and the scanning interval based on the total number of keys and the increase in the number of keys in the instance.
- In the reference test with 15 million keys and Keys to Iterate set to 10, the scanning takes about 125 minutes. In this case, set the interval to more than 4 hours.
- If you want to accelerate the scanning, set Keys to Iterate to 100. It takes about 12.5 minutes to complete the scanning. Therefore, set the interval to more than 30 minutes.
- The larger the number of keys to iterate, the faster the scanning, and the higher the CPU usage. There is a trade-off between time and CPU usage.
- If the number of expired keys does not increase rapidly, you can scan expired keys once a day.
Start scanning during off-peak hours. Set the interval to one day and the timeout to two days.
+ - You can configure the number of keys to be scanned and the scanning interval based on the total number of keys and the increase in the number of keys in the instance.
- In the reference test with 15 million keys and Keys to Iterate set to 10, the scanning takes about 125 minutes. In this case, set the scan interval to more than 4 hours.
- If you want to accelerate the scanning, set Keys to Iterate to 100. It takes about 12.5 minutes to complete the scanning. Therefore, set the scan interval to more than 30 minutes.
- The larger the number of keys to iterate, the faster the scanning, and the higher the CPU usage. There is a trade-off between time and CPU usage.
- If the number of expired keys does not increase rapidly, you can scan expired keys once a day.
Start scanning during off-peak hours. Set the interval to one day and the timeout to two days.
diff --git a/docs/dcs/umn/dcs-ug-211105001.html b/docs/dcs/umn/dcs-ug-211105001.html
index 94b85e35c..ddc834d01 100644
--- a/docs/dcs/umn/dcs-ug-211105001.html
+++ b/docs/dcs/umn/dcs-ug-211105001.html
@@ -2,7 +2,7 @@
go-redis
Access a DCS Redis instance through go-redis on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
-
|
port
@@ -769,28 +769,28 @@ public class RedisPoolConfiguration {
|
-1
|
-Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. The default value -1 indicates to wait indefinitely.
+ | Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. The default value –1 indicates to wait indefinitely.
|
testOnCreate
|
false
|
-Set to true to enable connectivity test on creating connections. Default: false.
+ | Set to true to enable connectivity test on creating connections. Default: false.
|
testOnBorrow
|
false
|
-Set to true to enable connectivity test on borrowing connections. Default: false. Set to false for heavy-traffic services to reduce overhead.
+ | Set to true to enable connectivity test on borrowing connections. Default: false. Set to false for heavy-traffic services to reduce overhead.
|
testOnReturn
|
false
|
-Set to true to enable connectivity test on returning connections. Default: false. Set to false for heavy-traffic services to reduce overhead.
+ | Set to true to enable connectivity test on returning connections. Default: false. Set to false for heavy-traffic services to reduce overhead.
|
testWhileIdle
@@ -811,7 +811,7 @@ public class RedisPoolConfiguration {
|
60000
|
-An eviction policy, set -1 (suggested) to disable it. Use softminEvictableIdleTimeMillis instead.
+ | An eviction policy, set to –1 (suggested) to disable it. Use softminEvictableIdleTimeMillis instead.
|
timeBetweenEvictionRunsMillis
diff --git a/docs/dcs/umn/dcs-ug-211105004.html b/docs/dcs/umn/dcs-ug-211105004.html
index 650c6f12a..279672f78 100644
--- a/docs/dcs/umn/dcs-ug-211105004.html
+++ b/docs/dcs/umn/dcs-ug-211105004.html
@@ -4,7 +4,7 @@
Access a DCS Redis instance through Redisson on an ECS in the same VPC. For more information about how to use other Redis clients, visit the Redis official website.
For Spring Boot projects, Spring Data Redis is already integrated with Jedis and Lettuce, but does not support Redisson. Redisson provides the redisson-spring-boot-starter component (https://mvnrepository.com/artifact/org.redisson/redisson) that can be used with Spring Boot.
Spring Boot 1.x is integrated with Jedis, and Spring Boot 2.x is integrated with Lettuce.
- - If a password was set during DCS Redis instance creation, configure the password for connecting to Redis using Redisson. Do not hard code the plaintext password.
- To connect to a single-node, master/standby, or Proxy Cluster instance, use the useSingleServer method of the SingleServerConfig object of Redisson. To connect to a Redis Cluster instance, use the useClusterServers method of the ClusterServersConfig object.
+ - If a password was set during DCS Redis instance creation, configure the password for connecting to Redis using Redisson. Do not hard code the plaintext password.
- To connect to a single-node or Proxy Cluster instance, use the useSingleServer method of the SingleServerConfig object of Redisson. To connect to a master/standby instance, use the useMasterSlaveServers method of the MasterSlaveServersConfig object of Redisson. To connect to a Redis Cluster instance, use the useClusterServers method of the ClusterServersConfig object.
Prerequisites
@@ -29,18 +29,19 @@
</dependency>
Bean ConfigurationSpring Boot does not provide Redisson adaptation, and the application.properties configuration file does not have the corresponding configuration item. Therefore, you can only use Bean configuration.
- |
-Table 2 SingleServerConfig parameters (single-node)Parameter
+Table 2 SingleServerConfig parameters (single-node, or Proxy Cluster)Parameter
|
Default Value
|
@@ -412,7 +337,7 @@ public class RedisConfiguration {
-
|
-Node connection information, in ip:port format.
+ | Node connection information, in redis://ip:port format.
|
database
@@ -510,7 +435,7 @@ public class RedisConfiguration {
|
-Table 3 MasterSlaveServersConfig parameters (master/standby and Proxy Cluster)Parameter
+Table 3 MasterSlaveServersConfig parameters (master/standby)Parameter
|
Default Value
|
@@ -522,14 +447,14 @@ public class RedisConfiguration {
-
|
-Master node connection information, in ip:port format.
+ | Master node connection information, in redis://ip:port format.
|
slaveAddresses
|
-
|
-List of replica connection information: Set<ip:port>
+ | Standby node connection information, in Set<redis://ip:port> format.
|
readMode
@@ -667,7 +592,7 @@ public class RedisConfiguration {
|
-
|
-Connection addresses of cluster nodes. Each address uses the ip:port format. Use commas (,) to separate connection addresses of different nodes.
+ | Connection addresses of cluster nodes. Each address uses the redis://ip:port format. Use commas (,) to separate connection addresses of different nodes.
|
password
diff --git a/docs/dcs/umn/dcs-ug-211202002.html b/docs/dcs/umn/dcs-ug-211202002.html
index f3e396238..8b5dcee3a 100644
--- a/docs/dcs/umn/dcs-ug-211202002.html
+++ b/docs/dcs/umn/dcs-ug-211202002.html
@@ -7,20 +7,20 @@
Procedure- View the IP address/domain name and port number of the DCS Redis instance to be accessed.
For details, see Viewing Details of a DCS Instance.
- Log in to the ECS.
- Install the PHP development package and CLI tool. Run the following yum command:
yum install php-devel php-common php-cli
- After the installation is complete, check the version number to ensure that the installation is successful.
php --version
- - Download the Predis package to the /usr/share/php directory.
- Run the following command to download the Predis source file:
wget https://github.com/predis/predis/archive/refs/tags/v1.1.10.tar.gz
+ - Download the Predis package to the /usr/share/php directory.
- Run the following command to download the Predis source file:
wget https://github.com/predis/predis/archive/refs/tags/v2.2.2.tar.gz
This version is used as an example. To download Predis clients of other versions, visit the Redis or PHP official website.
- - Run the following commands to decompress the source Predis package:
tar -zxvf predis-1.1.10.tar.gz
- - Rename the decompressed Predis directory predis and move it to /usr/share/php/.
mv predis-1.1.10 predis
+ - Run the following commands to decompress the source Predis package:
tar -zxvf predis-2.2.2.tar.gz
+ - Rename the decompressed Predis directory predis and move it to /usr/share/php/.
mv predis-2.2.2 predis
- Edit a file used to connect to Redis.
- Example of using redis.php to connect to a single-node, master/standby, or Proxy Cluster DCS Redis instance:
<?php
require 'predis/autoload.php';
Predis\Autoloader::register();
$client = new Predis\Client([
'scheme' => 'tcp' ,
- 'host' => '{redis_instance_address}' ,
- 'port' => {port} ,
- 'password' => '{password}'
+ 'host' => '{redis_instance_address}' ,
+ 'port' =>{port} ,
+ 'password' => '{password}'
]);
$client->set('foo', 'bar');
$value = $client->get('foo');
@@ -29,7 +29,7 @@
- Example code for using redis-cluster.php to connect to Redis Cluster:
<?php
require 'predis/autoload.php';
$servers = array(
- 'tcp://{redis_instance_address}:{port}'
+ 'tcp://{redis_instance_address}:{port}'
);
$options = array('cluster' => 'redis');
$client = new Predis\Client($servers, $options);
@@ -38,7 +38,7 @@
echo $value;
?>
-{redis_instance_address} indicates the actual IP address/domain name of the DCS instance and {port} is the actual port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation. If password-free access is required, delete the line that contains "password".
+{redis_instance_address} indicates the actual IP address/domain name of the DCS instance and {port} is the actual port number of DCS instance. For details about how to obtain the IP address/domain name and port, see 1. Change them as required. {password} indicates the password used to log in to the chosen DCS Redis instance. This password is defined during DCS Redis instance creation. If password-free access is required, delete the line that contains "password".
- Run the php redis.php command to access the DCS instance.
diff --git a/docs/dcs/umn/en-us_image_0000001673542781.png b/docs/dcs/umn/en-us_image_0000001805332909.png
similarity index 100%
rename from docs/dcs/umn/en-us_image_0000001673542781.png
rename to docs/dcs/umn/en-us_image_0000001805332909.png
diff --git a/docs/dcs/umn/en-us_image_0266235403.png b/docs/dcs/umn/en-us_image_0266235403.png
deleted file mode 100644
index 24952ad78..000000000
Binary files a/docs/dcs/umn/en-us_image_0266235403.png and /dev/null differ
diff --git a/docs/dcs/umn/en-us_image_0266315618.png b/docs/dcs/umn/en-us_image_0266315618.png
index a223f3735..c24a2e2b0 100644
Binary files a/docs/dcs/umn/en-us_image_0266315618.png and b/docs/dcs/umn/en-us_image_0266315618.png differ
| |
|---|
|
|---|
|
|---|
|
|---|
|
|---|
| |
|---|
|
|---|
|
|---|
|
|---|
|---|
|
|---|
|
|---|
|