Health checks detect failure, traffic shifts to the standby, the standby becomes primary, and failback is a separate, planned operation.
graph LR
P[Primary active] --> H{Health check}
H -->|OK| P
H -->|Fail| F[Failover triggered]
F --> S[Standby promoted]
S --> A[Active on standby]
A -->|Primary recovered| FB[Failback plan]
FB --> P
style P fill:#E8F5E9
style S fill:#FFF3E0
style F fill:#FFEBEE