You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by xavier manach <xa...@tekio.org> on 2010/06/08 16:12:25 UTC

Duplicate a node (replication).

Hi.

  I have a cluster with only 1 node with a lot of datas (500 Go) .
  I want add a new node with the same datas (with a ReplicationFactor 2)

The method normal is :
stop node.
add a node.
change replication factor to 2.
start nodes
use nodetool repair

  But , I didn't know if this other method is valid, and if it's can be
faster :
stop nodes.
copy all SSTables
change replication factor.
start nodes
and
use nodetool repair

  Have you an idea for the faster valid method ?

Thx.

Re: Duplicate a node (replication).

Posted by xavier manach <xa...@tekio.org>.
Perfect.

  It's exactly the information I needed.

Thx Jonathan.

Re: Duplicate a node (replication).

Posted by Jonathan Ellis <jb...@gmail.com>.
yes, if you're going from 1 to 2 then

1. nodetool drain & stop original node
2. copy everything from *your keyspaces* in data/ directories (but not
system keyspace!) to new node
3. start both nodes with replicationfactor=2 and autobootstrap=false
[the default]

will be faster.

On Tue, Jun 8, 2010 at 7:12 AM, xavier manach <xa...@tekio.org> wrote:
> Hi.
>
>   I have a cluster with only 1 node with a lot of datas (500 Go) .
>   I want add a new node with the same datas (with a ReplicationFactor 2)
>
> The method normal is :
> stop node.
> add a node.
> change replication factor to 2.
> start nodes
> use nodetool repair
>
>   But , I didn't know if this other method is valid, and if it's can be
> faster :
> stop nodes.
> copy all SSTables
> change replication factor.
> start nodes
> and
> use nodetool repair
>
>   Have you an idea for the faster valid method ?
>
> Thx.
>



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