RedisShake
RedisShake copied to clipboard
监控指标中怎么获取rdb阶段已经完成了呢
问题描述(Issue Description)
请在这里简要描述你遇到的问题。
监控指标中怎么获取rdb阶段已经完成了呢?
环境信息(Environment)
- RedisShake 版本(RedisShake Version):v4.0.2
- Redis 源端版本(Redis Source Version):v6
- Redis 目的端版本(Redis Destination Version):v6
- Redis 部署方式(standalone/cluster/sentinel):standalone
- 是否在云服务商实例上部署(Deployed on Cloud Provider):
日志信息(Logs)
如果有错误日志或其他相关日志,请在这里提供。
{ "start_time": "2023-11-14 13:42:49", "consistent": true, "total_entries_count": { "read_count": 6, "read_ops": 0, "write_count": 6, "write_ops": 0 }, "per_cmd_entries_count": { "RESTORE": { "read_count": 6, "read_ops": 0, "write_count": 6, "write_ops": 0 } }, "reader": { "name": "reader_192.168.16.247_6379", "address": "192.168.16.247:6379", "dir": "reader_192.168.16.247_6379", "status": "syncing aof", "rdb_file_path": "dump.rdb", "rdb_file_size_bytes": 357, "rdb_file_size_human": "357 B", "rdb_received_bytes": 357, "rdb_received_human": "357 B", "rdb_sent_bytes": 357, "rdb_sent_human": "357 B", "aof_received_offset": 511072348, "aof_sent_offset": 511072348, "aof_received_bytes": 551143, "aof_received_human": "538 KiB" }, "writer": { "name": "writer_192.168.17.166_6379", "unanswered_bytes": 0, "unanswered_entries": 0 } }
If there are any error logs or other relevant logs, please provide them here.
其他信息(Additional Information)
请提供任何其他相关的信息,如配置文件、错误信息或截图等。
Please provide any additional information, such as configuration files, error messages, or screenshots.
"status": "syncing aof",
这个监控指标。
kHandShake State = "hand shaking"
kWaitBgsave State = "waiting bgsave"
kReceiveRdb State = "receiving rdb"
kSyncRdb State = "syncing rdb"
kSyncAof State = "syncing aof"
redis-shake采用v3版本 ,restore模式,执行完就退出进程了,获取metrics就不通了吧,到时候怎么判断
redis-shake采用v3版本 ,restore模式,执行完就退出进程了,获取metrics就不通了吧,到时候怎么判断
执行完退出,是因为配置参数没有同步aof。同步工具同步完rdb正常退出就是rdb阶段同步完成了。
redis-shake采用v3版本 ,restore模式,执行完就退出进程了,获取metrics就不通了吧,到时候怎么判断
执行完退出,是因为配置参数没有同步aof。同步工具同步完rdb正常退出就是rdb阶段同步完成了。
那后端程序怎么配置shake进程不退出或者后端怎么能动态判断出执行的阶段,不需要人工去看日志
进程正常退出认为执行完毕,进程异常退出认为遇到异常,进程仍在运行,那么可以通过 http 接口查看进度。
用https://github.com/mgtv-tech/redis-GunYu,监控指标有同步状态这个指标,直接导入deploy目录下的dashboard.json,grafana下面有同步状态:全量同步,增量同步,停止同步等等