簡體   English   中英

Cassandra系統提示分區很大

[英]Cassandra system hints large partition

我們正在使用cassandra 2.1.14。 當前在system.hints表上看到大分區警告。

如何確保system.hints表沒有寬分區? 請注意,我們現在不想升級到cassandra 3。

是否有定期清理system.hints的方法?

這會導致cassandra群集中的I / O峰值嗎?

日志:

 Compacting large partition system/hints:
 10ad72eb-0240-4b94-b73e-eb4dc2aa759a (481568345 bytes)

如何確保system.hints表沒有寬分區?

您實際上無能為力。 system.hintstarget_id上分區, target_id是目標節點的主機ID。 如果為一個節點建立了10000條提示,那么實際上沒有其他地方可以使用。

是否有定期清理system.hints的方法?

如上所述,提示應在3小時后變為TTL。 此故障保護功能旨在防止system.hints表過於失控。 但這並不是萬無一失的。

一種確定的方法是通過nodetool清除它們:

nodetool truncatehints

這會導致cassandra群集中的I / O峰值嗎?

運行nodetool truncatehints是相當無害的。 我以前沒有注意到運行它會產生峰值。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM