scripts/ceph/ceph-recovery.sh

14 lines
482 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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