-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ceph#17839 from liewegas/wip-recovery-preemption
osd: allow PG recovery scheduling preemption Reviewed-by: Greg Farnum <[email protected]>
- Loading branch information
Showing
11 changed files
with
271 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
roles: | ||
- - mon.a | ||
- mon.b | ||
- mon.c | ||
- mgr.x | ||
- osd.0 | ||
- osd.1 | ||
- osd.2 | ||
- osd.3 | ||
openstack: | ||
- volumes: # attached to each instance | ||
count: 3 | ||
size: 20 # GB | ||
tasks: | ||
- install: | ||
- ceph: | ||
conf: | ||
osd: | ||
osd recovery sleep: .1 | ||
osd min pg log entries: 100 | ||
osd max pg log entries: 1000 | ||
log-whitelist: | ||
- \(POOL_APP_NOT_ENABLED\) | ||
- \(OSDMAP_FLAGS\) | ||
- \(OSD_ | ||
- \(OBJECT_ | ||
- \(PG_ | ||
- overall HEALTH | ||
- exec: | ||
osd.0: | ||
- ceph osd pool create foo 128 | ||
- ceph osd pool application enable foo foo | ||
- rados -p foo bench 30 write -b 4096 --no-cleanup | ||
- ceph osd out 0 | ||
- sleep 5 | ||
- ceph osd set noup | ||
- ceph.restart: | ||
daemons: [osd.1] | ||
wait-for-up: false | ||
wait-for-healthy: false | ||
- exec: | ||
osd.0: | ||
- rados -p foo bench 3 write -b 4096 --no-cleanup | ||
- ceph osd unset noup | ||
- sleep 10 | ||
- ceph tell osd.* config set osd_recovery_sleep 0 | ||
- ceph tell osd.* config set osd_recovery_max_active 20 | ||
- ceph.healthy: | ||
- exec: | ||
osd.0: | ||
- egrep '(defer backfill|defer recovery)' /var/log/ceph/ceph-osd.*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.