]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PG, OSD: reject backfills when an OSD is nearly full
authorMike Ryan <mike.ryan@inktank.com>
Fri, 14 Sep 2012 17:31:42 +0000 (10:31 -0700)
committerMike Ryan <mike.ryan@inktank.com>
Wed, 26 Sep 2012 18:57:31 +0000 (11:57 -0700)
commitc689556896290ac57804b788e42c71b72b97330c
tree262baa04f0aff236d0d55e22787bdb49cd7cc598
parenta6b0d55b2ba50a0d0c3348a9fe786a8270938116
PG, OSD: reject backfills when an OSD is nearly full

Reject backfills when an OSD reaches a configurable full ratio. Retry
backfilling periodically in the hopes that the OSD has become less full.

This changeset introduces two configuration options for dealing with
this: osd_refuse_backfill_full_ratio and osd_backfill_retry_interval.

We also introduce two new state transitions in the PG's Active state.

Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
src/common/config_opts.h
src/messages/MBackfillReserve.h
src/mon/PGMonitor.cc
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/osd_types.cc
src/osd/osd_types.h