Files
personotes/notes/test/sous-dossier/test-2/silverbullet.md

1.5 KiB

title, date, last_modified, tags
title date last_modified tags
Silverbullet 08-11-2025 09-11-2025:01:13
ring

lsls

Server list :

C'est un morceau de code.
ringsh supervisor serverList

Show config

Here you will find the ring password and supapi db password

ringsh-config show

Status :

for RING in $(ringsh supervisor ringList); do echo " #### $RING ####"; ringsh supervisor ringStorage $RING; ringsh supervisor ringStatus $RING; done

% Disks usage :

ringsh supervisor ringStatus DATA | egrep -i '^disk' | awk -F ' ' '{if ($6 + 0 !=0)  print int( $5 * 100 / $6) "%" }` 

for RING in $(ringsh supervisor ringList); do echo " #### $RING ####"; ringsh supervisor ringStatus $RING | egrep -i '^disk' |  awk -F ' ' '{if ($6 + 0 !=0)  print $3, "is", int( $5 * 100 / $6)"% full" }';  done 

Purge Batch / Chuk Deleted :

for NODE in $(ringsh supervisor loadConf META | awk '{print $3}'); do echo "  ### using node $NODE";ringsh -r META -u $NODE node dumpStats flags_01 ; done

for NODE in $(ringsh supervisor loadConf META | awk '{print $3}'); do echo "  ### using node $NODE";ringsh -r DATA -u $NODE node purgeTask fullqueue=1 timetolive=0 absttl=0; done

Increase number of Batch Delete (1000)

for NODE in {1..6}; do  ringsh -u DATA-storage01-n$NODE -r DATA node configSet msgstore_protocol_chord chordpurgemaxbatch 10000; done

Rebuild activity :

salt -G 'roles:ROLE_STORE' cmd.run "grep DELETE /var/log/scality-srebuildd.log-20211001 | cut -c 1-9 | uniq -c"