EVMRPC Config Runbook
This page mirrors evmrpc/config.go and provides recommended values and operational guidance.
Server
http_enabled,http_portws_enabled,ws_portcors_origins,ws_origins
Timeouts
read_timeout,read_header_timeout,write_timeout,idle_timeout
Simulation
simulation_gas_limitsimulation_evm_timeout
Filters & mempool
filter_timeoutchecktx_timeoutmax_tx_pool_txsslowflush_receipt_sync
Method controls & limits
deny_list[]: fail‑fast methodsmax_log_no_block: cap logs if no range specified (open‑ended)max_blocks_for_log: cap range span foreth_getLogsmax_subscriptions_new_head: cap concurrentnewHeads
Tracing & simulation concurrency
max_concurrent_trace_calls: 0 for unlimited; recommended: based on CPU coresmax_concurrent_simulation_callsmax_trace_lookback_blocks: 0 for unlimited; tune for storage/perftrace_timeout
Telemetry
rpc_stats_interval: periodic stats logging
⚠️
Start conservative, raise caps only after measuring saturation and latency.
Recommended defaults (production hint)
max_blocks_for_log: 2,000–5,000max_log_no_block: 10,000max_concurrent_trace_calls: ≤ CPU corestrace_timeout: 10s–30s depending on workload
SRE recipes
- Spikes in
debug_trace*: reducemax_concurrent_trace_calls, increasetrace_timeoutcautiously - Log backfills: enforce windowing via
max_blocks_for_logand educate clients - WS churn: lower
max_subscriptions_new_head, advise fanning‑out per process
Last updated on