Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
11 changes: 11 additions & 0 deletions site3/website/docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,17 @@ The table below lists parameters that you can set to configure bookies. All conf
| dbStorage_rocksDB_numFilesInLevel0 | | 10 |
| dbStorage_rocksDB_maxSizeInLevel1MB | | 256 |

> Note:
Comment thread
nicoloboschi marked this conversation as resolved.
> The RocksDB configuration is deprecated in the bk_server.conf since 4.15.0. It will use independent configuration file.
> There have three configuration file `default_rocksdb.conf`, `entry_location_rocksdb.conf` and `ledger_metadata_rocksdb.conf`.
> `default_rocksdb.conf` is used for default,command until or test case.
> `entry_location_rocksdb.conf` is used for location index, lots of writes and much bigger dataset.
> `ledger_metadata_rocksdb.conf` is used for ledgers db, doesn't need particular configuration.
>
> By default, we are still getting rocksDB properties from the `bk_server.conf`. If you want to use the independent
> configuration file for the rocksDB, you can rename the configuration files without the suffix `.default`, then the rocksDB
> used in the storage will load them.


## Metadata Service Settings

Expand Down
6 changes: 6 additions & 0 deletions site3/website/src/pages/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ below.
Code that implements the interfaces will need changes.
See [PR 2901](https://github.com/apache/bookkeeper/pull/2901) for details.

* RocksDB configuration moves to the independent configuration files.
We used to place the RocksDB configuration properties in the `bk_server.conf`. Now it moved to the independent files
`entry_location_rocksdb.conf` and `ledger_metadata_rocksdb.conf`.
The existing configuration in the `bk_server.conf` for the RocksDB will invalidate.
See [PR 3056](https://github.com/apache/bookkeeper/pull/3056) for details.

### Highlights

#### Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ The table below lists parameters that you can set to configure bookies. All conf
| flushInterval | When entryLogPerLedgerEnabled is enabled, checkpoint doesn't happens when a new active entrylog is created / previous one is rolled over. Instead SyncThread checkpoints periodically with 'flushInterval' delay (in milliseconds) in between executions. Checkpoint flushes both ledger entryLogs and ledger index pages to disk. Flushing entrylog and index files will introduce much random disk I/O. If separating journal dir and ledger dirs each on different devices, flushing would not affect performance. But if putting journal dir and ledger dirs on same device, performance degrade significantly on too frequent flushing. You can consider increment flush interval to get better performance, but you need to pay more time on bookie server restart after failure. This config is used only when entryLogPerLedgerEnabled is enabled. | 10000 |
| allowStorageExpansion | Allow the expansion of bookie storage capacity. Newly added ledger and index directories must be empty. | false |

> Note:
> The RocksDB configuration is deprecated in the bk_server.conf since 4.15.0. It will use independent configuration file.
> There have three configuration file `default_rocksdb.conf`, `entry_location_rocksdb.conf` and `ledger_metadata_rocksdb.conf`.
> `default_rocksdb.conf` is used for default,command until or test case.
> `entry_location_rocksdb.conf` is used for location index, lots of writes and much bigger dataset.
> `ledger_metadata_rocksdb.conf` is used for ledgers db, doesn't need particular configuration.

## Entry log settings

Expand Down