]> 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>
Thu, 14 Aug 2014 00:21:18 +0000 (17:21 -0700)
commitfac5bfafef1eb82f8cf23c369fb5f50502e2e6f3
tree9a89b6c5d24cbb76c33976e7e24869bda2ceead2
parentad82f28122dc41095d5e703279a8a5c494d35913
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