decrease default tracing permits #7004
Labels
A-rpc
Related to the RPC implementation
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
The default tracing permits:
reth/crates/rpc/rpc/src/debug.rs
Line 695 in 422b8f8
are too high. tracing is mostly cpu bound, so the default should be
max(std::thread::available_parallelism() - x, 2)
where x could be 2-4.This way we don't allow saturating all cores with tracing requests, risking starvation of essential jobs
reth/crates/node-core/src/args/rpc_server_args.rs
Lines 150 to 152 in 422b8f8
reth/crates/rpc/rpc-builder/src/constants.rs
Lines 22 to 23 in 422b8f8
Additional context
No response
The text was updated successfully, but these errors were encountered: