Skip to content

Commit

Permalink
LMDB sync options and new config settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiySW committed May 20, 2020
1 parent e4de3e4 commit d52485a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/running-a-node/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,21 @@ With the above configuration, localhost clients should connect to `ws://[::1]:70

---

#### node.lmdb

!!! note ""
Available in Version 21.0+ only

**map_size**: allows the map size to be changed (default value is 128GB). This only affects the ledger database.
**max_databases**: maximum open LMDB databases. Increase default if more than 100 wallets is required. [External management](/integration-guides/key-management/) is recommended when a large amounts of wallets are required.
**sync**: LMDB environment flags. Applies to ledger, not wallet:
* always: Default (MDB_NOSUBDIR | MDB_NOTLS | MDB_NORDAHEAD).
* nosync_safe: Do not flush meta data eagerly. This may cause loss of transactions, but maintains integrity (MDB_NOSUBDIR | MDB_NOTLS | MDB_NORDAHEAD | MDB_NOMETASYNC).
* nosync_unsafe: Let the OS decide when to flush to disk. On filesystems with write ordering, this has the same guarantees as nosync_safe, otherwise corruption may occur on system crash (MDB_NOSUBDIR | MDB_NOTLS | MDB_NORDAHEAD | MDB_NOSYNC).
* nosync_unsafe_large_memory: Use a writeable memory map. Let the OS decide when to flush to disk, and make the request asynchronous. This may give better performance on systems where the database fits entirely in memory, otherwise it may be slower. Note that this option will expand the file size logically to map_size. It may expand the file physically on some file systems. (MDB_NOSUBDIR | MDB_NOTLS | MDB_NORDAHEAD | MDB_NOSYNC | MDB_WRITEMAP | MDB_MAPASYNC).

---

### config-rpc.toml

#### enable_control
Expand Down

0 comments on commit d52485a

Please sign in to comment.