]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: change scrub min/max thresholds
authorSage Weil <sage@inktank.com>
Mon, 14 Jan 2013 06:04:58 +0000 (22:04 -0800)
committerSage Weil <sage@inktank.com>
Tue, 15 Jan 2013 02:24:40 +0000 (18:24 -0800)
commit299548024acbf8123a4e488424c06e16365fba5a
tree25ea519b13bda61cd45d693b0bb6abc21c2692ba
parent16d67c798b6f752a6e03084bafe861396b86baae
osd: change scrub min/max thresholds

The previous 'osd scrub min interval' was mostly meaningless and useless.
Meanwhile, the 'osd scrub max interval' would only trigger a scrub if the
load was sufficiently low; if it was high, the PG might *never* scrub.

Instead, make the 'min' what the max used to be.  If it has been more than
this many seconds, and the load is low, scrub.  And add an additional
condition that if it has been more than the max threshold, scrub the PG
no matter what--regardless of the load.

Note that this does not change the default scrub interval for less-loaded
clusters, but it *does* change the meaning of existing config options.

Fixes: #3786
Signed-off-by: Sage Weil <sage@inktank.com>
PendingReleaseNotes
src/common/config_opts.h
src/osd/OSD.cc