@@ -758,17 +758,31 @@ gcEntryLogMetadataCacheEnabled=false
758758# How many entries to pre-fill in cache after a read cache miss
759759# dbStorage_readAheadCacheBatchSize=100
760760
761+ #############################################################################
761762## RocksDB specific configurations
763+ #############################################################################
762764## DbLedgerStorage uses RocksDB to store the indexes from
763- ## (ledgerId, entryId) -> (entryLog, offset)
764-
765+ ## (ledgerId, entryId) -> (entryLog, offset). This is called the entry location database.
766+ ## There's also a separate RocksDB database to to store the ledger metadata.
767+ #
768+ # RocksDB configuration can be applied in two ways: by using a configuration file
769+ # or by setting individual properties.
770+ #
771+ # Most individual properties are applied only to the entry location database.
772+ # To fine-tune the ledger metadata database, the configuration file method should be used.
773+ #
774+ # These properties apply to both entry location and ledger metadata databases
775+ #############################################################################
776+ # dbStorage_rocksDB_format_version=5
777+ # dbStorage_rocksDB_checksum_type=kxxHash
778+ #############################################################################
779+ # Entry location RocksDB database specific configurations:
765780# Size of RocksDB block-cache. For best performance, this cache
766781# should be big enough to hold a significant portion of the index
767782# database which can reach ~2GB in some cases
768783# Default is to use 10% / numberOfLedgers of the direct memory size
769784# dbStorage_rocksDB_blockCacheSize=
770-
771- # Other RocksDB specific tunables
785+ # Other RocksDB specific tunables for the entry location database
772786# dbStorage_rocksDB_writeBufferSizeMB=64
773787# dbStorage_rocksDB_sstSizeInMB=64
774788# dbStorage_rocksDB_blockSize=65536
@@ -777,7 +791,12 @@ gcEntryLogMetadataCacheEnabled=false
777791# dbStorage_rocksDB_numFilesInLevel0=4
778792# dbStorage_rocksDB_maxSizeInLevel1MB=256
779793# dbStorage_rocksDB_logPath=
780- # dbStorage_rocksDB_format_version=5
794+ #############################################################################
795+ # Alternative RocksDB configuration by using configuration files.
796+ #############################################################################
797+ # entryLocationRocksdbConf=conf/entry_location_rocksdb.conf
798+ # ledgerMetadataRocksdbConf=conf/ledger_metadata_rocksdb.conf
799+ # defaultRocksdbConf=conf/default_rocksdb.conf
781800
782801#############################################################################
783802## DirectIO entry logger configuration
0 commit comments