]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: warn when pool nears target max objects/bytes 1343/head
authorSage Weil <sage@inktank.com>
Wed, 5 Mar 2014 18:58:37 +0000 (10:58 -0800)
committerSage Weil <sage@inktank.com>
Wed, 5 Mar 2014 19:59:07 +0000 (11:59 -0800)
commit0592368070835d02d5ebeb73d31161edfd208d74
tree21b49928ca6725de04034a86dedb388e983fa488
parent8106adee4b07d586fcbb562c5dde0bac40479cce
mon: warn when pool nears target max objects/bytes

The cache pools will throttle when they reach the target max size, so it
is important to make the administrator aware when they approach that point.
Unfortunately it is not particularly easy to efficiently keep track of
which PGs have hit their limit and use that for reporting.  However, it
is easy to raise a flag when we start to approach the target for the
entire pool, and that sort of early warning is arguably more useful
anyway.

Trigger the warning based on the target full ratio.  Not when we hit the
target, but when we are 2/3 between it and completely full.

Implements: #7442
Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/cephtool/test.sh
src/common/config_opts.h
src/mon/PGMap.h
src/mon/PGMonitor.cc