| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
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
- runMirror :: ServiceRuntime -> IO ()
- mirrorServerConfig :: AppConfig -> IO Readiness -> IO Liveness -> ServerConfig
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.