Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

3/19/2020

Reading time:1 min

diegopacheco/dualwrite-cass-docker

by diegopacheco

dualwrite-cass-docer: Docker images that bootup 2 clusters(cass 2x and 3x) at same time.Avaliable commandsDualWrite-Cass-Docker: by Diego Pachecobake : bake the docker image for Cass 2.x and 3.x run : run 2 Cass clusters(cass 2x and cass 3x) stop : shutdown all dockers instances and network status2x : nodetool status in all cass 2x nodes status3x : nodetool status in all cass 3x nodes cql2x : cqlsh in first cass 3x node cql3x : cqlsh in first cass 2x node memory : Show how much memory each cass node is usingssh : SSH/Bash Cass Node. i.e: ssh 3 1 for cass3x node 1 - ssh 2 1 for cass2x node 1count : Count how many records in Cass 2x and 3x schema : create same schema for cass 2x and 3x truncate : truncate table TEST from cass 2x and 3x info : show info about cass 2x and 3x topologyBAKEIn order to use it we need bake 2 docker images - just 1 time../dualwrite-cass-docker.sh bakeRunRun will bootup 2 cass clusters(2x and 3x)./dualwrite-cass-docker.sh run./dualwrite-cass-docker.sh rune62aba9e90ad3049d92f45db82145154e16a1d7ca83d52026174f4630f2efb1ad781cf67d8df2d7a164acb92b3d065496d5ce00b26cb2c6d217415392e762d597ff4ca68ff9bf74954575714914a904309ac06f15ea74e2aef9b3fa02c89ac1aStopWhen you are done just run stop - docker network will be destroyed and 2 cass clusters too../dualwrite-cass-docker.sh stopcassandra3x_1cassandra2x_1myDWCassNetDocker

Illustration Image

dualwrite-cass-docer: Docker images that bootup 2 clusters(cass 2x and 3x) at same time.

Avaliable commands

DualWrite-Cass-Docker: by Diego Pacheco
bake                 : bake the docker image for Cass 2.x and 3.x   
run                  : run 2 Cass clusters(cass 2x and cass 3x)     
stop                 : shutdown all dockers instances and network   
status2x             : nodetool status in all cass 2x nodes         
status3x             : nodetool status in all cass 3x nodes         
cql2x                : cqlsh in first cass 3x node                  
cql3x                : cqlsh in first cass 2x node                  
memory               : Show how much memory each cass node is using
ssh                  : SSH/Bash Cass Node. i.e: ssh 3 1 for cass3x node 1 - ssh 2 1 for cass2x node 1
count                : Count how many records in Cass 2x and 3x     
schema               : create same schema for cass 2x and 3x        
truncate             : truncate table TEST from cass 2x and 3x      
info                 : show info about cass 2x and 3x topology

BAKE

In order to use it we need bake 2 docker images - just 1 time.

./dualwrite-cass-docker.sh bake

Run

Run will bootup 2 cass clusters(2x and 3x)

./dualwrite-cass-docker.sh run
./dualwrite-cass-docker.sh run
e62aba9e90ad3049d92f45db82145154e16a1d7ca83d52026174f4630f2efb1a
d781cf67d8df2d7a164acb92b3d065496d5ce00b26cb2c6d217415392e762d59
7ff4ca68ff9bf74954575714914a904309ac06f15ea74e2aef9b3fa02c89ac1a

Stop

When you are done just run stop - docker network will be destroyed and 2 cass clusters too.

./dualwrite-cass-docker.sh stop
cassandra3x_1
cassandra2x_1
myDWCassNetDocker

Related Articles

python
java
cassandra

Vald

John Doe

2/11/2024

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

cassandra