문제

Can anyone tell me how to check the under replicated keys in cassandra?

I know how to check the replication factor for the keyspace and "nodetool repair" for repairing but I was unable to find which of my keys are under replicated in my cluster.

Thanks.

도움이 되었습니까?

해결책

Cassandra doesn't provide a way to know which keys may have had writes which didn't quite make it to all of the replicas. Even when repair is run it doesn't really provide to the other replicas which exact keys need to be repaired, but ranges where there are inconsistencies.

If you're wondering when to run repair: run it every week (if you have a default gc_grace of 10 days), or after an event where a node is down for more than an hour (or longer than the hint window).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top