Page MenuHomeSoftware Heritage
Paste P1164

flush cassandra buffers
ActivePublic

Authored by vsellier on Sep 15 2021, 12:04 PM.
seq 2 8 | parallel -t ssh root@parasilo-{} nodetool flush
seq 2 8 | parallel -t ssh root@parasilo-{} systemctl stop cassandra
seq 2 8 | parallel -t ssh root@parasilo-{} sync
seq 2 8 | xargs -t -n1 -i{} ssh root@parasilo-{} 'echo 3 > /proc/sys/vm/drop_caches'
seq 2 8 | parallel -t ssh root@parasilo-{} systemctl start cassandra