RE: [EXTERNAL] Re: Question on changing node IP address

2019-02-27 Thread Durity, Sean R
. From: Alexander Dejanovski Sent: Wednesday, February 27, 2019 9:22 AM To: user@cassandra.apache.org Subject: Re: [EXTERNAL] Re: Question on changing node IP address It has to be balanced with the dangers related to the PropertyFileSnitch. I've seen such incidents happen twice in the last few

Re: [EXTERNAL] Re: Question on changing node IP address

2019-02-27 Thread Oleksandr Shulgin
On Wed, Feb 27, 2019 at 3:11 PM Durity, Sean R wrote: > We use the PropertyFileSnitch precisely because it is the same on every > node. If each node has to have a different file (for GPFS) – deployment is > more complicated. (And for any automated configuration you would have a > list of hosts

Re: [EXTERNAL] Re: Question on changing node IP address

2019-02-27 Thread Alexander Dejanovski
y) > > > > I do put UNKNOWN as the default DC so that any missed node easily appears > in its own unused DC. > > > > > > Sean Durity > > > > *From:* Alexander Dejanovski > *Sent:* Wednesday, February 27, 2019 4:43 AM > *To:* user@cassandra.apac

RE: [EXTERNAL] Re: Question on changing node IP address

2019-02-27 Thread Durity, Sean R
as the default DC so that any missed node easily appears in its own unused DC. Sean Durity From: Alexander Dejanovski Sent: Wednesday, February 27, 2019 4:43 AM To: user@cassandra.apache.org Subject: [EXTERNAL] Re: Question on changing node IP address This snitch is easy to misconfigure

Re: Question on changing node IP address

2019-02-27 Thread Alexander Dejanovski
>> wxn...@zjqunshuo.com> wrote: >> >>> I'm using SimpleSnitch. I have only one DC. Is there any problem to >>> follow the below procedure? >>> >>> -Simon >>> >>> *From:* Alexander Dejanovski >>> *Date:* 2019

Re: Question on changing node IP address

2019-02-27 Thread shalom sagges
vski >> *Date:* 2019-02-27 16:07 >> *To:* user >> *Subject:* Re: Question on changing node IP address >> >> I confirm what Oleksandr said. >> Just stop Cassandra, change the IP, and restart Cassandra. >> If you're using the GossipingPropertyFileSnitch, the n

Re: Question on changing node IP address

2019-02-27 Thread Alexander Dejanovski
:* Re: Question on changing node IP address > > I confirm what Oleksandr said. > Just stop Cassandra, change the IP, and restart Cassandra. > If you're using the GossipingPropertyFileSnitch, the node will redeclare > its new IP through Gossip and that's it. > If you're using the Prop

Re: Question on changing node IP address

2019-02-27 Thread wxn...@zjqunshuo.com
I'm using SimpleSnitch. I have only one DC. Is there any problem to follow the below procedure? -Simon From: Alexander Dejanovski Date: 2019-02-27 16:07 To: user Subject: Re: Question on changing node IP address I confirm what Oleksandr said. Just stop Cassandra, change the IP, and restart

Re: Question on changing node IP address

2019-02-27 Thread Alexander Dejanovski
This snitch is easy to misconfigure. It allows some nodes to have a different view of the cluster if they are configured differently, which can result in data loss (or at least data that is very hard to recover). Also it has a nasty feature that allows to set a default DC/Rack. If one node isn't

Re: Question on changing node IP address

2019-02-27 Thread shalom sagges
If you're using the PropertyFileSnitch, well... you shouldn't as it's a rather dangerous and tedious snitch to use I inherited Cassandra clusters that use the PropertyFileSnitch. It's been working fine, but you've kinda scared me :-) Why is it dangerous to use? If I decide to change the snitch,

Re: Question on changing node IP address

2019-02-27 Thread Alexander Dejanovski
I confirm what Oleksandr said. Just stop Cassandra, change the IP, and restart Cassandra. If you're using the GossipingPropertyFileSnitch, the node will redeclare its new IP through Gossip and that's it. If you're using the PropertyFileSnitch, well... you shouldn't as it's a rather dangerous and

Re: Question on changing node IP address

2019-02-26 Thread Oleksandr Shulgin
On Wed, Feb 27, 2019 at 4:15 AM wxn...@zjqunshuo.com wrote: > >After restart with the new address the server will notice it and log a > warning, but it will keep token ownership as long as it keeps the old host > id (meaning it must use the same data directory as before restart). > > Based on my

Re: Question on changing node IP address

2019-02-26 Thread wxn...@zjqunshuo.com
-26 18:36 To: User Subject: Re: Question on changing node IP address On Tue, Feb 26, 2019 at 9:39 AM wxn...@zjqunshuo.com wrote: I'm running 2.2.8 with vnodes and I'm planning to change node IP address. My procedure is: Turn down one node, setting auto_bootstrap to false in yaml file, then bri

Re: [EXTERNAL] Re: Question on changing node IP address

2019-02-26 Thread Oleksandr Shulgin
On Tue, Feb 26, 2019 at 3:26 PM Durity, Sean R wrote: > This has not been my experience. Changing IP address is one of the worst > admin tasks for Cassandra. System.peers and other information on each nodes > is stored by ip address. And gossip is really good at sending around the > old

RE: [EXTERNAL] Re: Question on changing node IP address

2019-02-26 Thread Durity, Sean R
Sent: Tuesday, February 26, 2019 5:36 AM To: User Subject: [EXTERNAL] Re: Question on changing node IP address On Tue, Feb 26, 2019 at 9:39 AM wxn...@zjqunshuo.com<mailto:wxn...@zjqunshuo.com> mailto:wxn...@zjqunshuo.com>> wrote: I'm running 2.2.8 with vnodes and I'm planning to ch

Re: Question on changing node IP address

2019-02-26 Thread Oleksandr Shulgin
On Tue, Feb 26, 2019 at 9:39 AM wxn...@zjqunshuo.com wrote: > > I'm running 2.2.8 with vnodes and I'm planning to change node IP address. > My procedure is: > Turn down one node, setting auto_bootstrap to false in yaml file, then > bring it up with -Dcassandra.replace_address. Repeat the

Question on changing node IP address

2019-02-26 Thread wxn...@zjqunshuo.com
Hi All, I'm running 2.2.8 with vnodes and I'm planning to change node IP address. My procedure is: Turn down one node, setting auto_bootstrap to false in yaml file, then bring it up with -Dcassandra.replace_address. Repeat the procedure one by one for the other nodes. I care about streaming