Tencent / Tendis

Tendis is a high-performance distributed storage system fully compatible with the Redis protocol.
http://tendis.cn
Other
2.96k stars 326 forks source link

Tendis不支持Redis Replication协议的SYNC, PSYNC, PSYNC2三种同步命令 #126

Open phenix-gao opened 3 years ago

phenix-gao commented 3 years ago

Tendis不支持Redis Replication协议的SYNC, PSYNC, PSYNC2三种同步命令,请问有考虑支持吗? 1920:S 24 Jun 16:12:13.258 # MASTER aborted replication with an error: ERR unknown command 'SYNC' 1920:S 24 Jun 16:12:14.246 Connecting to MASTER 192.168.12.20:51000 1920:S 24 Jun 16:12:14.246 MASTER <-> SLAVE sync started 1920:S 24 Jun 16:12:14.251 Non blocking connect for SYNC fired the event. 1920:S 24 Jun 16:12:14.257 Master replied to PING, replication can continue... 1920:S 24 Jun 16:12:14.260 (Non critical) Master does not understand REPLCONF listening-port: -ERR unknown command 'REPLCONF' 1920:S 24 Jun 16:12:14.269 (Non critical) Master does not understand REPLCONF capa: -ERR unknown command 'REPLCONF' 1920:S 24 Jun 16:12:14.269 Partial resynchronization not possible (no cached master) 1920:S 24 Jun 16:12:14.278 Master does not support PSYNC or is in error state (reply: -ERR wrong number of arguments for 'PSYNC' command) 1920:S 24 Jun 16:12:14.278 Retrying with SYNC... 1920:S 24 Jun 16:12:14.282 # MASTER aborted replication with an error: ERR unknown command 'SYNC' 1920:S 24 Jun 16:12:15.281 Connecting to MASTER 192.168.12.20:51000 1920:S 24 Jun 16:12:15.282 MASTER <-> SLAVE sync started 1920:S 24 Jun 16:12:15.286 Non blocking connect for SYNC fired the event. 1920:S 24 Jun 16:12:15.292 Master replied to PING, replication can continue... 1920:S 24 Jun 16:12:15.297 (Non critical) Master does not understand REPLCONF listening-port: -ERR unknown command 'REPLCONF' 1920:S 24 Jun 16:12:15.304 (Non critical) Master does not understand REPLCONF capa: -ERR unknown command 'REPLCONF' 1920:S 24 Jun 16:12:15.305 Partial resynchronization not possible (no cached master) 1920:S 24 Jun 16:12:15.310 Master does not support PSYNC or is in error state (reply: -ERR wrong number of arguments for 'PSYNC' command) 1920:S 24 Jun 16:12:15.310 Retrying with SYNC...

TendisDev commented 3 years ago

SYNC, PSYNC, PSYNC2是redis用于内部复制的指令 但tendis的同步机制跟redis并不相同,目前兼容了slaveofcluster replicate等使用命令