[CEPH] Setup a cronjob to run OSD defrags for FileStore
Create a cron and associated script to run monthly OSD defrags. When the script runs it will switch the OSD disk to the CFQ I/O scheduler to ensure that this is a non-blocking operation for ceph. While this cron job will run monthly, it will only execute on OSDs that are HDD based with Filestore. Change-Id: I06a4679e0cbb3e065974d610606d232cde77e0b2
This commit is contained in:
committed by
Chris Wedgwood
parent
cd4ec0b4b2
commit
d966085321
@@ -76,10 +76,25 @@ secrets:
|
||||
keyrings:
|
||||
osd: ceph-bootstrap-osd-keyring
|
||||
admin: ceph-client-admin-keyring
|
||||
|
||||
network:
|
||||
public: 192.168.0.0/16
|
||||
cluster: 192.168.0.0/16
|
||||
|
||||
jobs:
|
||||
ceph_defragosds:
|
||||
# Execute the 1st of each month
|
||||
cron: "0 0 1 * *"
|
||||
history:
|
||||
# Number of successful job to keep
|
||||
successJob: 1
|
||||
# Number of failed job to keep
|
||||
failJob: 1
|
||||
concurrency:
|
||||
# Skip new job if previous job still active
|
||||
execPolicy: Forbid
|
||||
startingDeadlineSecs: 60
|
||||
|
||||
conf:
|
||||
ceph:
|
||||
global:
|
||||
@@ -250,3 +265,4 @@ manifests:
|
||||
daemonset_osd: true
|
||||
job_image_repo_sync: true
|
||||
helm_tests: true
|
||||
cronjob_defragosds: true
|
||||
|
||||
Reference in New Issue
Block a user