ecluse
Safe HaskellNone
LanguageGHC2021

Ecluse.Mirror

Description

The dedicated mirror-worker role, for a fleet scaled on queue depth apart from the front door. It runs the same runWorker the proxy role embeds, and serves only the health probes, so an orchestrator can judge the pod without the process holding a request surface.

Synopsis

Documentation

runMirror :: ServiceRuntime -> IO () Source #

Run the mirror worker alone. The consume loop and the sync tasks never return, so the probe server's graceful return on shutdown must cancel them.

mirrorServerConfig :: AppConfig -> IO Readiness -> IO Liveness -> ServerConfig Source #

The dedicated worker's health surface: no mount, the shared server.port, and the consume-loop heartbeat behind /livez so a stalled worker fails its own liveness check.