> So, running it periodically on just one node is enough for cluster > maintenance ? In the special case where you have RF == Number of nodes.
The recommended approach is to use -pr and run it on each node periodically. > Also: running it with -pr does output: That does not look right. There should be messages about requesting and receiving merkle tree's from other nodes, and that certain CF's are in sync. These are all logged from the AntiEntropyService. > Is there a way to run it only for all vnodes on a single physical node ? it should be doing that. Look for messages like this in the log logger.info(String.format("[repair #%s] new session: will sync %s on range %s for %s.%s", getName(), repairedNodes(), range, tablename, Arrays.toString(cfnames))); They say how much is going to be synced, and with what. Try running repair with -pr on one of nodes not already repaired. Cheers ----------------- Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 18/02/2013, at 11:12 AM, Marco Matarazzo <marco.matara...@hexkeep.com> wrote: >>> So, to me, it's like the "nodetool repair" command is running always on the >>> same single node and repairing everything. >> If you use nodetool repair without the -pr flag in your setup (3 nodes and I >> assume RF 3) it will repair all token ranges in the cluster. > > That's correct, 3 nodes and RF 3. Sorry for not specifying it in the > beginning. > > > So, running it periodically on just one node is enough for cluster > maintenance ? Does this depends on the fact that every vnode data is related > with the previous and next vnode, and this particular setup makes this enough > as it cover every physical node? > > > Also: running it with -pr does output: > > [2013-02-17 12:29:25,293] Nothing to repair for keyspace 'system' > [2013-02-17 12:29:25,301] Starting repair command #2, repairing 1 ranges for > keyspace keyspace_test > [2013-02-17 12:29:28,028] Repair session 487d0650-78f5-11e2-a73a-2f5b109ee83c > for range (-9177680845984855691,-9171525326632276709] finished > [2013-02-17 12:29:28,028] Repair command #2 finished > > … that, as far as I can understand, works on the first vnode on the specified > node, or so it seems from the output range. Am I right? Is there a way to run > it only for all vnodes on a single physical node ? > > Thank you! > > -- > Marco Matarazzo