Skip to content

kv: make delete range optional on number of keys - #27317

Merged
liewegas merged 1 commit into
ceph:masterfrom
Aran85:wip-delete-range
Apr 5, 2019
Merged

liewegas merged 1 commit into
ceph:masterfrom
Aran85:wip-delete-range

Conversation

@Aran85

@Aran85 Aran85 commented Apr 2, 2019

Copy link
Copy Markdown
Contributor

Actually, we may only wanna let the objects with real big number of omap to
use delete range. if not, we find too many tombstones will have side-effects
on performance of kv.

refer: https://github.com/facebook/rocksdb/wiki/DeleteRange-Implementation

Signed-off-by: Zengran Zhang [email protected]

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

@cbodley

cbodley commented Apr 2, 2019

Copy link
Copy Markdown
Contributor

very cool! i was having trouble making progress on #15183 because it has to list the keys first in order to limit the number of entries removed at a time

Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/kv/RocksDBStore.h Resolved
@Aran85
Aran85 force-pushed the wip-delete-range branch 2 times, most recently from 926128f to 4828e36 Compare April 3, 2019 06:49
Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/common/legacy_config_opts.h Resolved
Comment thread src/common/options.cc Resolved
@Aran85
Aran85 force-pushed the wip-delete-range branch from 4828e36 to b930bd4 Compare April 3, 2019 07:38
@Aran85

Aran85 commented Apr 3, 2019

Copy link
Copy Markdown
Contributor Author

@tchaikov Thanks for your patience, attention will be paid in future..

Comment thread src/kv/RocksDBStore.cc Resolved
Comment thread src/kv/RocksDBStore.h Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think this would compile. for accessing the new-style options, you need to put

max_items_rmrange(cct->_conf->get_val<uint64_t>("rocksdb_max_items_rmrange"))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks again, updated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, should be

_conf.get_val<uint64_t>(...).

@Aran85
Aran85 force-pushed the wip-delete-range branch from b930bd4 to a18a7a5 Compare April 3, 2019 08:04
Actually, we may only wanna let the objects with real big number of omap to
use delete range. if not, we find too many tombstones will have side-effects
on performance of kv.

refer: https://github.com/facebook/rocksdb/wiki/DeleteRange-Implementation

Signed-off-by: Zengran Zhang <[email protected]>
@Aran85
Aran85 force-pushed the wip-delete-range branch from a18a7a5 to b039e63 Compare April 3, 2019 08:48
@Aran85

Aran85 commented Apr 3, 2019

Copy link
Copy Markdown
Contributor Author

retest this please

@Aran85

Aran85 commented Apr 3, 2019

Copy link
Copy Markdown
Contributor Author

@tchaikov thanks so much!

@cbodley

cbodley commented Apr 4, 2019

Copy link
Copy Markdown
Contributor

this came up in @markhpc's performance call today. we've had rocksdb_enable_rmrange off by default because of performance concerns, but the benchmarks in https://rocksdb.org/blog/2018/11/21/delete-range.html appear to show that those were resolved upstream

i'd propose turning rocksdb_enable_rmrange on by default once those improvements land in ceph; does anyone know which rocksdb version has them?

@liewegas
liewegas merged commit b039e63 into ceph:master Apr 5, 2019
liewegas added a commit that referenced this pull request Apr 5, 2019
* refs/pull/27317/head:
	kv: make delete range optional on number of keys

Reviewed-by: Kefu Chai <[email protected]>
@Aran85
Aran85 deleted the wip-delete-range branch April 5, 2019 15:39
@Aran85

Aran85 commented Apr 13, 2019

Copy link
Copy Markdown
Contributor Author

@cbodley i postd a email to devel list about omap list performance, can you give some thought? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants