Skip to content

Commit cddd476

Browse files
authored
Merge pull request #9695 from EOSIO/docs-dev-mb-update
[docs] update docs to reflect updated code using 128MiB
2 parents 108a64d + d808146 commit cddd476

3 files changed

Lines changed: 23 additions & 14 deletions

File tree

docs/01_nodeos/02_usage/60_how-to-guides/10_how-to-configure-state-storage.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,28 @@ Version 2.1 or above of the EOSIO development environment.
77
# Parameter Definitions
88
Specify which backing store to use with the `chain_plugin` `--backing-store` argument. This argument sets state storage to either `chainbase`, the default, or `rocksdb`.
99

10+
```console
1011
Config Options for eosio::chain_plugin:
1112

1213
--backing-store arg (=chainbase) The storage for state, chainbase or
1314
rocksdb
14-
--rocksdb-threads arg Number of rocksdb threads for flush and
15-
compaction. Defaults to the number of available cores.
16-
--rocksdb-files arg (=-1) Max number of rocksdb files to keep
15+
--persistent-storage-num-threads arg Number of rocksdb threads for flush and
16+
compaction.
17+
--persistent-storage-max-num-files arg (=-1)
18+
Max number of rocksdb files to keep
1719
open. -1 = unlimited.
18-
--rocksdb-write-buffer-size-mb arg (=134217728)
19-
Size of a single rocksdb memtable
20-
20+
--persistent-storage-write-buffer-size-mb arg (=128)
21+
Size of a single rocksdb memtable (in MiB).
22+
--persistent-storage-bytes-per-sync Rocksdb write rate of flushes and compactions.
23+
--persistent-storage-mbytes-snapshot-batch
24+
Rocksdb batch size threshold before writing read in snapshot data to database.
25+
```
26+
2127
# Procedure
2228
To use `rocksdb` for state storage:
2329

2430
```shell
25-
nodeos -e -p eosio --plugin eosio::producer_plugin --plugin eosio::producer_api_plugin --plugin eosio::chain_api_plugin --backing-store=’rocksdb’ --rocksdb-threads=’2’ --rocksdb-files=’2’ --rocksdb-write-buffer-size-mb=’134217728’ --plugin eosio::http_plugin
31+
nodeos -e -p eosio --plugin eosio::producer_plugin --plugin eosio::producer_api_plugin --plugin eosio::chain_api_plugin --backing-store=’rocksdb’ --persistent-storage-num-threads=’2’ --persistent-storage-max-num-files=’2’ --persistent-storage-write-buffer-size-mb=’128’ --plugin eosio::http_plugin
2632
```
2733

2834
To use `chainbase` for state storage:
@@ -37,4 +43,3 @@ or
3743
nodeos -e -p eosio --plugin eosio::producer_plugin --plugin eosio::producer_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::http_plugin
3844
```
3945

40-
# Next Steps

docs/01_nodeos/02_usage/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ This section explains how to use `nodeos`, lists its configuration options, desc
88
* [Configuration](01_nodeos-configuration.md) - CLI vs. `config.ini` options; `nodeos` example.
99
* [Node Setups](02_node-setups/index.md) - Producing vs. non-producing nodes setup.
1010
* [Development Environment](03_development-environment/index.md) - Setting up a development/test environment.
11+
* [How to Configure State Storage](60_how-to-guides/10_how-to-configure-state-storage.md) - How to configure the `nodeos` `backing store`.

docs/01_nodeos/03_plugins/chain_plugin/index.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,16 @@ Config Options for eosio::chain_plugin:
115115
drops below this size (in MiB).
116116
--backing-store arg (=chainbase) The storage for state, chainbase or
117117
rocksdb
118-
--rocksdb-threads arg Number of rocksdb threads for flush and
119-
compaction. Defaults to the number of
120-
available cores.
121-
--rocksdb-files arg (=-1) Max number of rocksdb files to keep
118+
--persistent-storage-num-threads arg Number of rocksdb threads for flush and
119+
compaction.
120+
--persistent-storage-max-num-files arg (=-1)
121+
Max number of rocksdb files to keep
122122
open. -1 = unlimited.
123-
--rocksdb-write-buffer-size-mb arg (=134217728)
124-
Size of a single rocksdb memtable
123+
--persistent-storage-write-buffer-size-mb arg (=128)
124+
Size of a single rocksdb memtable (in MiB).
125+
--persistent-storage-bytes-per-sync Rocksdb write rate of flushes and compactions.
126+
--persistent-storage-mbytes-snapshot-batch
127+
Rocksdb batch size threshold before writing read in snapshot data to database.
125128
--reversible-blocks-db-size-mb arg (=340)
126129
Maximum size (in MiB) of the reversible
127130
blocks database

0 commit comments

Comments
 (0)