This topic describes how to create an arbitration service group. In scenarios where the arbitration service process crashes, OceanBase Database is disconnected from the arbitration service, or the arbitration service host fails, the system replaces the arbitration service endpoint in seconds based on the priority, making the arbitration service highly available.
Before you create an arbitration service group, configure CPU, memory, and disk resources for the arbitration services properly to avoid the situations where a single arbitration service cannot support the entire business load within the arbitration service group under abnormal scenarios.
Applicability
This topic applies only to OceanBase Cloud Platform (OCP) Enterprise Edition. OCP Community Edition does not support this feature.
Prerequisites
Make sure that you have the following permissions:
- Resource permissions: Arbitration service maintenance permission.
- Menu permissions: Permission on the Overview menu of clusters.
Procedure
Log in to the OCP console.
In the left-side navigation pane, click Clusters. On the page that appears, click the Arbitration Service tab.
Click the Service Group tab to view the list of arbitration service groups.
Click Create Service Group in the upper-right corner.
In the Create Service Group panel, configure the basic information of the arbitration service group.
Parameter Description Service Group Name The name of the arbitration service group. It must start with a letter and end with a letter or a digit. It can contain letters, digits, and underscores (_), and must be 2 to 32 characters in length. Arbitration Service Endpoint The endpoint of an arbitration service. You can select an existing arbitration service endpoint, or click Create Arbitration Service at the bottom of the drop-down list to create an arbitration service of the required version. We recommend that you select at least two endpoints. The version of the selected arbitration services must be the same. Replacement Priority The priority of arbitration service replacement. By default, priority level 1 is the highest. When another arbitration service in this group fails, the system replaces it with the arbitration service of priority level 1. If the arbitration service of priority level 1 is unavailable or its resources are insufficient, the system uses the arbitration service of priority level 2 for replacement, and so forth.
By default, the priorities are ordered by the time when the arbitration service endpoints were added. You can adjust the priority of an arbitration service by dragging the header of the endpoint row and reordering it.Replacement Condition upon Exceptions The triggering condition for automatically switching the arbitration service for an OceanBase cluster. Valid values: - Default: Half of the replicas of the tenant (2F1A or 4F1A) cannot connect to the arbitration service. You need to specify the Exception Duration parameter to set the duration, in seconds, after which the system automatically replaces the arbitration service. Default value:
10. Maximum value:3600. The value0indicates that the replacement is immediately triggered once the specified number or percentage of disconnected units is reached. - Number: The number of units in an OceanBase cluster that cannot connect to the arbitration service. By default, when one unit cannot connect to the arbitration service, and the exception duration exceeds 10 seconds, the system triggers arbitration service replacement.
- Percentage: The percentage of units in an OceanBase cluster that cannot connect to the arbitration service. By default, when 50% of units cannot connect to the arbitration service, and the exception duration exceeds 10 seconds, the system triggers arbitration service replacement.
Remarks The additional information about the arbitration service group. This parameter is optional. Automatic Execution Specifies whether to enable automatic execution of arbitration service replacement. - Default: Half of the replicas of the tenant (2F1A or 4F1A) cannot connect to the arbitration service. You need to specify the Exception Duration parameter to set the duration, in seconds, after which the system automatically replaces the arbitration service. Default value:
Click OK.