This topic describes how to stop a zone. Stopping a zone stops all OBServer nodes in the zone. Proceed with caution.
Prerequisites
The login user has the following permissions:
- The Cluster Maintenance resource permission.
- The Overview menu permission of the cluster.
Your OceanBase cluster is managed in the current OCP cluster.
If not, you can use the current OCP cluster to take over your OceanBase cluster. For more information, see Take over a cluster.
Standalone mode does not support the stop operation.
Make sure that no primary tenant replicas are hosted on the zone to be stopped. If primary tenant replicas are hosted on the zone, make sure that the tenant has other full-featured replicas available. Otherwise, the business will be interrupted if the zone is stopped.
Procedure
Log in to the OCP console.
In the left-side navigation pane, click Cluster. The Clusters page automatically appears.
In the Clusters list on the page, find the target cluster and click its name.
On the Overview page of the cluster, click Actions > More > Stop in the Zones section.
In the dialog box that appears, specify whether to perform a minor compaction before stopping the OBServer nodes (the default option is to perform a minor compaction), and click Stop.
A minor compaction prolongs the response time required to stop the OBServer nodes but significantly shortens the time required to restore the OBServer nodes.
After the task is submitted, you can click View Tasks in the message that appears to view the task progress, or view the task progress on the Task Center page.
When the task status is Complete, and the status of the zone is Stopped in the Zones section of the Overview page, the zone is stopped.
(Optional) If you need to use the zone, click Start in the Zones section to enable the zone.