Skip to content

feat: add -mirror-mode for async forwarding with empty ACK - #22

Draft
MoeMahhouk wants to merge 1 commit into
moe/bounded-request-timeoutsfrom
moe/mirror-mode
Draft

feat: add -mirror-mode for async forwarding with empty ACK#22
MoeMahhouk wants to merge 1 commit into
moe/bounded-request-timeoutsfrom
moe/mirror-mode

Conversation

@MoeMahhouk

Copy link
Copy Markdown
Member

📝 Summary

New opt-in -mirror-mode flag (env MIRROR_MODE, default off). When set, requests are parsed and filtered exactly as before, forwarded to the builders in a detached goroutine (bounded by -request-timeout), and acknowledged immediately with an empty 200. Responses are still consumed internally for logging and divergence detection. Default behavior is unchanged.

⛱ Motivation and Context

When sync-proxy sits behind an nginx mirror, the caller discards response bodies anyway — waiting on the backend EL only ties up the nginx worker. We use this to drive a TEE-contained EL from an external CL cluster via a mirroring nginx.

📚 References

Stacked on #21


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

When sync-proxy sits behind an nginx mirror the caller discards the
response body, so waiting on the backend EL only ties up the caller.
With -mirror-mode (env MIRROR_MODE) the request is parsed and filtered
as before, forwarded to builders in a detached bounded goroutine, and
acknowledged immediately with an empty 200. Default behavior unchanged.
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.

1 participant