]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: block requests to cache PGs when they are full
authorSage Weil <sage@inktank.com>
Wed, 12 Feb 2014 00:25:51 +0000 (16:25 -0800)
committerSage Weil <sage@inktank.com>
Sun, 16 Feb 2014 06:09:40 +0000 (22:09 -0800)
commit905df2e729f73c5dcfcee07e3a5cbf48d2820c7a
tree586c64b18463dec572fea765c486d145694f3642
parent85e06f9d05f3bf009a0d08a9a298c721ee2fb4f7
osd/ReplicatedPG: block requests to cache PGs when they are full

If we are full and get a write request to a new object, put the op on a
wait list.  Wake up when the agent frees up some space.

Note that we do not block writes to existing objects.  That would be a
more aggressive strategy, but it is difficult to know up front whether we
will increase the size of the object or not, so we just leave it be.  I
suspect this strategy is "good enough".

Also note that we do not yet prioritize agent attention to PGs that most
need eviction (e.g., those that are full).

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc