[ 
https://issues.apache.org/jira/browse/CASSANDRA-14582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17310206#comment-17310206
 ] 

vincent royer edited comment on CASSANDRA-14582 at 3/28/21, 1:35 PM:
---------------------------------------------------------------------

Hi,

Add an optional system property "*cassandra.host_id"* allowing to configure the 
cassandra host id at the first start instead of getting a random one.

When running cassandra in k8s, each node can have a datacenter index and a rack 
index encoded in the host ID, like XXXX-XXXXXX-000001-000002 for node of 
datacenter 00001 in rack index 02, and a random XXXX-XXXXXX. Replacing a node 
is just simple then, when starting a node with an empty data disk, if a node is 
DEAD in the cluster with the same DC and Rack index in the hostId, start the 
node with the replace.address_on_first_boot set.


was (Author: vroyer59):
Hi,

Add an optional system property "*cassandra.host_id"* allowing to configure the 
cassandra host id at the first start instead of getting a random one.

When running cassandra in k8s, each node can have a datacenter index and a rack 
index encode in the host ID, like XXXX-XXXXXX-000001-000002 for node of 
datacenter 00001 with rack index 02, and a random XXXX-XXXXXX. Replacing a node 
is just simple then, when starting a node with an empty data disk, if a node is 
DEAD in the cluster with the same DC and Rack index in the hostId, start the 
node with the replace.address_on_first_boot set.

> Add a system property to set the cassandra hostId if not yet initialized
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14582
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14582
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Local/Config
>            Reporter: vincent royer
>            Priority: Low
>              Labels: lhf
>
> Add a system property *cassandra.host_id* to set the cassandra hostId if not 
> yet initialized.
> This allow to push the cassandra host ID when provisioning new cassandra 
> nodes rather than to retreive it after the first start.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to