cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omri Bahumi <om...@everything.me>
Subject Re: Replacing a dead node by deleting it and auto_bootstrap'ing a new node (Cassandra 2.0)
Date Sat, 06 Dec 2014 08:25:08 GMT
In that case, just don't delete the dead node (what I think you should
do anyways. I'm pretty sure it can't be deleted if you're going to
replace it with "-Dcassandra.replace_address=...").
I was speaking about the case that you _do_ want it replaced. You can
just delete it and bootstrap a new node. I would expect the behaviour
to be the same.

On Sat, Dec 6, 2014 at 1:56 AM, Jaydeep Chovatia
<chovatia.jaydeep@gmail.com> wrote:
> I think Cassandra gives us control as what we want to do:
> a) If we want to replace a dead node then we should specify
> "-Dcassandra.replace_address=old_node_ipaddress"
> b) If we are adding new nodes (no replacement) then do not specify above
> option and tokens would get assigned randomly.
>
> I can think of a scenario in which your dead node has tons of data and you
> are hopeful on its recovery so you do not want to replace this dead node
> always. Momentarily you might just add a new node to meet the the capacity
> until dead not is fully recovered.
>
> -jaydeep
>
> On Thu, Dec 4, 2014 at 11:30 PM, Omri Bahumi <omrib@everything.me> wrote:
>>
>> I guess Cassandra is aware that it has some replicas not meeting the
>> replication factor. Wouldn't it be nice if a bootstrapping node would
>> get those?
>> Could make things much simpler in the Ops view.
>>
>> What do you think?
>>
>> On Fri, Dec 5, 2014 at 8:31 AM, Jaydeep Chovatia
>> <chovatia.jaydeep@gmail.com> wrote:
>> > as per my knowledge if you have externally NOT specified
>> > "-Dcassandra.replace_address=old_node_ipaddress" then new tokens
>> > (randomly)
>> > would get assigned to bootstrapping node instead of tokens of dead node.
>> >
>> > -jaydeep
>> >
>> > On Thu, Dec 4, 2014 at 6:50 AM, Omri Bahumi <omrib@everything.me> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I was wondering, how would auto_bootstrap behave in this scenario:
>> >>
>> >> 1. I had a cluster with 3 nodes (RF=2)
>> >> 2. One node died, I deleted it with "nodetool removenode" (+ force)
>> >> 3. A new node launched with "auto_bootstrap: true"
>> >>
>> >> The question is: will the "right" vnodes go to the new node as if it
>> >> was bootstrapped with "-Dcassandra.replace_address=old_node_ipaddress"
>> >> ?
>> >>
>> >> Thanks,
>> >> Omri.
>> >
>> >
>
>



-- 


Omri Bahumi
System Architect, EverythingMe
 omrib@everything.me  (+972) 52-4655544  @omribahumi

Mime
View raw message