Sometimes when the zabbix monitor executes the sql "select value from system.asynchronous_metrics where metric='ReplicasMaxAbsoluteDelay';", it will return a very large value like "52y 9m 18d" (currenttime - 1970).
According to the getAbsoluteDelay() function, we knew when queue_update_finish_time is null, this function will return current_time.
But we want to analyze when and why queue_update_finish_time is null, what can we check from clickhouse system table or log ? We've checked the error log and zookeeper log, but it seems there is no infomation about this problem.
Thanks.
1条答案
按热度按时间y4ekin9u1#
通常,这意味着表不同步,进入只读模式。
导致只读模式的原因可能是:
要获得更多信息,请查看
system.replicas
表:在大多数情况下,它有助于运行:
https://clickhouse.com/docs/en/sql-reference/statements/system/#restart-replica