Limits of single-host high availability
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Use only the fictional worksheet for this exercise. Before a separately authorized read-only server query, verify the effective endpoint including environment overrides, project or cluster identity, and access scope. Never deploy the fragments, use real credentials or transmit private inspection output.
Fictional fault-domain comparison:A: one host, proxy + 2 app replicas + db + local volumeB: two independent hosts, reviewed routing and failover, replicated data with explicit consistency and recovery policyFault: loss of host AA: all local services unavailableB: service may survive only if failover and data access workExample monthly objective: 99.9% of 30 daysAllowed unavailability = 30 * 24 * 60 * 0.001 = 43.2 minutesProcess restart can reduce interruption after a process exits; replicas can help when routing and independent process capacity are correct. Neither protects from loss of the shared host. Separate failure domains require independent infrastructure, service discovery, load balancing, data consistency, quorum or another appropriate coordination model, and tested failover. A multi-host architecture also introduces failure modes such as split brain and replication lag; it is not automatically HA. Backups and disaster recovery complement redundancy but do not provide continuous service. The numerical 43.2-minute budget is an illustrative time-based availability objective for a 30-day window, not measured availability or a contractual SLA; request-based objectives may use a different denominator. Choose an architecture against business recovery targets, operating cost and tested evidence. The 43.2-minute budget assumes all 43,200 minutes count equally in the 30-day observation window. For request-based availability use eligible requests and agreed success criteria instead. Treat independent hosts as a proposal until routing, state consistency and failover acceptance are demonstrated.
Common mistake
Two replicas do not imply two independent failure domains. Map shared dependencies before promising availability.
Manual practice
Compare the two architectures for loss of one app process, one host and the primary data store. Calculate a 99.95% time-based objective for 30 days and explain what tests are still needed before claiming HA.
Worksheet: lab-fixtures/docker-production-deployment/10-single-host-ha/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Limits of single-host high availability — Knowledge check
Interpret production deployment evidence and make a safe operational decision.
What happens to replicas on one host if that host fails?
What is the 30-day 99.9% time-based unavailability budget?
What establishes multi-host recovery capability?