Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Done
-
0.5.0
-
None
-
None
Description
Benchmark:
------------
Simple benchmark which creates 100 and 1000s of keys (empty directory) in OM. This is done in a tight loop and multiple threads from client side to add enough load on CPU. Note that intention is to understand the bottlenecks in OM (intentionally avoiding interactions with SCM & DN).
Observation:
-------------
During write path, Ozone checks OMFileRequest.verifyFilesInPath. This internally calls omMetadataManager.getKeyTable().get(dbKeyName) for every write operation. This turns out to be expensive and chokes the write path.
In most of the cases, directory creation would be fresh entry. In such cases, it would be good to try with RocksDB::keyMayExist.
Attachments
Attachments
Issue Links
- duplicates
-
HDDS-2940 mkdir : create key table entries for intermediate directories in the path
- Resolved
- links to