Skip to content

de-prioritize besu for trace requests#655

Merged
pk910 merged 3 commits into
masterfrom
pk910/deprio-besu-traces
May 7, 2026
Merged

de-prioritize besu for trace requests#655
pk910 merged 3 commits into
masterfrom
pk910/deprio-besu-traces

Conversation

@pk910
Copy link
Copy Markdown
Member

@pk910 pk910 commented Apr 25, 2026

Summary

De-prioritize Besu clients for trace calls in the execution tx indexer.

Besu clients consume excessive resources when processing trace calls (debug_traceBlockByHash), often causing OOM crashes. This change modifies the client selection logic for trace operations to prefer non-Besu clients while still including Besu as a fallback.

Changes

  • Modified getTraceClients() in indexer/execution/txindexer/loader.go to:
    • Separate clients into non-Besu and Besu lists
    • Prefer the primary client first (since it has the block data loaded), unless it's Besu
    • If the primary client is Besu, use it as the last option
    • Always include the primary client in the candidate list (reserved slot) since it's the only one guaranteed to have the block

Behavior

Primary Client Order
Non-Besu [primary, other-non-besu..., other-besu...]
Besu [non-besu..., other-besu..., primary]

@pk910 pk910 merged commit 6256936 into master May 7, 2026
4 checks passed
@pk910 pk910 deleted the pk910/deprio-besu-traces branch May 7, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants