You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2011/04/11 16:52:06 UTC

[jira] [Created] (CASSANDRA-2447) Remove auto-bootstrap option

Remove auto-bootstrap option
----------------------------

                 Key: CASSANDRA-2447
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2447
             Project: Cassandra
          Issue Type: Improvement
          Components: Core
            Reporter: Jonathan Ellis
            Priority: Minor
             Fix For: 0.8


We already optimize auto-bootstrap to be no-op if there are no non-system tables.

Given that, the only penalty imposed by autobootstrap is a 30s sleep waiting for gossip.  Feels worth it to avoid the confusion this option causes, and the problems if you don't turn it on when it should be.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CASSANDRA-2447) Remove auto-bootstrap option

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-2447.
---------------------------------------

    Resolution: Fixed
      Reviewer: scode
      Assignee: Jonathan Ellis

bq. maybe just make the default true always and remove it form the default configuration

Good idea.  Done in r1156837

> Remove auto-bootstrap option
> ----------------------------
>
>                 Key: CASSANDRA-2447
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2447
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.0
>
>
> We already optimize auto-bootstrap to be no-op if there are no non-system tables.
> Given that, the only penalty imposed by autobootstrap is a 30s sleep waiting for gossip.  Feels worth it to avoid the confusion this option causes, and the problems if you don't turn it on when it should be.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CASSANDRA-2447) Remove auto-bootstrap option

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis reopened CASSANDRA-2447:
---------------------------------------


I forgot that we ammended bootstrap to wait for SLB.BROADCAST_INTERVAL as well as RING_DELAY.  This is silly; it won't matter if we bootstrap based on current load (as propagated by gossip from last "broadcast") or wait another minute for another broadcast.  And if you are bootstrapping before any load has been gossipped? It will pick a random token, but I'm okay with that because (1) you shouldn't be letting autobootstrap pick the token in the first place and (2) the workaround is simple: wait until your cluster has been up 60s before bootstrapping more nodes.
v2 attached that fixes this and also amends tests to not wait the full ring_delay.


> Remove auto-bootstrap option
> ----------------------------
>
>                 Key: CASSANDRA-2447
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2447
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.0
>
>         Attachments: 2447-v2.txt
>
>
> We already optimize auto-bootstrap to be no-op if there are no non-system tables.
> Given that, the only penalty imposed by autobootstrap is a 30s sleep waiting for gossip.  Feels worth it to avoid the confusion this option causes, and the problems if you don't turn it on when it should be.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-2447) Remove auto-bootstrap option

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2447:
--------------------------------------

    Attachment: 2447-v2.txt

> Remove auto-bootstrap option
> ----------------------------
>
>                 Key: CASSANDRA-2447
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2447
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.0
>
>         Attachments: 2447-v2.txt
>
>
> We already optimize auto-bootstrap to be no-op if there are no non-system tables.
> Given that, the only penalty imposed by autobootstrap is a 30s sleep waiting for gossip.  Feels worth it to avoid the confusion this option causes, and the problems if you don't turn it on when it should be.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-2447) Remove auto-bootstrap option

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085311#comment-13085311 ] 

Brandon Williams commented on CASSANDRA-2447:
---------------------------------------------

+1

> Remove auto-bootstrap option
> ----------------------------
>
>                 Key: CASSANDRA-2447
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2447
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.0
>
>         Attachments: 2447-v2.txt
>
>
> We already optimize auto-bootstrap to be no-op if there are no non-system tables.
> Given that, the only penalty imposed by autobootstrap is a 30s sleep waiting for gossip.  Feels worth it to avoid the confusion this option causes, and the problems if you don't turn it on when it should be.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-2447) Remove auto-bootstrap option

Posted by "Peter Schuller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019944#comment-13019944 ] 

Peter Schuller commented on CASSANDRA-2447:
-------------------------------------------

While I think the auto_bootstrap token is probably very confusing to users, and simply not exposing it by default is a good idea, I don't think the ability to join the cluster without bootstrapping should be removed entirely.

An example use case of joining the ring without bootstrap is: You have a multi-DC cluster and need to bootstrap new nodes into a DC, but you want to avoid streaming from other DC:s. Provided you know what you're doing and are willing to accept the consequences in terms of consistency, you can do stuff like copy sstables from local nodes manually and bring the node into the ring and trigger AES. Similarly for adding a completely new DC to an existing cluster.

I have a vague feeling that it's generally useful in various "panicy" types of situations where you want to bypass the normal procedures.

Maybe just make the default true always and remove it form the default configuration; or maybe even rename it and revert it's meaning, to something like force_join_without_bootstrap?


> Remove auto-bootstrap option
> ----------------------------
>
>                 Key: CASSANDRA-2447
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2447
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.0
>
>
> We already optimize auto-bootstrap to be no-op if there are no non-system tables.
> Given that, the only penalty imposed by autobootstrap is a 30s sleep waiting for gossip.  Feels worth it to avoid the confusion this option causes, and the problems if you don't turn it on when it should be.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-2447) Remove auto-bootstrap option

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13083748#comment-13083748 ] 

Hudson commented on CASSANDRA-2447:
-----------------------------------

Integrated in Cassandra #1019 (See [https://builds.apache.org/job/Cassandra/1019/])
    change auto_bootstrap default to true and remove from example config file
patch by jbellis as suggested by Peter Schullerfor CASSANDRA-2447

jbellis : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1156837
Files : 
* /cassandra/trunk/CHANGES.txt
* /cassandra/trunk/conf/cassandra.yaml
* /cassandra/trunk/src/java/org/apache/cassandra/config/Config.java


> Remove auto-bootstrap option
> ----------------------------
>
>                 Key: CASSANDRA-2447
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2447
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Assignee: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.0
>
>
> We already optimize auto-bootstrap to be no-op if there are no non-system tables.
> Given that, the only penalty imposed by autobootstrap is a 30s sleep waiting for gossip.  Feels worth it to avoid the confusion this option causes, and the problems if you don't turn it on when it should be.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CASSANDRA-2447) Remove auto-bootstrap option

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-2447:
--------------------------------------

    Fix Version/s:     (was: 0.8)
                   1.0

> Remove auto-bootstrap option
> ----------------------------
>
>                 Key: CASSANDRA-2447
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2447
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Jonathan Ellis
>            Priority: Minor
>             Fix For: 1.0
>
>
> We already optimize auto-bootstrap to be no-op if there are no non-system tables.
> Given that, the only penalty imposed by autobootstrap is a 30s sleep waiting for gossip.  Feels worth it to avoid the confusion this option causes, and the problems if you don't turn it on when it should be.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira