Skip to content

cassandra: Deploy nodetool functions

Guillaume Samson requested to merge nodetool_functions into production

These modifications will deploy a nodetool alias (this alias contains cassandra credentials) and some nodetool functions on each node of the staging and production cluster.

octocatalog-diff
diff origin/production/cassandra1.internal.staging.swh.network current/cassandra1.internal.staging.swh.network                 
*******************************************                                                                                    
+ File[/root/.cassandra_functions] =>                                                                                          
   parameters =>                            
     "content": "# bold\nBLUEB=\"\\e[1;34m\"\nGREEN=\"\\e[32m\"\nNORM=\"\\e[0m\"\...
     "ensure": "present",
     "group": "root",
     "mode": "0640",
     "owner": "root"
*******************************************
+ File_line[/root/.bashrc] =>
   parameters =>
     "ensure": "present",
     "line": "source /root/.cassandra_functions",
     "path": "/root/.bashrc"
*******************************************
*** End octocatalog-diff on cassandra1.internal.staging.swh.network
alias and functions
root@cassandra1:~# nd version
ReleaseVersion: 4.1.7
root@cassandra1:~# ndst
Datacenter: sesi_rocquencourt_staging
=====================================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address                                  Load      Tokens  Owns (effective)  Host ID                               Rack 
UN  cassandra2.internal.staging.swh.network  2.8 TiB   16      100.0%            76e43f7a-e1fc-405b-b3ef-361bb7e76b72  rack1
UN  cassandra1.internal.staging.swh.network  2.8 TiB   16      100.0%            91e480eb-8f3c-4f8b-b4d4-1b5fe377e3f7  rack1
UN  cassandra3.internal.staging.swh.network  2.81 TiB  16      100.0%            4f4fddc0-b7ce-468d-80dc-58cbfe23d030  rack1
root@cassandra1:~# nd_compactionstats 
cassandra2
pending tasks: 0

cassandra1
pending tasks: 0

cassandra3
pending tasks: 0
root@cassandra1:~# nd_unrepaired swh.directory_entry
cassandra2
                Percent repaired: 99.99
                Bytes repaired: 1900.964GiB
                Bytes unrepaired: 130.493MiB
cassandra1
                Percent repaired: 99.99
                Bytes repaired: 1900.982GiB
                Bytes unrepaired: 136.368MiB
cassandra3
                Percent repaired: 99.99
                Bytes repaired: 1900.972GiB
                Bytes unrepaired: 131.404MiB
root@cassandra1:~# nd_health 
cassandra2
Service status: UN (Up and Normal)
ReleaseVersion: 4.1.7
cassandra1
Service status: UN (Up and Normal)
ReleaseVersion: 4.1.7
cassandra3
Service status: UN (Up and Normal)
ReleaseVersion: 4.1.7

Merge request reports

Loading