]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: add a cache layer over MonitorDBStore 5698/head
authorKefu Chai <kchai@redhat.com>
Mon, 10 Aug 2015 11:25:03 +0000 (04:25 -0700)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Aug 2015 05:58:03 +0000 (13:58 +0800)
commit411769c1461c11611b479bd826c72c56b3ce47c5
tree9d64b0f7ad4f8cd3107947cfda29127adb1f7a12
parentea601efc6c693ba8041509c98756fa8c49b9c13a
mon: add a cache layer over MonitorDBStore

the cache of of leveldb does not perform well under some condition,
so we need a cache in our own stack.

* add an option "mon_osd_cache_size" to control the size of cache size
  of MonitorDBStore.

Fixes: #12638
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 5e99a578050976ca22b549812ac80d494fe7041d)

Conflicts:
src/mon/OSDMonitor.h
minor differences in OSDMonitor ctor
src/common/config_opts.h
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/mon/PaxosService.h