Cassandra cluster (default 2 nodes) implementation with Docker Compose. Before cluster creation the "default_network" should be created:
./create_network.sh
To start cluster use:
./start_cluster.sh
To stop cluster use:
./stop_cluster.sh
To remove cluster use:
./remove_cluster.sh
Note: Remove is possible only if it was already stopped.
To stop and remove cluster use:
./stop_cluster.sh && ./remove_cluster.sh
To scale cluster use the following script with desired number of nodes:
./scale_cluster.sh 4
If no number specified the default "1" node factor will be used. In this case Cassandra cluster with 2 nodes (seed and default node) will be started.