]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
HashIndex: randomize split threshold by a configurable amount 19906/head
authorJosh Durgin <jdurgin@redhat.com>
Sat, 4 Jun 2016 01:46:15 +0000 (18:46 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 11 Jan 2018 00:37:42 +0000 (16:37 -0800)
commite52ae3664a2914af4208b3adce8b5215e24626ab
treee1e9a393e1c09566c5c7c3368662bbbbd0700575
parent351a689d438c60bb805e9af18fc260922e57bea9
HashIndex: randomize split threshold by a configurable amount

Store a random value up to the filestore_split_rand_factor for each
collection when it is created or apply-layout-settings is run. This
should help distribute the load of splitting directories across a
longer period of time.

Fixes: http://tracker.ceph.com/issues/15835
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 78d0b278a6853a45eda9aa4c78aa0233e07c1299)

Conflicts:
src/os/filestore/IndexManager.cc (g_conf instead of cct)
doc/rados/configuration/filestore-config-ref.rst
src/ceph_osd.cc
src/common/config_opts.h
src/os/filestore/CollectionIndex.h
src/os/filestore/HashIndex.cc
src/os/filestore/HashIndex.h
src/os/filestore/IndexManager.cc