]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: probabilistic promotion throttling
authorSage Weil <sage@redhat.com>
Mon, 1 Feb 2016 15:50:44 +0000 (10:50 -0500)
committerSage Weil <sage@redhat.com>
Tue, 1 Mar 2016 13:43:46 +0000 (08:43 -0500)
commit46641a9b73ea9709e451d8a78e799352f4b2ba7b
tree52f6e1f445aad19de3fab338ec7524e1a8f717e8
parenta7642825ccfc0bdb34058c85563b804c9ca57b3d
osd: probabilistic promotion throttling

Global tunables osd_tier_promote_max_{objects,bytes}_sec adjust a
probability that any given promotion we might otherwise do will be done
or rejected.  Based on the observed rate of promotion, and the target/max,
we will adjust the probability up for down.

This avoids the complexity of a throttle queue and gets us a reasonably
accurate throttle.  What it doesn't yet do is cope with thundering herds of
promotions.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/osd/OSD.cc
src/osd/OSD.h
src/osd/ReplicatedPG.cc
src/osd/osd_types.h