op-node: add shadow engine support for fire-and-forget Engine API replication#5
Open
cody-wang-cb wants to merge 3 commits intodevelopfrom
Open
op-node: add shadow engine support for fire-and-forget Engine API replication#5cody-wang-cb wants to merge 3 commits intodevelopfrom
cody-wang-cb wants to merge 3 commits intodevelopfrom
Conversation
…sm/optimism into develop Tag created with op-workbench.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for op-node to replicate Engine API calls (ForkchoiceUpdate, NewPayload, GetPayload) to additional "shadow" EL endpoints in a fire-and-forget manner. This enables running shadow block builders (e.g., reth-based) alongside the primary EL for comparison, testing, or redundancy purposes.
Key features:
Motivation
In an HA sequencer setup with multiple nodes and a shadow block builder, we need:
Configuration
Metrics
Metric: op_node_shadow_engine_calls_total
Description: Total calls by endpoint/method/success
────────────────────────────────────────
Metric: op_node_shadow_engine_call_duration_seconds
Description: Call latency histogram
────────────────────────────────────────
Metric: op_node_shadow_engine_calls_dropped_total
Description: Dropped calls (queue full)
────────────────────────────────────────
Metric: op_node_shadow_engine_queue_depth
Description: Current queue depth
Test plan
🤖 Generated with https://claude.com/claude-code