You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Jean-Yves LEBLEU <jl...@gmail.com> on 2010/11/10 08:56:02 UTC

Data management on a ring

Hello all,

We have an installation of 10 nodes, and we choose to deploy 5 rings of 2
nodes.

We would like to change to a ring of 10 nodes.

Some data have to be replicated on the 10 nodes, some should stay on 2
nodes. Do you have any idea or documentation pointer in order to have a ring
of 10 nodes with such data repartition ?

Thanks for any answer.

Jean-Yves

Re: Data management on a ring

Posted by Jonathan Ellis <jb...@gmail.com>.
Yes, on a per-keyspace basis with NetworkTopologyStrategy (in 0.7).

On Wed, Nov 10, 2010 at 4:40 AM, Jean-Yves LEBLEU <jl...@gmail.com> wrote:
> Thanks for the anwser.
>
> It was not exactly my point, I would like to know if in a 10 nodes rings if
> it is possible to restrict replication of some data to only 2 nodes, and
> other data to all nodes ?
> Regards.
> Jean-Yves
>
> On Wed, Nov 10, 2010 at 11:17 AM, aaron morton <aa...@thelastpickle.com>
> wrote:
>>
>> If I understand your correctly, you just want to add 8 nodes to a ring
>> that already has 2 ?
>>
>> You could add the nodes and manually assign them tokens following the
>> guidelines here http://wiki.apache.org/cassandra/Operations
>>
>> I'm not sure how to ensure the minimum amount of data transfer though.
>> Adding all 8 at once is probably a bad idea.
>>
>> How about you make a new cluster of 8 nodes, manually assign tokens and
>> then copy the data from the 2 node ring to the 8 node. Then move the 2
>> original nodes into the new cluster?
>>
>> Hope that helps.
>> Aaron
>>
>> On 10 Nov 2010, at 20:56, Jean-Yves LEBLEU wrote:
>>
>> > Hello all,
>> >
>> > We have an installation of 10 nodes, and we choose to deploy 5 rings of
>> > 2 nodes.
>> >
>> > We would like to change to a ring of 10 nodes.
>> >
>> > Some data have to be replicated on the 10 nodes, some should stay on 2
>> > nodes. Do you have any idea or documentation pointer in order to have a ring
>> > of 10 nodes with such data repartition ?
>> >
>> > Thanks for any answer.
>> >
>> > Jean-Yves
>>
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Re: Data management on a ring

Posted by Jean-Yves LEBLEU <jl...@gmail.com>.
Thanks for the anwser.

It was not exactly my point, I would like to know if in a 10 nodes rings if
it is possible to restrict replication of some data to only 2 nodes, and
other data to all nodes ?
Regards.
Jean-Yves

On Wed, Nov 10, 2010 at 11:17 AM, aaron morton <aa...@thelastpickle.com>wrote:

> If I understand your correctly, you just want to add 8 nodes to a ring that
> already has 2 ?
>
> You could add the nodes and manually assign them tokens following the
> guidelines here http://wiki.apache.org/cassandra/Operations
>
> I'm not sure how to ensure the minimum amount of data transfer though.
> Adding all 8 at once is probably a bad idea.
>
> How about you make a new cluster of 8 nodes, manually assign tokens and
> then copy the data from the 2 node ring to the 8 node. Then move the 2
> original nodes into the new cluster?
>
> Hope that helps.
> Aaron
>
> On 10 Nov 2010, at 20:56, Jean-Yves LEBLEU wrote:
>
> > Hello all,
> >
> > We have an installation of 10 nodes, and we choose to deploy 5 rings of 2
> nodes.
> >
> > We would like to change to a ring of 10 nodes.
> >
> > Some data have to be replicated on the 10 nodes, some should stay on 2
> nodes. Do you have any idea or documentation pointer in order to have a ring
> of 10 nodes with such data repartition ?
> >
> > Thanks for any answer.
> >
> > Jean-Yves
>
>

Re: Data management on a ring

Posted by aaron morton <aa...@thelastpickle.com>.
If I understand your correctly, you just want to add 8 nodes to a ring that already has 2 ? 

You could add the nodes and manually assign them tokens following the guidelines here http://wiki.apache.org/cassandra/Operations

I'm not sure how to ensure the minimum amount of data transfer though. Adding all 8 at once is probably a bad idea. 

How about you make a new cluster of 8 nodes, manually assign tokens and then copy the data from the 2 node ring to the 8 node. Then move the 2 original nodes into the new cluster?

Hope that helps.
Aaron

On 10 Nov 2010, at 20:56, Jean-Yves LEBLEU wrote:

> Hello all,
> 
> We have an installation of 10 nodes, and we choose to deploy 5 rings of 2 nodes.
> 
> We would like to change to a ring of 10 nodes.
> 
> Some data have to be replicated on the 10 nodes, some should stay on 2 nodes. Do you have any idea or documentation pointer in order to have a ring of 10 nodes with such data repartition ?
> 
> Thanks for any answer.
> 
> Jean-Yves