Charmed MySQL
- Canonical
- Cloud
Channel | Revision | Published | Runs on |
---|---|---|---|
8.0/stable | 313 | 03 Dec 2024 | |
8.0/stable | 312 | 03 Dec 2024 | |
8.0/candidate | 313 | 02 Dec 2024 | |
8.0/candidate | 312 | 02 Dec 2024 | |
8.0/beta | 313 | 02 Dec 2024 | |
8.0/beta | 312 | 02 Dec 2024 | |
8.0/edge | 325 | 19 Dec 2024 | |
8.0/edge | 324 | 19 Dec 2024 |
juju deploy mysql --channel 8.0/stable
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
Platform:
22.04
Switchover / Failover of Async replication
Pre-requisits
Make sure both Rome
and Lisbon
Clusters are deployed using the Async Deployment manual!
Switchover (safe)
Assuming Rome
is currently Primary
and you want to promote Lisbon
to be new primary
(Rome
will be converted to StandBy
member):
juju run -m lisbon db2/leader promote-to-primary
Failover (forced)
Warning: this is a dangerous operation which can cause the split-brain situation. It should be executed if Primary cluster is no longer exist (lost) ONLY! Otherwise please use safe switchover procedure above!
Assuming Rome
was a Primary
(before we lost the cluster Rome
) and you want to promote Lisbon
to be the new primary:
juju run -m lisbon db2/leader promote-to-primary force=True
Warning: The
force
will cause the old primary to be invalidated.