mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 06:47:41 -05:00
CreateGlobalCluster creates an Aurora global database, empty or with an existing Aurora cluster as its primary, in which case engine, version, database name and encryption come from that cluster and may not be given. CreateDBCluster with GlobalClusterIdentifier joins a cluster: the first becomes the primary, every later one a secondary in a region that holds no member yet, with the primary's credentials and database name and a point-in-time copy of its data through the pg_dumpall mechanism that snapshots and read replicas use. DescribeGlobalClusters answers the real records for RDS, with IsWriter and Readers per member; DocumentDB and Neptune keep the shared empty answer. SwitchoverGlobalCluster and FailoverGlobalCluster promote the named secondary and demote the current primary to a secondary, the topology AWS keeps on switchover and restores after a managed failover. RemoveFromGlobalCluster detaches a member into a standalone cluster and the primary goes last; DeleteGlobalCluster needs an empty, unprotected global cluster; ModifyGlobalCluster renames, protects or upgrades, with members following. DBCluster now carries the writer role: the first instance is the writer, IsClusterWriter reports it instead of true for every member, deleting the writer promotes a remaining member, and FailoverDBCluster moves the role to the named reader or the first one; a cluster without a reader is refused with InvalidDBClusterStateFault. Closes #3778