【发布时间】:2020-06-20 18:03:01
【问题描述】:
我有一个由 3 个 ClickHouse 服务器组成的集群,其中有一个使用 ReplicatedMergeTree 的表。其中两台服务器不同步,“system.replication_queue”中的队列数不断增加。我可以在日志中看到这个错误。
Not executing log entry for part e87a3a2d13950a90846a513f435c2560_2428139_2436934_22 because source parts size (470.12 MiB) is greater than the current maximum (4.45 MiB).
如何增加源零件尺寸?我在设置中找不到它。
更新:
我阅读了源代码,它是根据可用资源自动计算的。我也收到了这条消息
Not executing log entry for part de77ce6a2937ce543cd003eb289fdb7e_8097652_8107495_1904 because another log entry for the same part is being processed. This shouldn't happen often.
在日志中收到上述消息的服务器具有较高的 CPU 使用率和插入延迟。
一旦我停止插入,复制队列就会被清除。
【问题讨论】:
-
文章表明问题是“合并的处理速度明显慢于插入”,但我没有在日志中看到该错误。我每秒只发送一个添加请求。
标签: database database-replication clickhouse