Høj tilgængelighed (HA) betyder at holde databasen tilgængelig selv når fejl opstår — gennem replikering (standby-replicas), automatisk failover (promovering af en replica når primærdatabasen fejler), og korrekt arkitektur. Målet: minimere nedetid og datatab, da databasefejl bringer hele applikationen ned.
Fundamentet: replikering + automatisk failover
Primary ──(streaming replication)──▶ Standby replica(s)
If the PRIMARY fails:
→ a STANDBY is automatically PROMOTED to become the new primary (FAILOVER)
→ the application reconnects to the new primary → minimal downtime
→ Without HA, a primary failure = total database outage = application down.
