Skip to content

Commit

Permalink
docs: clarify max rpc tracing requests (#11796)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
  • Loading branch information
mattsse and Rjected authored Oct 16, 2024
1 parent 281307f commit 6b2ec42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/cli/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ fn preprocess_help(s: &str) -> Cow<'_, str> {
(r"default: reth/.*/\w+", "default: reth/<VERSION>/<OS>"),
// Remove rpc.max-tracing-requests default value
(
r"(rpc.max-tracing-requests <COUNT>\n.*\n.*\n.*)\[default: \d+\]",
r"(rpc.max-tracing-requests <COUNT>\n.*\n.*\n.*\n.*\n.*)\[default: \d+\]",
r"$1[default: <NUM CPU CORES-2>]",
),
];
Expand Down
4 changes: 3 additions & 1 deletion book/cli/reth/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ RPC:
[default: 500]
--rpc.max-tracing-requests <COUNT>
Maximum number of concurrent tracing requests
Maximum number of concurrent tracing requests.
By default this chooses a sensible value based on the number of available cores. Tracing requests are generally CPU bound. Choosing a value that is higher than the available CPU cores can have a negative impact on the performance of the node and affect the node's ability to maintain sync.
[default: <NUM CPU CORES-2>]
Expand Down
5 changes: 5 additions & 0 deletions crates/node/core/src/args/rpc_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ pub struct RpcServerArgs {
pub rpc_max_connections: MaxU32,

/// Maximum number of concurrent tracing requests.
///
/// By default this chooses a sensible value based on the number of available cores.
/// Tracing requests are generally CPU bound.
/// Choosing a value that is higher than the available CPU cores can have a negative impact on
/// the performance of the node and affect the node's ability to maintain sync.
#[arg(long = "rpc.max-tracing-requests", alias = "rpc-max-tracing-requests", value_name = "COUNT", default_value_t = constants::default_max_tracing_requests())]
pub rpc_max_tracing_requests: usize,

Expand Down

0 comments on commit 6b2ec42

Please sign in to comment.