Bug 1500100

Summary: [RHCS 2.y] Change default filestore 'omap' backend to 'rocksdb' from 'leveldb'
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vikhyat Umrao <vumrao>
Component: RADOSAssignee: Josh Durgin <jdurgin>
Status: CLOSED ERRATA QA Contact: Parikshith <pbyregow>
Severity: high Docs Contact: Aron Gunn <agunn>
Priority: high    
Version: 2.3CC: agunn, anharris, ceph-eng-bugs, ceph-qe-bugs, dzafman, gmeno, hnallurv, jdurgin, kchai, kdreyer, mhackett, tserlin, uboppana
Target Milestone: rcKeywords: FutureFeature
Target Release: 2.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.10-10.el7cp Ubuntu: ceph_10.2.10-7redhat1xenial Doc Type: Enhancement
Doc Text:
.`RocksDB` is enabled as an option to replace `levelDB` This update enables an option to use the `RocksDB` back end for the `omap` database as opposed to `levelDB`. `RocksDB` uses the multi-threading mechanism in compaction so that it better handles the situation when the `omap` directories become very large (more than 40 G). `LevelDB` compaction takes a lot of time in such a situation and causes OSD daemons to time out. For details about conversion from `levelDB` to `RocksDB`, see the link:https://access.redhat.com/solutions/3210951[Ceph - Steps to convert OSD omap backend from leveldb to rocksdb] solution on Red Hat Customer Portal.
Story Points: ---
Clone Of: 1462011 Environment:
Last Closed: 2018-02-21 19:44:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1536401    

Comment 8 Ken Dreyer (Red Hat) 2018-01-02 20:42:08 UTC
Josh, ceph-2-rhel-patches branch's src/common/config_opts.h still has OPTION(filestore_omap_backend, OPT_STR, "leveldb").

https://github.com/ceph/ceph/pull/18010/commits has "osd: switch filestore to default to rocksdb", is that all we need for this BZ or is there more?

Comment 9 Josh Durgin 2018-01-04 03:49:14 UTC
(In reply to Ken Dreyer (Red Hat) from comment #8)
> Josh, ceph-2-rhel-patches branch's src/common/config_opts.h still has
> OPTION(filestore_omap_backend, OPT_STR, "leveldb").
> 
> https://github.com/ceph/ceph/pull/18010/commits has "osd: switch filestore
> to default to rocksdb", is that all we need for this BZ or is there more?

That's all that's needed.

Comment 10 Ken Dreyer (Red Hat) 2018-01-09 22:55:29 UTC
Would you please cherry-pick this to ceph-2-rhel-patches with Resolves: rhbz#1500100, in that case?

Comment 11 Josh Durgin 2018-01-11 02:33:50 UTC
pushed to ceph-2-rhel-patches

Comment 24 errata-xmlrpc 2018-02-21 19:44:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0340