root@pergamon:~# clush -b -w @cassandra "puppet agent --test"
---------------
cassandra01
---------------
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for cassandra01.internal.softwareheritage.org
Info: Applying configuration version '1678381985'
Notice: /Stage[main]/Profile::Cassandra/File[/opt/cassandra-4.0.8]/ensure: created
Notice: /Stage[main]/Profile::Cassandra/Archive[cassandra]/ensure: download archive from https://dlcdn.apache.org/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz to /opt/apache-cassandra-4.0.8-bin.tar.gz and extracted in /opt/cassandra-4.0.8 with cleanup (corrective)
Notice: /Stage[main]/Profile::Cassandra/File[/opt/cassandra]/target: target changed '/opt/cassandra-4.0.5' to '/opt/cassandra-4.0.8'
Notice: /Stage[main]/Profile::Cassandra/File[/etc/cassandra/jmx_exporter.yml]/content:
Info: Computing checksum on file /etc/cassandra/jmx_exporter.yml
Info: /Stage[main]/Profile::Cassandra/File[/etc/cassandra/jmx_exporter.yml]: Filebucketed /etc/cassandra/jmx_exporter.yml to puppet with sum 877cf6491dfef559ebc434ac5c849a87
Notice: /Stage[main]/Profile::Cassandra/File[/etc/cassandra/jmx_exporter.yml]/content: content changed '{mtime}2023-03-09 16:55:21 +0000' to '{mtime}2023-03-09 17:13:25 +0000'
Notice: Applied catalog in 10.19 seconds
...
---------------
cassandra06
---------------
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for cassandra06.internal.softwareheritage.org
Info: Applying configuration version '1678381985'
Notice: /Stage[main]/Profile::Cassandra/File[/opt/cassandra-4.0.8]/ensure: created
Notice: /Stage[main]/Profile::Cassandra/Archive[cassandra]/ensure: download archive from https://dlcdn.apache.org/cassandra/4.0.8/apache-cassandra-4.0.8-bin.tar.gz to /opt/apache-cassandra-4.0.8-bin.tar.gz and extracted in /opt/cassandra-4.0.8 with cleanup (corrective)
Notice: /Stage[main]/Profile::Cassandra/File[/opt/cassandra]/target: target changed '/opt/cassandra-4.0.5' to '/opt/cassandra-4.0.8'
Notice: /Stage[main]/Profile::Cassandra/File[/etc/cassandra/jmx_exporter.yml]/content:
Info: Computing checksum on file /etc/cassandra/jmx_exporter.yml
Info: /Stage[main]/Profile::Cassandra/File[/etc/cassandra/jmx_exporter.yml]: Filebucketed /etc/cassandra/jmx_exporter.yml to puppet with sum 877cf6491dfef559ebc434ac5c849a87
Notice: /Stage[main]/Profile::Cassandra/File[/etc/cassandra/jmx_exporter.yml]/content: content changed '{mtime}2023-03-09 17:07:22 +0000' to '{mtime}2023-03-09 17:13:23 +0000'
Notice: Applied catalog in 10.15 seconds
clush: cassandra[01-06] (6): exited with exit code 2
- rolling restart of the cluster (in progress)
root@pergamon:/home/vsellier# cdroot@pergamon:~# /home/vsellier/restart-cassandra-cluster.shrestarting cassandra01.internal.softwareheritage.org...Connection to cassandra01.internal.softwareheritage.org closed.Waiting for the node to be down.Node cassandra01.internal.softwareheritage.org was correctly stoppedWaiting for node cassandra01.internal.softwareheritage.org to be up...................................................................................................................................................
root@pergamon:~# /home/vsellier/restart-cassandra-cluster.shrestarting cassandra01.internal.softwareheritage.org...Connection to cassandra01.internal.softwareheritage.org closed.Waiting for the node to be down.Node cassandra01.internal.softwareheritage.org was correctly stoppedWaiting for node cassandra01.internal.softwareheritage.org to be up.........................................................................................................................................................................................Node cassandra01.internal.softwareheritage.org successfully restartedWaiting 60 before restarting next noderestarting cassandra02.internal.softwareheritage.org...Connection to cassandra02.internal.softwareheritage.org closed.Waiting for the node to be down.Node cassandra02.internal.softwareheritage.org was correctly stoppedWaiting for node cassandra02.internal.softwareheritage.org to be up.................................................................................................................................................................. .......................Node cassandra02.internal.softwareheritage.org successfully restartedWaiting 60 before restarting next noderestarting cassandra03.internal.softwareheritage.org...Connection to cassandra03.internal.softwareheritage.org closed.Waiting for the node to be down.Node cassandra03.internal.softwareheritage.org was correctly stoppedWaiting for node cassandra03.internal.softwareheritage.org to be up...............................................................................................................................................................................................Node cassandra03.internal.softwareheritage.org successfully restartedWaiting 60 before restarting next noderestarting cassandra04.internal.softwareheritage.org...Connection to cassandra04.internal.softwareheritage.org closed.Waiting for the node to be down.Node cassandra04.internal.softwareheritage.org was correctly stoppedWaiting for node cassandra04.internal.softwareheritage.org to be up............................................................................................................................................................................................................Node cassandra04.internal.softwareheritage.org successfully restartedWaiting 60 before restarting next noderestarting cassandra05.internal.softwareheritage.org...Connection to cassandra05.internal.softwareheritage.org closed.Waiting for the node to be down.Node cassandra05.internal.softwareheritage.org was correctly stoppedWaiting for node cassandra05.internal.softwareheritage.org to be up.....................................................................................................................................................................................................Node cassandra05.internal.softwareheritage.org successfully restartedWaiting 60 before restarting next noderestarting cassandra06.internal.softwareheritage.org...Connection to cassandra06.internal.softwareheritage.org closed.Waiting for the node to be down.Node cassandra06.internal.softwareheritage.org was correctly stoppedWaiting for node cassandra06.internal.softwareheritage.org to be up.....................................................................................................................................................................................................Node cassandra06.internal.softwareheritage.org successfully restartedWaiting 60 before restarting next nodeDone, cluster completely restarted
There are no errors on the replayers, the content and directory replayers are restarted to recover the lag after their consumer group were removed. the reads look quite fast.
6/ Restart the compactions
The autocompaction was automatically reactivated after the nodes restart because they were not deactivated in the configuration (taking note for later)
7/ delete snapshots
root@pergamon:~# clush -b -w @cassandra "/opt/cassandra/bin/nodetool -u cassandra --password [redacted] clearsnapshot --all"---------------cassandra[01-06] (6)---------------Requested clearing snapshot(s) for [all keyspaces] with [all snapshots]root@pergamon:~# clush -b -w @cassandra "/opt/cassandra/bin/nodetool -u cassandra --password [redacted] listsnapshots"---------------cassandra[01-06] (6)---------------Snapshot Details:There are no snapshots