Are there any precautions that should be taken when the Docker Cassandra container changes IP?

I often notice that the IP address of the container changes at runtime, so I was wondering if these events have any consequences, especially when it comes to Cassandra containers in the cluster.

Are there any precautions to consider docker?

For example, is it possible for a node container cluster to be considered dead node due to a change in the IP container? Without Docker, we can decide to replace the dead node with the -Dcassandra.replace_address parameter to indicate that old_ip is now new_ip, do I need to do the same with Docker ?

thank you for your time

+7
docker cassandra
source share
1 answer

If you run Cassandra in a container, then with sufficient port mappings, you should be fine for that single container. However, other Cassandra nodes must be aware of an IP container change in the container.

For this, CASSANDRA_BROADCAST_ADDRESS intended. It indicates which IP address to advertise to other sites. You can specify this as an environment variable when starting your container.

+2
source share

All Articles