52 lines
713 B
Markdown
52 lines
713 B
Markdown
|
## dump:
|
||
|
./sync_social.sh
|
||
|
|
||
|
|
||
|
## DOCKER instructions
|
||
|
|
||
|
aggiungere a /etc/host l'entry:
|
||
|
|
||
|
127.0.0.1 socialservices
|
||
|
|
||
|
start composer:
|
||
|
`docker compose up --build`
|
||
|
|
||
|
force recreate docker image
|
||
|
|
||
|
`docker compose build --no-cache`
|
||
|
|
||
|
|
||
|
## import db
|
||
|
|
||
|
`./dump.sh`
|
||
|
|
||
|
`docker compose up --build`
|
||
|
|
||
|
|
||
|
open bash on server
|
||
|
|
||
|
* cassandra1: `docker exec -it socialservice /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`
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
## Documentation
|
||
|
|
||
|
* [cassandra dump data](docs/dump.md)
|
||
|
* [cassandra setup and import](docs/setup.md)
|