Re: run repair on each node or every R nodes?

2012-10-18 Thread aaron morton
Without -pr the repair works on all token ranges the node is a replica for. 

With -pr it  only repairs data in the token range it is assigned. In your case 
when you ran it on node 0 with RF the token range form node 0 was repaired on 
nodes 0, 1 and 2. The other token ranges on nodes 0, 1 and 2 were not repaired. 

Cheers


-
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 18/10/2012, at 5:15 AM, Andrey Ilinykh ailin...@gmail.com wrote:

 
 In my mind it does make sense, and what you're saying is correct. But I read
 that it was better to run repair in each node with a -pr option.
 
 Alain
 
 Yes, it's correct. Running repair -pr on each node you repair whole
 cluster without job duplication.
 
 Andrey



Re: run repair on each node or every R nodes?

2012-10-17 Thread Alain RODRIGUEZ
I see. So if I don't use the '-pr' option, triggering repair on node-00 is
sufficient to repair the first 3 nodes.
No need to cron a repair on node-{01,02}.
correct?

forget it. this was nonsense.

In my mind it does make sense, and what you're saying is correct. But I
read that it was better to run repair in each node with a -pr option.

Alain

2012/10/16 Alexis Midon alexismi...@gmail.com

 forget it. this was nonsense.


 On Mon, Oct 15, 2012 at 10:05 PM, Alexis Midon alexismi...@gmail.comwrote:

 I see. So if I don't use the '-pr' option, triggering repair on node-00
 is sufficient to repair the first 3 nodes.
 No need to cron a repair on node-{01,02}.
 correct?

 thanks for your answer.


 On Mon, Oct 15, 2012 at 6:51 PM, Andrey Ilinykh ailin...@gmail.comwrote:

 Only one region (node-00 is responsible for) will get repaired on all
 three nodes.
 Andrey
 On Mon, Oct 15, 2012 at 11:56 AM, Alexis Midon alexismi...@gmail.com
 wrote:
 
  Hi all,
 
  I have a 9-node cluster with a replication factor R=3. When I run
 repair -pr
  on node-00, I see the exact same load and activity on node-{01,02}.
  Specifically, compactionstats shows the same Validation tasks.
  Does this mean that all 3 nodes will be repaired when nodetool
 returns? or
  do I still have to trigger a nodetool-repair on node-{01,02}?
 
  Thanks,
 
  Alexis






Re: run repair on each node or every R nodes?

2012-10-17 Thread Radim Kolar

what if first node in range is down? then -pr would be ineffective


Re: run repair on each node or every R nodes?

2012-10-17 Thread Andrey Ilinykh

 In my mind it does make sense, and what you're saying is correct. But I read
 that it was better to run repair in each node with a -pr option.

 Alain

Yes, it's correct. Running repair -pr on each node you repair whole
cluster without job duplication.

Andrey


run repair on each node or every R nodes?

2012-10-15 Thread Alexis Midon
Hi all,

I have a 9-node cluster with a replication factor R=3. When I run repair
-pr on node-00, I see the exact same load and activity on node-{01,02}.
Specifically, compactionstats shows the same Validation tasks.
Does this mean that all 3 nodes will be repaired when nodetool returns? or
do I still have to trigger a nodetool-repair on node-{01,02}?

Thanks,

Alexis


Re: run repair on each node or every R nodes?

2012-10-15 Thread Will Martin
+1Is this a consensus activity and is the master fixed, or does the voting 
process migrate during the cycles??



On Oct 15, 2012, at 2:56 PM, Alexis Midon wrote:

 
 Hi all,
 
 I have a 9-node cluster with a replication factor R=3. When I run repair -pr 
 on node-00, I see the exact same load and activity on node-{01,02}. 
 Specifically, compactionstats shows the same Validation tasks.
 Does this mean that all 3 nodes will be repaired when nodetool returns? or do 
 I still have to trigger a nodetool-repair on node-{01,02}?
 
 Thanks,
 
 Alexis



Re: run repair on each node or every R nodes?

2012-10-15 Thread Andrey Ilinykh
Only one region (node-00 is responsible for) will get repaired on all
three nodes.
Andrey
On Mon, Oct 15, 2012 at 11:56 AM, Alexis Midon alexismi...@gmail.com wrote:

 Hi all,

 I have a 9-node cluster with a replication factor R=3. When I run repair -pr
 on node-00, I see the exact same load and activity on node-{01,02}.
 Specifically, compactionstats shows the same Validation tasks.
 Does this mean that all 3 nodes will be repaired when nodetool returns? or
 do I still have to trigger a nodetool-repair on node-{01,02}?

 Thanks,

 Alexis


Re: run repair on each node or every R nodes?

2012-10-15 Thread Alexis Midon
I see. So if I don't use the '-pr' option, triggering repair on node-00 is
sufficient to repair the first 3 nodes.
No need to cron a repair on node-{01,02}.
correct?

thanks for your answer.

On Mon, Oct 15, 2012 at 6:51 PM, Andrey Ilinykh ailin...@gmail.com wrote:

 Only one region (node-00 is responsible for) will get repaired on all
 three nodes.
 Andrey
 On Mon, Oct 15, 2012 at 11:56 AM, Alexis Midon alexismi...@gmail.com
 wrote:
 
  Hi all,
 
  I have a 9-node cluster with a replication factor R=3. When I run repair
 -pr
  on node-00, I see the exact same load and activity on node-{01,02}.
  Specifically, compactionstats shows the same Validation tasks.
  Does this mean that all 3 nodes will be repaired when nodetool returns?
 or
  do I still have to trigger a nodetool-repair on node-{01,02}?
 
  Thanks,
 
  Alexis



Re: run repair on each node or every R nodes?

2012-10-15 Thread Alexis Midon
forget it. this was nonsense.

On Mon, Oct 15, 2012 at 10:05 PM, Alexis Midon alexismi...@gmail.comwrote:

 I see. So if I don't use the '-pr' option, triggering repair on node-00 is
 sufficient to repair the first 3 nodes.
 No need to cron a repair on node-{01,02}.
 correct?

 thanks for your answer.


 On Mon, Oct 15, 2012 at 6:51 PM, Andrey Ilinykh ailin...@gmail.comwrote:

 Only one region (node-00 is responsible for) will get repaired on all
 three nodes.
 Andrey
 On Mon, Oct 15, 2012 at 11:56 AM, Alexis Midon alexismi...@gmail.com
 wrote:
 
  Hi all,
 
  I have a 9-node cluster with a replication factor R=3. When I run
 repair -pr
  on node-00, I see the exact same load and activity on node-{01,02}.
  Specifically, compactionstats shows the same Validation tasks.
  Does this mean that all 3 nodes will be repaired when nodetool returns?
 or
  do I still have to trigger a nodetool-repair on node-{01,02}?
 
  Thanks,
 
  Alexis