Add ceph recovery script

This commit is contained in:
Jeremy Gardais 2019-07-22 11:15:31 +02:00
parent 484486a2c2
commit 76f307bd1f
1 changed files with 13 additions and 0 deletions

13
ceph/ceph-recovery.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# Configure Ceph to optimise recovery speed
## Some slowdown might happens to read/write content on OSDs
# Change OSDs configuration to increase recovery
## See the documentation for more informations:
## http://docs.ceph.com/docs/luminous/rados/configuration/osd-config-ref/#operations
sudo ceph tell osd.* injectargs '--osd-max-backfills 4';
sudo ceph tell osd.* injectargs '--osd-recovery-max-active 10';
printf '%b\n' "OSDs args are setted for recovery."
exit 0