Content Delivery Network ArchitectureΒΆ
Compose π³ΒΆ
flowchart LR
subgraph role [web-svc-cdn]
svc_build["build<br>node:26-slim"]
end
Swarm πΒΆ
flowchart LR
svc_build["build"]
svc_build --> rep_build["replicas: 1"]
svc_build --> plc_build["node.role == manager"]:::pinned
classDef pinned fill:#fef7e0,stroke:#b06000,color:#3d2600;
VolumesΒΆ
flowchart LR
none["web-svc-cdn declares no volume"]
Condition |
Effect |
|---|---|
swarm, |
shared over NFS |
any one of those missing |
node-local |
All four conditions must hold, so pinning a role takes every one of its volumes node-local. Only the roleβs primary entry counts as pinned here: a placement on any other service pins that service alone and leaves the backing of every volume unchanged. The chain is drawn rather than its result, because that coupling is what makes a placement change move data without saying so.
DependenciesΒΆ
flowchart LR
subgraph deps [Dependencies]
dep_svc_net_tor["svc-net-tor π³π"]
dep_web_app_docs["web-app-docs π³π"]
dep_web_app_matomo["web-app-matomo π³π"]
dep_web_app_prometheus["web-app-prometheus π³π"]
end
subgraph role [web-svc-cdn π³ππ»]
svc_dashboard["dashboard"]
svc_cdn["cdn"]
svc_build["build"]
svc_matomo["matomo"]
svc_javascript["javascript"]
svc_design["design β"]
svc_prometheus["prometheus"]
svc_tor["tor"]
svc_docs["docs"]
end
subgraph dependents [Dependents]
dpt_web_app_dashboard["web-app-dashboard π³π"]
dpt_web_svc_design["web-svc-design π»"]
end
dep_svc_net_tor -. "0..1" .-> svc_tor
dep_web_app_docs -. "0..1" .-> svc_docs
dep_web_app_matomo -. "0..1" .-> svc_matomo
dep_web_app_prometheus -. "0..1" .-> svc_prometheus
svc_dashboard -- "1:1" --> dpt_web_app_dashboard
svc_dashboard -- "1:1" --> dpt_web_svc_design
Symbol |
Meaning |
|---|---|
|
fixed relationship |
|
conditional, enabled only in matching deployments |
|
declared but turned off in this role |
π» |
deploys to the host |
π³ |
deploys under compose |
π |
deploys under swarm |
β |
service explicitly turned off |
βοΈ |
Ansible role dependency from |
Every dependency and dependent is listed; the graph is not truncated.