cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleksandr Shulgin <oleksandr.shul...@zalando.de>
Subject Re: Question on changing node IP address
Date Wed, 27 Feb 2019 07:54:12 GMT
On Wed, Feb 27, 2019 at 4:15 AM wxn002@zjqunshuo.com <wxn002@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 understanding, token range is binded to host id. As long as
> host id doesn't change, everything is ok. Besides data directory, any other
> thing can lead to host id change? And how host id is caculated? For
> example, if I upgrade Cassandra binary to a new version, after restart,
> will host id change?
>

I believe host id is calculated once the new node is initialized and never
changes afterwards, even through major upgrades.  It is stored in system
keyspace in data directory, and is stable across restarts.

--
Alex

Mime
View raw message