]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: introduce simple sleep during scrub
authorSage Weil <sage@inktank.com>
Tue, 17 Jun 2014 17:47:24 +0000 (10:47 -0700)
committerSage Weil <sage@redhat.com>
Fri, 20 Jun 2014 17:10:40 +0000 (10:10 -0700)
commitc46fe8e9ec54d4decd1f70256a8ab05c9b183f8a
treed5adf37093862fac1159b0cc493060c92bb154ca
parent3cf01a0e56c5599731e25898c1d9f2d2b3d6a9ba
osd: introduce simple sleep during scrub

This option is similar to osd_snap_trim_sleep: simply inject an optional
sleep in the thread that is doing scrub work.  This is a very kludgey and
coarse knob for limiting the impact of scrub on the cluster, but can help
until we have a more robust and elegant solution.

Only sleep if we are in the NEW_CHUNK state to avoid delaying processing of
an in-progress chunk.  In this state nothing is blocked on anything.
Conveniently, chunky_scrub() requeues itself for each new chunk.

Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit c4e8451cc5b4ec5ed07e09c08fb13221e31a7ac6)
src/common/config_opts.h
src/osd/PG.cc