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 las

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 an

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

2019-02-27 Thread Alexander Dejanovski
anyway) > > > > 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

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. It

Re: Question on changing node IP address

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

Re: Question on changing node IP address

2019-02-27 Thread shalom sagges
rom:* 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 Cassandra. >> If you're using the Goss

Re: Question on changing node IP address

2019-02-27 Thread Alexander Dejanovski
our seed list across the cluster. On Wed, Feb 27, 2019 at 10:52 AM 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-02-27 16:07 >

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 re

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 pr

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, is

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 te

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
19-02-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

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 informati

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 plan

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 procedur

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 bec