-
Notifications
You must be signed in to change notification settings - Fork 693
运行日志
suxb201 edited this page Oct 19, 2022
·
2 revisions
这里解释一下 redis-shake 运行期间的日志。
syncing aof. allowOps=[0.60], disallowOps=[0.00], entryId=[2], InQueueEntriesCount=[0], unansweredBytesCount=[0]bytes, diff=[0], aofReceivedOffset=[9808], aofAppliedOffset=[9808]
其中:
- allowOps:代表每秒向目的端发送多少条命令
- disallowOps:代表每秒有多少条命令被过滤掉
- entryId:从 1 开始计数,代表 redis-shake 从启动开始总共处理多少条命令
- InQueueEntriesCount:代表多少条命令待发送
- unansweredBytesCount:代表多少 bytes 命令已经发送了,但是对端还没有答复
- diff:
aofReceivedOffset
-aofAppliedOffset
- aofReceivedOffset:已经从源端接收到的点位
- aofAppliedOffset:已经在目的端恢复的点位
一般当 allowOps 为 0 时,代表数据迁移完成,可以停止 redis-shake。PING
命令,所以哪怕源端没有写入,allowOps 偶尔也会不是 0。