]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: introduce simple sleep during scrub 1986/head
authorSage Weil <sage@inktank.com>
Tue, 17 Jun 2014 17:47:24 +0000 (10:47 -0700)
committerSage Weil <sage@inktank.com>
Tue, 17 Jun 2014 17:47:24 +0000 (10:47 -0700)
commitc4e8451cc5b4ec5ed07e09c08fb13221e31a7ac6
tree26ca2fb35121d186d12f4230937edbf678e4d8c5
parent82c547952dc9e7a3e9fab1264f5fdd903ab6973e
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>
src/common/config_opts.h
src/osd/PG.cc