Parameter | Description | Example |
-s | The endpoint and port of the source Redis instance. Note If the source Redis instance is a cluster, separate cluster endpoints with semicolons (;). Enclose the cluster endpoints in a pair of double quotation marks ("). This parameter is required.
|
r-bp1xxxxxxxxxxxxx.redis.rds.aliyuncs.com:6379
"10.xx.xx.1:7000;10.xx.xx.1:7001;10.xx.xx.2:7002;10.xx.xx.2:7003"
|
-p | The username and password that are used to connect to the source Redis instance. Specify this parameter in the <username>:<password> format. Example: testaccount:Test1234 . If no username is set for the instance, you can enter only the password. If no password is set for the instance, you can leave the parameter empty. | SourcePwd233 or testaccount:Test1234
|
-t | The endpoint and port of the destination Redis instance. Note If the destination Redis instance is a cluster, separate cluster endpoints with semicolons (;). Enclose the cluster endpoints in a pair of double quotation marks ("). This parameter is required.
|
r-bp1xxxxxxxxxxxxx.redis.rds.aliyuncs.com:6379
"10.xx.xx.1:7000;10.xx.xx.1:7001;10.xx.xx.2:7002;10.xx.xx.2:7003"
|
-a | The username and password that are used to connect to the destination Redis instance. Specify this parameter in the <username>:<password> format. Example: testaccount:Test1234 . If no username is set for the instance, you can enter only the password. If no password is set for the instance, you can leave the parameter empty. | TargetPwd233 or testaccount:Test1234
|
--sourcedbtype | The type of the source Redis instance. Default value: 0. Valid values: | --sourcedbtype=1
|
--sourcedbfilterlist | The databases for which you want to verify data in the source Redis instance. Note This parameter is not required for open source Redis clusters. If you do not set this parameter, the data in all databases is verified. Separate multiple databases with semicolons (;).
| --sourcedbfilterlist=0;1;2
|
--targetdbtype | The type of the destination Redis instance. Valid values: | --targetdbtype=0
|
--targetdbfilterlist | The databases for which you want to verify data in the destination Redis instance. Note This parameter is not required for open source Redis clusters. If you do not set this parameter, the data in all databases is verified. Separate multiple databases with semicolons (;).
| --targetdbfilterlist=0;1;2
|
-d | The name of the file for storing inconsistent keys. Default value: result.db. | xxx.db
|
--comparetimes | The number of verifications. Default value: 3. Minimum value: 1. We recommend that you set this parameter to a value that does not exceed 5. | --comparetimes=1 |
-m | The verification mode. Default value: 2. Valid values: 1: verifies full data. 2: only verifies the length of the value. 3: only checks whether the keys exist. 4: verifies full data except for large keys.
| -m=1 |
--qps | The queries per second (QPS). Default value: 15000. | --qps=10 |
--filterlist | The keys to verify. Separate multiple keys with vertical bars (|). | --filterlist=abc*|efg|m* |