You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Kevin Burton <bu...@spinn3r.com> on 2014/12/18 04:04:38 UTC

bootstrapping manually when auto_bootstrap=false ?

I’m trying to figure out the best way to bootstrap our nodes.

I *think* I want our nodes to be manually bootstrapped.  This way an admin
has to explicitly bring up the node in the cluster and I don’t have to
worry about a script accidentally provisioning new nodes.

The problem is HOW do you do it?

I couldn’t find any reference anywhere in the documentation.

I *think* I run nodetool repair? but it’s unclear..

-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>

Re: bootstrapping manually when auto_bootstrap=false ?

Posted by Jonathan Haddad <jo...@jonhaddad.com>.
I'd consider solving your root problem of "people are starting and stopping
servers in prod accidentally" instead of making Cassandra more difficult to
manage operationally.

On Thu Dec 18 2014 at 4:04:34 AM Ryan Svihla <rs...@datastax.com> wrote:

> why auto_bootstrap=false? The documentation even suggests the opposite. If
> you don't auto_bootstrap the node will take queries before it has copies of
> all the data, and you'll get the wrong answer (it'd not be unlike using CL
> ONE when you've got a bunch of dropped mutations on a single node in the
> cluster).
>
> On Wed, Dec 17, 2014 at 10:45 PM, Ben Bromhead <be...@instaclustr.com>
> wrote:
>>
>>
>>    - In Cassandra yaml set auto_bootstrap = false
>>    - Boot node
>>    - nodetool rebuild
>>
>> Very similar to
>> http://www.datastax.com/documentation/cassandra/2.0/cassandra/operations/ops_add_dc_to_cluster_t.html
>>
>> On 18 December 2014 at 14:04, Kevin Burton <bu...@spinn3r.com> wrote:
>>>
>>> I’m trying to figure out the best way to bootstrap our nodes.
>>>
>>> I *think* I want our nodes to be manually bootstrapped.  This way an
>>> admin has to explicitly bring up the node in the cluster and I don’t have
>>> to worry about a script accidentally provisioning new nodes.
>>>
>>> The problem is HOW do you do it?
>>>
>>> I couldn’t find any reference anywhere in the documentation.
>>>
>>> I *think* I run nodetool repair? but it’s unclear..
>>>
>>> --
>>>
>>> Founder/CEO Spinn3r.com
>>> Location: *San Francisco, CA*
>>> blog: http://burtonator.wordpress.com
>>> … or check out my Google+ profile
>>> <https://plus.google.com/102718274791889610666/posts>
>>> <http://spinn3r.com>
>>>
>>>
>>
>> --
>>
>> Ben Bromhead
>>
>> Instaclustr | www.instaclustr.com | @instaclustr
>> <http://twitter.com/instaclustr> | +61 415 936 359
>>
>
>
> --
>
> [image: datastax_logo.png] <http://www.datastax.com/>
>
> Ryan Svihla
>
> Solution Architect
>
> [image: twitter.png] <https://twitter.com/foundev> [image: linkedin.png]
> <http://www.linkedin.com/pub/ryan-svihla/12/621/727/>
>
> DataStax is the fastest, most scalable distributed database technology,
> delivering Apache Cassandra to the world’s most innovative enterprises.
> Datastax is built to be agile, always-on, and predictably scalable to any
> size. With more than 500 customers in 45 countries, DataStax is the
> database technology and transactional backbone of choice for the worlds
> most innovative companies such as Netflix, Adobe, Intuit, and eBay.
>
>

Re: bootstrapping manually when auto_bootstrap=false ?

Posted by Ryan Svihla <rs...@datastax.com>.
why auto_bootstrap=false? The documentation even suggests the opposite. If
you don't auto_bootstrap the node will take queries before it has copies of
all the data, and you'll get the wrong answer (it'd not be unlike using CL
ONE when you've got a bunch of dropped mutations on a single node in the
cluster).

On Wed, Dec 17, 2014 at 10:45 PM, Ben Bromhead <be...@instaclustr.com> wrote:
>
>
>    - In Cassandra yaml set auto_bootstrap = false
>    - Boot node
>    - nodetool rebuild
>
> Very similar to
> http://www.datastax.com/documentation/cassandra/2.0/cassandra/operations/ops_add_dc_to_cluster_t.html
>
> On 18 December 2014 at 14:04, Kevin Burton <bu...@spinn3r.com> wrote:
>>
>> I’m trying to figure out the best way to bootstrap our nodes.
>>
>> I *think* I want our nodes to be manually bootstrapped.  This way an
>> admin has to explicitly bring up the node in the cluster and I don’t have
>> to worry about a script accidentally provisioning new nodes.
>>
>> The problem is HOW do you do it?
>>
>> I couldn’t find any reference anywhere in the documentation.
>>
>> I *think* I run nodetool repair? but it’s unclear..
>>
>> --
>>
>> Founder/CEO Spinn3r.com
>> Location: *San Francisco, CA*
>> blog: http://burtonator.wordpress.com
>> … or check out my Google+ profile
>> <https://plus.google.com/102718274791889610666/posts>
>> <http://spinn3r.com>
>>
>>
>
> --
>
> Ben Bromhead
>
> Instaclustr | www.instaclustr.com | @instaclustr
> <http://twitter.com/instaclustr> | +61 415 936 359
>


-- 

[image: datastax_logo.png] <http://www.datastax.com/>

Ryan Svihla

Solution Architect

[image: twitter.png] <https://twitter.com/foundev> [image: linkedin.png]
<http://www.linkedin.com/pub/ryan-svihla/12/621/727/>

DataStax is the fastest, most scalable distributed database technology,
delivering Apache Cassandra to the world’s most innovative enterprises.
Datastax is built to be agile, always-on, and predictably scalable to any
size. With more than 500 customers in 45 countries, DataStax is the
database technology and transactional backbone of choice for the worlds
most innovative companies such as Netflix, Adobe, Intuit, and eBay.

Re: bootstrapping manually when auto_bootstrap=false ?

Posted by Ben Bromhead <be...@instaclustr.com>.
   - In Cassandra yaml set auto_bootstrap = false
   - Boot node
   - nodetool rebuild

Very similar to
http://www.datastax.com/documentation/cassandra/2.0/cassandra/operations/ops_add_dc_to_cluster_t.html

On 18 December 2014 at 14:04, Kevin Burton <bu...@spinn3r.com> wrote:
>
> I’m trying to figure out the best way to bootstrap our nodes.
>
> I *think* I want our nodes to be manually bootstrapped.  This way an admin
> has to explicitly bring up the node in the cluster and I don’t have to
> worry about a script accidentally provisioning new nodes.
>
> The problem is HOW do you do it?
>
> I couldn’t find any reference anywhere in the documentation.
>
> I *think* I run nodetool repair? but it’s unclear..
>
> --
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> <https://plus.google.com/102718274791889610666/posts>
> <http://spinn3r.com>
>
>

-- 

Ben Bromhead

Instaclustr | www.instaclustr.com | @instaclustr
<http://twitter.com/instaclustr> | +61 415 936 359

Re: bootstrapping manually when auto_bootstrap=false ?

Posted by Robert Coli <rc...@eventbrite.com>.
On Wed, Dec 17, 2014 at 7:04 PM, Kevin Burton <bu...@spinn3r.com> wrote:
>
> I’m trying to figure out the best way to bootstrap our nodes.
>
> I *think* I want our nodes to be manually bootstrapped.  This way an admin
> has to explicitly bring up the node in the cluster and I don’t have to
> worry about a script accidentally provisioning new nodes.
>

auto_bootstrap is orthogonal to joining or not joining the ring.

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

Explains why. Basically joining a node without bootstrapping just means it
gets a range but doesn't get streamed the data for that range. That's
almost never what you want, unless you're doing the above operation while
replacing a node.

I +1 that the real problem is nodes auto-starting cassandra, ever.

https://issues.apache.org/jira/browse/CASSANDRA-2356

=Rob