The roles of OceanBase Database clusters include the PRIMARYcluster and the PHYSICAL STANDBY clusters. You can perform the switchover and failover operations to dynamically change cluster roles.
Switchover
You can switch roles between the primary cluster and one of the standby clusters to protect data.
Failover
If the primary cluster is unavailable, you can perform the failover operation to upgrade a standby cluster to the primary cluster. OceanBase Database V2.2.50 only supports lossless failover. It can change the highly consistent standby cluster in the maximum protection mode into the primary cluster to prevent data loss. In future versions, OceanBase will support the failover operation on standby clusters in maximum performance mode.
You can switch cluster roles manually by using SQL statements or in the OCP.