]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: disable agent when stats_invalid (post-split)
authorSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 01:15:04 +0000 (18:15 -0700)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 01:15:04 +0000 (18:15 -0700)
commit9484daf9d8ed2764b6b10fdb6d3906a4b5100818
tree04c934a02ac53c14c007d3552cdfc5d80171264b
parent4aef403dbc2ba3dd572d13c43b5192f04941dc07
osd: disable agent when stats_invalid (post-split)

After a split the pg stats are approximate but not precisely correct.  Any
inaccuracy can be problematic for the agent because it determines the
level of effort and potentially full/blocking behavior based on that.

We could concievably do some estimation here that is "safe" in that we
don't commit to too much effort (or back off later if it isn't paying off)
and never block, but that is error-prone.

Instead, just disable the agent until a scrub makes the stats reliable
again.

We should document that a scrub after split is recommended (in any case)
and especially important on cache tiers, but there are currently *no*
user docs about PG splitting.

Fixes: #7975
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc