]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: add slop to agent mode selection
authorSage Weil <sage@inktank.com>
Tue, 28 Jan 2014 01:57:53 +0000 (17:57 -0800)
committerSage Weil <sage@inktank.com>
Sun, 16 Feb 2014 06:09:39 +0000 (22:09 -0800)
commitc9daf8e5ea401f5bc2aafd4025991fb4903ffcd4
tree5464b90468e0b534ff9bcc9c6fa122063eb28681
parent3bc31272db218faa3a381836b29f677e15be6746
osd/ReplicatedPG: add slop to agent mode selection

We want to avoid a situation where the agent clicks on and off when the
system hovers around a utilization threshold.  Particularly for trim,
the system can expend a lot of energy doing a minimal amount of work when
the effort level is low.  To avoid this, enable when we are some amount
above the threshold, and do not turn off until we are the same amount below
the target.

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