命令族 | 命令 | 内存版(集群架构)跨 Slot 支持 |
keys 族 | del | ✓ |
| exists | ✓ |
| rename | x |
| renamenx | x |
| unlink | x |
list 族 | rpoplpush | x |
| blpop | x |
| brpop | x |
| brpoplpush | x |
sets 族 | sdiff | x |
| sdiffstore | x |
| sinter | x |
| sinterstore | x |
| smove | x |
| sunion | x |
| sunionstore | x |
sorted sets 族 | zinterstore | x |
| zunionstore | x |
strings 族 | bitop | x |
| mget | ✓ |
| mset | ✓ |
| msetnx | x |
hyperloglog 族 | pfcount | x |
| pfmerge | x |
scripting 族 | eval | x |
| evalsha | x |
| script exists | x |
Stream 族 | xread | x |
| xreadgroup | x |
> eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second1) "key1"2) "key2"3) "first"4) "second"
10.1.1.1:2000> cluster nodes25b21f1836026bd49c52b2d10e09fbf8c6aa1fdc 10.0.0.15:6379@11896 slave 36034e645951464098f40d339386e9d51a9d7e77 0 1531471918205 1 connectedda6041781b5d7fe21404811d430cdffea2bf84de 10.0.0.15:6379@11170 master - 0 1531471916000 2 connected 10923-1638336034e645951464098f40d339386e9d51a9d7e77 10.0.0.15:6379@11541 myself,master - 0 1531471915000 1 connected 0-546053f552fd8e43112ae68b10dada69d3af77c33649 10.0.0.15:6379@11681 slave da6041781b5d7fe21404811d430cdffea2bf84de 0 1531471917204 3 connected18090a0e57cf359f9f8c8c516aa62a811c0f0f0a 10.0.0.15:6379@11428 slave ef3cf5e20e1a7cf5f9cc259ed488c82c4aa17171 0 1531471917000 2 connectedef3cf5e20e1a7cf5f9cc259ed488c82c4aa17171 10.0.0.15:6379@11324 master - 0 1531471916204 0 connected 5461-10922原生命令:info server自定义命令:info server ef3cf5e20e1a7cf5f9cc259ed488c82c4aa17171SCAN命令示例:scan 0 238b45926a528c85f40ae89d6779c802eaa394a2scan 0 match a* 238b45926a528c85f40ae89d6779c802eaa394a2KEYS命令示例:keys a* 238b45926a528c85f40ae89d6779c802eaa394a2
Usage:./cluster_migrate_check.py host port password
host、port、password
输入标准版 Redis 的信息。Usage:./cluster_migrate_online_check srcip:srcport srcpasswd dstip:dstport dstpasswd环境变量参数:export logout=1 //打印命令到控制台,默认关闭export pipeline = 2000 //pipeline 并发数量,默认1000
srcip:srcport
:必填,输入标准版 Redis 的地址信息。dstip:dstport
:可选,输入云数据库 Redis® 内存版(集群架构)的地址信息,不填目标信息时可将该工具当 monitor 使用。config set client-output-buffer-limit "slave 1073741824 1073741824 600"
本页内容是否解决了您的问题?