2017-09-27 21:42:07 +00:00
|
|
|
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:
|
2020-02-07 13:35:27 +00:00
|
|
|
pre-mgr-commands:
|
2021-05-01 02:31:35 +00:00
|
|
|
- sudo ceph config set mgr mgr_pool false --force
|
2017-09-27 21:42:07 +00:00
|
|
|
conf:
|
|
|
|
osd:
|
|
|
|
osd recovery sleep: .1
|
2018-02-27 22:25:21 +00:00
|
|
|
osd min pg log entries: 10
|
2017-09-27 21:42:07 +00:00
|
|
|
osd max pg log entries: 1000
|
2020-01-27 13:40:12 +00:00
|
|
|
osd_target_pg_log_entries_per_osd: 0
|
2018-02-27 22:25:21 +00:00
|
|
|
osd pg log trim min: 10
|
2020-06-17 19:33:57 +00:00
|
|
|
log-ignorelist:
|
2017-09-27 21:42:07 +00:00
|
|
|
- \(POOL_APP_NOT_ENABLED\)
|
|
|
|
- \(OSDMAP_FLAGS\)
|
|
|
|
- \(OSD_
|
|
|
|
- \(OBJECT_
|
|
|
|
- \(PG_
|
2018-04-04 21:23:48 +00:00
|
|
|
- \(SLOW_OPS\)
|
2017-09-27 21:42:07 +00:00
|
|
|
- overall HEALTH
|
2020-02-24 14:29:56 +00:00
|
|
|
- slow request
|
2017-09-27 21:42:07 +00:00
|
|
|
- exec:
|
|
|
|
osd.0:
|
|
|
|
- ceph osd pool create foo 128
|
|
|
|
- ceph osd pool application enable foo foo
|
2018-02-27 22:25:21 +00:00
|
|
|
- sleep 5
|
|
|
|
- ceph.healthy:
|
|
|
|
- exec:
|
|
|
|
osd.0:
|
2017-09-27 21:42:07 +00:00
|
|
|
- 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
|
2017-10-02 12:20:57 +00:00
|
|
|
- for f in 0 1 2 3 ; do sudo ceph daemon osd.$f config set osd_recovery_sleep 0 ; sudo ceph daemon osd.$f config set osd_recovery_max_active 20 ; done
|
2017-09-27 21:42:07 +00:00
|
|
|
- ceph.healthy:
|
|
|
|
- exec:
|
|
|
|
osd.0:
|
|
|
|
- egrep '(defer backfill|defer recovery)' /var/log/ceph/ceph-osd.*.log
|