Skip to content
SHC Docs

Diagrams

Mermaid source (.mmd) for every architectural diagram, plus rendered SVGs for the status / health / reconciliation flows where a static image is referenced from prose pages. The numbering reflects reading order, not file-system order.

To re-render SVGs from Mermaid source, use the Mermaid CLI:

Terminal window
npx --yes @mermaid-js/mermaid-cli -i 1-container-status-derivation.mmd -o 1-container-status-derivation.svg

How SHC turns raw Docker signals into SHC-level status and health states. Rendered SVGs are checked in because these are referenced from ../status-states.md.

Leader election is owned by Raft (the rqlite engine); SHC’s leader_hub subsystem polls the Raft leadership status and fans out leader-only callbacks. See core/daemon-manager.md.

Service discovery is handled by Docker overlay DNS aliases (the three-tier network model in modules/network.md) plus Traefik labels auto-injected by compose enrichment. There is no separate service-discovery layer.

Referenced from ../patterns/import-dag.md. When you change the dependency structure of core modules, update the .mmd source here and re-render.