Alfredo Oliviero 470416125e | ||
---|---|---|
docs | ||
scripts | ||
.env_default | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
cassandra-rackdc.properties | ||
cassandra.yaml | ||
docker-compose.yml | ||
dump.sh |
README.md
dump:
dump requires nodetool in prod, nodetool is in /usr/bin/
in dev environment, cassandra has been installed manually and nodetool is not in the path
- dev should be aliegned to prod
DOCKER instructions
aggiungere a /etc/host l'entry:
127.0.0.1 cassandra
start composer:
docker compose up --build
force recreate docker image
docker compose build --no-cache
check status:
docker exec -it cassandra-1 nodetool status
import db
./dump.sh
docker compose up --build
attendere che tutto sia pronto e i db siano sincronizzati
TODO: definire esattamente come, tendenzialmente con nodetool status , nodetool gossip, etc
eseguire uno dopo l'altro, quando sono terminati
- cassandra1:
docker exec -it cassandra1 /scripts/setup
- cassandra2:
docker exec -it cassandra2 /scripts/setup
- cassandra3:
docker exec -it cassandra3 /scripts/setup
run a single service:
- cassandra1:
docker-compose up cassandra1 --build
- cassandra2:
docker-compose up cassandra2 --build
- ,...
open bash on server
- cassandra1:
docker exec -it cassandra1 /bin/bash
- cassandra2:
docker exec -it cassandra2 /bin/bash
- cassandra3:
docker exec -it cassandra3 /bin/bash
check cassandra status
Check status
nodetool status
Check if the Gossip protocol is enabled
nodetool info | grep -i gossip
Check the status of the Gossip protocol
nodetool gossipinfo
Check the communication between nodes
nodetool ring