【发布时间】:2018-10-27 08:34:04
【问题描述】:
我在 cassandra 的 debug.log 中不断看到这个错误,
WARN [SharedPool-Worker-2] 2018-05-16 08:33:48,585 BatchStatement.java:287 - Batch of prepared statements for [test, test1] is of size 6419, exceeding specified threshold of 5120 by 1299.
在这
where,
6419 - Input payload size (Batch)
5120 - Threshold size
1299 - Byte size above threshold value
所以根据 Cassandra 中的这张票,https://github.com/krasserm/akka-persistence-cassandra/issues/33 我看到这是由于输入有效负载大小的增加,所以我将 cassandra.yml 中的 commitlog_segment_size_in_mb 增加到 60mb,我们不再面临这个警告.
此警告有害吗?增加 commitlog_segment_size_in_mb 会影响性能吗?
【问题讨论】: