diff --git a/ceph/ceph-production.sh b/ceph/ceph-production.sh new file mode 100755 index 0000000..51e99b4 --- /dev/null +++ b/ceph/ceph-production.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# Configure Ceph for production +## eg. define the best parameters for our cluster +## eg. to ensure it's still usable during a recovery,… + +printf '%b\n' "Ensure to unset some unwanted maintenance parameters (noscrub, norebalance,…)." +sudo ceph osd unset noout +sudo ceph osd unset noscrub +sudo ceph osd unset nodeep-scrub +sudo ceph osd unset norebalance + +# Set OSDs configuration for production +## See the documentation for more informations : +## http://docs.ceph.com/docs/luminous/rados/configuration/osd-config-ref/#operations +sudo ceph tell osd.* injectargs '--osd-client-op-priority 63'; +sudo ceph tell osd.* injectargs '--osd-max-backfills 1'; +sudo ceph tell osd.* injectargs '--osd-recovery-max-active 1'; +sudo ceph tell osd.* injectargs '--osd-recovery-op-priority 3'; +sudo ceph tell osd.* injectargs '--osd-recovery-sleep-hdd=0.1'; +printf '%b\n' "OSDs args are setted for production." + +exit 0