From 76f307bd1f7ad3d41b9293bd712a8b8ca0ee58e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 22 Jul 2019 11:15:31 +0200 Subject: [PATCH] Add ceph recovery script --- ceph/ceph-recovery.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 ceph/ceph-recovery.sh diff --git a/ceph/ceph-recovery.sh b/ceph/ceph-recovery.sh new file mode 100755 index 0000000..bd928dd --- /dev/null +++ b/ceph/ceph-recovery.sh @@ -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