]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
kv/RocksDBStore: Add CompactOnDeletion support 47221/head
authorMark Nelson <mnelson@redhat.com>
Thu, 21 Jul 2022 21:31:07 +0000 (21:31 +0000)
committerMark Nelson <mnelson@redhat.com>
Fri, 22 Jul 2022 01:24:54 +0000 (01:24 +0000)
commitfba5488728e89d9b0a1c1ab94b7024fcc81b3b15
treee8b190595bcf89cce12fea51439ac6f66ce9d9db
parent6ff8f9a1205237a954428417a51d636f3e24d3fd
kv/RocksDBStore: Add CompactOnDeletion support

This commit adds support to compact column families when a certain number
of tombstone entries have been observed within a certain sliding window
during iteration.  It only helps when itereating over entries already in
SST files and not when iterating over ranges in memtables.

Likely we will still need to provide a mechanism to flush memtables and
compact column families once a certain number of rmkey or rm_range_key
calls are made.

Signed-off-by: Mark Nelson <mnelson@redhat.com>
src/common/options/global.yaml.in
src/kv/RocksDBStore.cc