首批通过分布式安全可靠测评,为关键业务系统打造
排查是否因时钟跳变导致 RS 失去心跳的方法
更新时间:2026-06-12 07:31
本文介绍排查是否因时钟跳变导致 Root Service 失去心跳的方法。
Root Service 日志中可以搜索日志关键字 clock between rs and server not sync。
Root Service 和 Server 时间差 = current_rs_time(当前 Root Service 时间)- current_server_time(当前 Server 时间)。
server_behind_time = current_rs_time -(current_server_time + round_trip_time / 2)。 其中 round_trip_time 为一个报文的往返时间(如果网络有问题,或者机器在白名单中也同样会报该错误)。 如果 server_behind_time > 集群配置的 rpc_timeout 则表示 Root Service 收不到 Server 心跳信息。
rpc_timeout 系统参数用于设置 RPC 请求被终止之前允许执行的时间。
适用版本
OceanBase 数据库 V2.x、V3.x 版本。