高可用方案包括主从复制、集群方案、故障切换等。
异步复制、半同步复制、组复制。
MySQL Group Replication、PostgreSQL Patroni。
自动故障切换、手动故障切换、回切。