[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cassandra-user
Subject:    Re: Bootstraping a new node
From:       Jeff Jirsa <jjirsa () gmail ! com>
Date:       2017-09-29 14:22:19
Message-ID: F38A7B5A-822A-47C6-9B43-A385409014C7 () gmail ! com
[Download RAW message or body]

Auto bootstrap doesn't impact token assignment, it only impacts streaming - with it \
set to false a new node will instantly join the cluster on startup without streaming \
any data.

-- 
Jeff Jirsa


> On Sep 29, 2017, at 4:53 AM, Jean Carlo <jean.jeancarl48@gmail.com> wrote:
> 
> Thx @Jacob, I was reading that article, I dont understand how we can add a node in \
> the cluster using auto_bootstrap equal to false and not having a maldistribution of \
> tokens. 
> I know that cassandra use random token ranges if it doesn't have tokens associated. \
>  So it doesn't compute the new tokens ranges from the existing ones. 
> 
> it could lead to some tokens being owned by two nodes, am I right ?
> 
> 
> Saludos
> 
> Jean Carlo
> 
> "The best way to predict the future is to invent it" Alan Kay
> 
> > On Fri, Sep 29, 2017 at 1:21 PM, Jacob Shadix <jacobshadix@gmail.com> wrote:
> > Are you building out a new DC?
> > 
> > This is a good article about all things re. bootstrap - \
> > http://thelastpickle.com/blog/2017/05/23/auto-bootstrapping-part1.html 
> > Refer to the auto_bootstrap: false and see if that meets your use case. Pay CLOSE \
> > attention to the caveats. Bootstrapping w/o streaming risks data inconsistencies \
> > for the cluster as you are allowing reads to be performed on a node with token \
> > ranges assigned, but no data. 
> > -- Jacob Shadix 
> > 
> > > On Fri, Sep 29, 2017 at 4:30 AM, Jean Carlo <jean.jeancarl48@gmail.com> wrote:
> > > 
> > > Hello cassandra community
> > > 
> > > When bootstraping a new node, there is a way to say to cassandra from which DC \
> > > make the streaming ? 
> > > Or there is a way to just join the machine to the cluster just calculating the \
> > > new tokens ( I am using vnodes) and not making any streaming to later make  a \
> > > rebuild from keyspace ? 
> > > Best greetings 
> > > 
> > > Jean Carlo
> > > 
> > > "The best way to predict the future is to invent it" Alan Kay
> > 
> 


[Attachment #3 (text/html)]

<html><head><meta http-equiv="content-type" content="text/html; \
charset=utf-8"></head><body dir="auto">Auto bootstrap doesn't impact token \
assignment, it only impacts streaming - with it set to false a new node will \
instantly join the cluster on startup without streaming any data.<div><br><div \
id="AppleMailSignature">--&nbsp;<div>Jeff Jirsa</div><div><br></div></div><div><br>On \
Sep 29, 2017, at 4:53 AM, Jean Carlo &lt;<a \
href="mailto:jean.jeancarl48@gmail.com">jean.jeancarl48@gmail.com</a>&gt; \
wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>Thx @Jacob, I \
was reading that article, I dont understand how we can add a node in the cluster \
using auto_bootstrap equal to false and not having a maldistribution of \
tokens.<br><br></div>I know that cassandra use random token ranges if it doesn't have \
tokens associated. <br>So it doesn't compute the new tokens ranges from the existing \
ones. <br><br>it could lead to some tokens being owned by two nodes, am I right \
?<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div \
style="border-collapse:collapse;font-family:arial,helvetica,sans-serif;font-size:13px"><span \
style="font-family:arial,helvetica,sans-serif;font-size:13px;border-collapse:collapse"><span \
style="border-collapse:separate;font-family:arial;font-size:small"><br></span></span></div><div \
style="border-collapse:collapse"><font size="2" face="arial, helvetica, \
sans-serif">Saludos<br></font></div><div style="border-collapse:collapse"><span \
style="border-collapse:collapse"><span style="border-collapse:separate"><font \
size="2" face="arial, helvetica, sans-serif"><br></font></span></span></div><div \
style="border-collapse:collapse"><span style="border-collapse:collapse"><span \
style="border-collapse:separate"><font size="2" face="arial, helvetica, \
sans-serif">Jean Carlo</font></span></span></div><font size="2" face="arial, \
helvetica, sans-serif"><br>"The best way to predict the future is to invent it" Alan \
Kay</font><br></div></div></div></div> <br><div class="gmail_quote">On Fri, Sep 29, \
2017 at 1:21 PM, Jacob Shadix <span dir="ltr">&lt;<a \
href="mailto:jacobshadix@gmail.com" \
target="_blank">jacobshadix@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Are you building out a new \
DC?</div><div><br></div>This is a good article about all things re. bootstrap \
-&nbsp;<a href="http://thelastpickle.com/blog/2017/05/23/auto-bootstrapping-part1.html" \
target="_blank">http://thelastpickle.com/<wbr>blog/2017/05/23/auto-<wbr>bootstrapping-part1.html</a><div><br></div><div>Refer \
to the auto_bootstrap: false and see if that meets your use case. Pay CLOSE attention \
to the caveats. Bootstrapping w/o streaming risks data inconsistencies for the \
cluster as you are allowing reads to be performed on a node with token ranges \
assigned, but no data.</div><span class="HOEnZb"><font \
color="#888888"><div><br></div></font></span><div class="gmail_extra"><span \
class="HOEnZb"><font color="#888888"><div><div \
class="m_2974890830336255473gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div dir="ltr"><span \
style="font-size:12.8000001907349px">-- Jacob \
Shadix&nbsp;</span><br></div></div></div></div></div></div></font></span><div><div \
class="h5"> <br><div class="gmail_quote">On Fri, Sep 29, 2017 at 4:30 AM, Jean Carlo \
<span dir="ltr">&lt;<a href="mailto:jean.jeancarl48@gmail.com" \
target="_blank">jean.jeancarl48@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><br clear="all"><div><div \
class="m_2974890830336255473m_-2149320871424316539gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div \
style="border-collapse:collapse;font-family:arial,helvetica,sans-serif;font-size:13px"><span \
style="font-family:arial,helvetica,sans-serif;font-size:13px;border-collapse:collapse"><span \
style="border-collapse:separate;font-family:arial;font-size:small">Hello cassandra \
community<br><br></span></span></div><div \
style="border-collapse:collapse;font-family:arial,helvetica,sans-serif;font-size:13px"><span \
style="font-family:arial,helvetica,sans-serif;font-size:13px;border-collapse:collapse"><span \
style="border-collapse:separate;font-family:arial;font-size:small">When bootstraping \
a new node, there is a way to say to cassandra from which DC make the streaming \
?<br><br></span></span></div><div \
style="border-collapse:collapse;font-family:arial,helvetica,sans-serif;font-size:13px"><span \
style="font-family:arial,helvetica,sans-serif;font-size:13px;border-collapse:collapse"><span \
style="border-collapse:separate;font-family:arial;font-size:small">Or there is a way \
to just join the machine to the cluster just calculating the new tokens ( I am using \
vnodes) and not making any streaming to later make&nbsp; a rebuild from keyspace \
?<br></span></span></div><div \
style="border-collapse:collapse;font-family:arial,helvetica,sans-serif;font-size:13px"><span \
style="font-family:arial,helvetica,sans-serif;font-size:13px;border-collapse:collapse"><span \
style="border-collapse:separate;font-family:arial;font-size:small"><br></span></span></div><div \
style="border-collapse:collapse"><font size="2" face="arial, helvetica, \
sans-serif">Best greetings <br></font></div><div \
style="border-collapse:collapse"><span style="border-collapse:collapse"><span \
style="border-collapse:separate"><font size="2" face="arial, helvetica, \
sans-serif"><br></font></span></span></div><div \
style="border-collapse:collapse"><span style="border-collapse:collapse"><span \
style="border-collapse:separate"><font size="2" face="arial, helvetica, \
sans-serif">Jean Carlo</font></span></span></div><font size="2" face="arial, \
helvetica, sans-serif"><br>"The best way to predict the future is to invent it" Alan \
Kay</font><br></div></div></div></div> </div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></blockquote></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic