From 484486a2c26b207c00a3c32868040042b9381f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 19 Jul 2019 14:51:31 +0200 Subject: [PATCH] Add ceph production script --- ceph/ceph-production.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 ceph/ceph-production.sh 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