]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: add maximum fragment size constraint 9789/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 17 Jun 2016 15:53:32 +0000 (11:53 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 22 Jun 2016 20:41:47 +0000 (16:41 -0400)
commit60af83c80910070d8fb10ac7a4f6f24d49521c1b
tree07f2b16c8c0b45ba310c7b10efbc6782645649a0
parent43042c6435bf3eda0cc212e866f145f68ad2410e
mds: add maximum fragment size constraint

This commit adds a new config option

    mds_bal_fragment_size_max = 10000*10

which is an order of magnitude larger than mds_bal_split_size.

This limit prevents a fragment from getting too large which results in large
omap directories.

Right now the limit is enforced only in the RPC paths and in stray directory
entry creation.

Fixes http://tracker.ceph.com/issues/16164

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/common/config_opts.h
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/Server.cc
src/mds/Server.h