diff --git a/book/cli/reth/db.md b/book/cli/reth/db.md index 7c72730ae..77137dadb 100644 --- a/book/cli/reth/db.md +++ b/book/cli/reth/db.md @@ -67,6 +67,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/book/cli/reth/db/diff.md b/book/cli/reth/db/diff.md index 6923980fe..3c0bd5641 100644 --- a/book/cli/reth/db/diff.md +++ b/book/cli/reth/db/diff.md @@ -58,6 +58,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + --table The table name to diff. If not specified, all tables are diffed. diff --git a/book/cli/reth/import.md b/book/cli/reth/import.md index 6461e6a3f..382efb8ef 100644 --- a/book/cli/reth/import.md +++ b/book/cli/reth/import.md @@ -58,6 +58,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + The path to a block file for import. diff --git a/book/cli/reth/init.md b/book/cli/reth/init.md index f9fb1de02..fc20da02b 100644 --- a/book/cli/reth/init.md +++ b/book/cli/reth/init.md @@ -55,6 +55,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/book/cli/reth/node.md b/book/cli/reth/node.md index 961f71592..ccbc9cd3f 100644 --- a/book/cli/reth/node.md +++ b/book/cli/reth/node.md @@ -46,9 +46,6 @@ Options: Mutually exclusive with `--instance`. - --trusted-setup-file - Overrides the KZG trusted setup by reading from the supplied file - -h, --help Print help (see a summary with '-h') @@ -98,7 +95,7 @@ Networking: --identity Custom node identity - [default: reth/-/] + [default: reth/-/-gnu] --p2p-secret-key Secret key to use for this node. @@ -130,14 +127,14 @@ Networking: Maximum number of inbound requests. default: 30 --pooled-tx-response-soft-limit - Soft limit for the byte size of a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response on assembling a [`GetPooledTransactions`](reth_eth_wire::GetPooledTransactions) request. Spec'd at 2 MiB. + Soft limit for the byte size of a `PooledTransactions` response on assembling a `GetPooledTransactions` request. Spec'd at 2 MiB. . [default: 2097152] --pooled-tx-pack-soft-limit - Default soft limit for the byte size of a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response on assembling a [`GetPooledTransactions`](reth_eth_wire::PooledTransactions) request. This defaults to less than the [`SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE`], at 2 MiB, used when assembling a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response. Default is 128 KiB + Default soft limit for the byte size of a `PooledTransactions` response on assembling a `GetPooledTransactions` request. This defaults to less than the [`SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE`], at 2 MiB, used when assembling a `PooledTransactions` response. Default is 128 KiB [default: 131072] @@ -238,7 +235,7 @@ RPC: --rpc-max-tracing-requests Maximum number of concurrent tracing requests - [default: 10] + [default: 14] --rpc-max-blocks-per-filter Maximum number of blocks that could be scanned per filter request. (0 = entire chain) @@ -434,6 +431,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + Dev testnet: --dev Start the node in dev mode diff --git a/book/cli/reth/p2p.md b/book/cli/reth/p2p.md index 4c7ecb972..17cd396cf 100644 --- a/book/cli/reth/p2p.md +++ b/book/cli/reth/p2p.md @@ -101,6 +101,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/book/cli/reth/recover/storage-tries.md b/book/cli/reth/recover/storage-tries.md index f3be1b573..32f135916 100644 --- a/book/cli/reth/recover/storage-tries.md +++ b/book/cli/reth/recover/storage-tries.md @@ -55,6 +55,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/book/cli/reth/stage/drop.md b/book/cli/reth/stage/drop.md index 88a019799..2efe9ed78 100644 --- a/book/cli/reth/stage/drop.md +++ b/book/cli/reth/stage/drop.md @@ -55,6 +55,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + Possible values: - headers: The headers stage within the pipeline diff --git a/book/cli/reth/stage/dump.md b/book/cli/reth/stage/dump.md index c70eba2fc..2788cc40a 100644 --- a/book/cli/reth/stage/dump.md +++ b/book/cli/reth/stage/dump.md @@ -62,6 +62,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/book/cli/reth/stage/run.md b/book/cli/reth/stage/run.md index ade508237..f20eb3f68 100644 --- a/book/cli/reth/stage/run.md +++ b/book/cli/reth/stage/run.md @@ -126,7 +126,7 @@ Networking: --identity Custom node identity - [default: reth/-/] + [default: reth/-/-gnu] --p2p-secret-key Secret key to use for this node. @@ -158,14 +158,14 @@ Networking: Maximum number of inbound requests. default: 30 --pooled-tx-response-soft-limit - Soft limit for the byte size of a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response on assembling a [`GetPooledTransactions`](reth_eth_wire::GetPooledTransactions) request. Spec'd at 2 MiB. + Soft limit for the byte size of a `PooledTransactions` response on assembling a `GetPooledTransactions` request. Spec'd at 2 MiB. . [default: 2097152] --pooled-tx-pack-soft-limit - Default soft limit for the byte size of a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response on assembling a [`GetPooledTransactions`](reth_eth_wire::PooledTransactions) request. This defaults to less than the [`SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE`], at 2 MiB, used when assembling a [`PooledTransactions`](reth_eth_wire::PooledTransactions) response. Default is 128 KiB + Default soft limit for the byte size of a `PooledTransactions` response on assembling a `GetPooledTransactions` request. This defaults to less than the [`SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE`], at 2 MiB, used when assembling a `PooledTransactions` response. Default is 128 KiB [default: 131072] @@ -183,6 +183,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + -c, --commit Commits the changes in the database. WARNING: potentially destructive. diff --git a/book/cli/reth/stage/unwind.md b/book/cli/reth/stage/unwind.md index 712b78cf2..8479bca51 100644 --- a/book/cli/reth/stage/unwind.md +++ b/book/cli/reth/stage/unwind.md @@ -60,6 +60,11 @@ Database: - trace: Enables logging for trace debug-level messages - extra: Enables logging for extra debug-level messages + --db.exclusive + Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an NFS volume + + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/crates/node-core/src/args/database_args.rs b/crates/node-core/src/args/database_args.rs index 3c30d28de..1c14c99db 100644 --- a/crates/node-core/src/args/database_args.rs +++ b/crates/node-core/src/args/database_args.rs @@ -12,6 +12,10 @@ pub struct DatabaseArgs { /// Database logging level. Levels higher than "notice" require a debug build. #[arg(long = "db.log-level", value_enum)] pub log_level: Option, + /// Open environment in exclusive/monopolistic mode. Makes it possible to open a database on an + /// NFS volume. + #[arg(long = "db.exclusive")] + pub exclusive: Option, } impl DatabaseArgs { @@ -19,6 +23,7 @@ impl DatabaseArgs { pub fn database_args(&self) -> reth_db::mdbx::DatabaseArguments { reth_db::mdbx::DatabaseArguments::new(default_client_version()) .with_log_level(self.log_level) + .with_exclusive(self.exclusive) } }