incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Coli <rc...@eventbrite.com>
Subject Re: upgrading Cassandra server hardware best practice?
Date Fri, 18 Oct 2013 18:49:59 GMT
On Fri, Oct 18, 2013 at 11:39 AM, Arindam Barua <abarua@247-inc.com> wrote:

>  ** **
>
> We currently have 2 datacenters and a ring of 5 Cassandra servers on each
> datacenter. We are getting new hardware, and after evaluating them, plan to
> upgrade the ring to the new hardware.****
>
> ** **
>
> Is there any recommended procedure for doing so?
>

This is similar to the process for changing the IP address of a node, which
I will soon have a canonical blog post for. Here's the reader's digest
version.

1) Pre-copy sstables from old node to new node. Data files are immutable,
so this is safe as houses to do with Cassandra running.
2) nodetool drain on old node.
3) Stop old node.
4) Copy with equivalent of rsync --delete to re-sync data directories on
old and new. --delete is needed to delete any files on new which have been
compacted away on old.
5) Configure new host to have auto_bootstrap:false in conf file.
6) Start new node.

Be sure that steps 3-6 do not take > max_hint_window_in_ms, or you will
have to repair.

=Rob

Mime
View raw message