Re: How to prevent the removed DC comes back automactically?

2014-08-14 Thread Mark Reddy

 How can we prevent a disconnected DC from coming back automatically?


You could use firewall rules to prevent the disconnected DC from contacting
your live DCs when it becomes live again


Mark


On Thu, Aug 14, 2014 at 6:48 AM, Lu, Boying boying...@emc.com wrote:

 Hi, All,



 We are using Cassandra 2.0.7 in a multi DCs environments.  If a connected
 DC is powered off, we use the ‘nodetool removenode’ command to remove it
 from the connected DCs.

 But we found that once the disconnected DC is powered on, it will connect
 to other DCs automatically.



 How can we prevent a disconnected DC from coming back automatically?



 Thanks a lot



 Boying



Re: How to prevent the removed DC comes back automactically?

2014-08-14 Thread Artur Kronenberg

Hey,

not sure if that's what you're looking for but you can use 
auto_bootstrap=false in your yaml file to prevent nodes from 
bootstrapping themselves on startup. This option has been removed and 
the default is true. You can add it to your configuration though. 
There's a bit of documentation here:


http://www.datastax.com/documentation/cassandra/1.2/cassandra/configuration/configCassandra_yaml_r.html

-- artur

On 14/08/14 06:48, Lu, Boying wrote:


Hi, All,

We are using Cassandra 2.0.7 in a multi DCs environments.  If a 
connected DC is powered off, we use the ‘nodetool removenode’ command 
to remove it from the connected DCs.


But we found that once the disconnected DC is powered on, it will 
connect to other DCs automatically.


How can we prevent a disconnected DC from coming back automatically?

Thanks a lot

Boying





RE: How to prevent the removed DC comes back automactically?

2014-08-14 Thread Lu, Boying
Thanks a lot.

But we want to block all the communications to/from the disconnected VDC 
without reboot it.

From: Artur Kronenberg [mailto:artur.kronenb...@openmarket.com]
Sent: 2014年8月14日 17:00
To: user@cassandra.apache.org
Subject: Re: How to prevent the removed DC comes back automactically?

Hey,

not sure if that's what you're looking for but you can use auto_bootstrap=false 
in your yaml file to prevent nodes from bootstrapping themselves on startup. 
This option has been removed and the default is true. You can add it to your 
configuration though. There's a bit of documentation here:

http://www.datastax.com/documentation/cassandra/1.2/cassandra/configuration/configCassandra_yaml_r.html

-- artur

On 14/08/14 06:48, Lu, Boying wrote:
Hi, All,

We are using Cassandra 2.0.7 in a multi DCs environments.  If a connected DC is 
powered off, we use the ‘nodetool removenode’ command to remove it from the 
connected DCs.
But we found that once the disconnected DC is powered on, it will connect to 
other DCs automatically.

How can we prevent a disconnected DC from coming back automatically?

Thanks a lot

Boying



Re: How to prevent the removed DC comes back automactically?

2014-08-14 Thread Robert Coli
On Thu, Aug 14, 2014 at 1:59 AM, Artur Kronenberg 
artur.kronenb...@openmarket.com wrote:

  not sure if that's what you're looking for but you can use
 auto_bootstrap=false in your yaml file to prevent nodes from bootstrapping
 themselves on startup. This option has been removed and the default is
 true. You can add it to your configuration though. There's a bit of
 documentation here:


 http://www.datastax.com/documentation/cassandra/1.2/cassandra/configuration/configCassandra_yaml_r.html


That's not what auto_bootstrap:false is for, the formerly-dead nodes will
contact the currently-live nodes, which is what OP does not want.

Also if those nodes had been removed, they would take over ranges that OP
does not want them to. OP should definitely not use auto_bootstrap:false
here.

https://engineering.eventbrite.com/changing-the-ip-address-of-a-cassandra-node-with-auto_bootstrapfalse/

=Rob