Note
This parameter was introduced in OceanBase Database V4.3.4.
Description
The arbitration_degradation_policy parameter specifies the automatic degradation strategy.
Privilege requirements
Query the parameter
The
systenant and all user tenants can execute theSHOW PARAMETERSstatement or query theGV$OB_PARAMETERSview to obtain the value of this parameter.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | String |
| Default value | LS_POLICY |
| Valid values |
|
| Modifiable | Yes. You can execute the ALTER SYSTEM SET statement to modify this parameter. |
| Effective upon OBServer node restart | No. The parameter takes effect immediately after it is set. |
Considerations
If the value of this parameter is set to CLUSTER_POLICY, the log stream leader will check whether it is connected to the RS before it executes arbitration degradation. If it is not connected to the RS, it will not execute arbitration degradation and step down. After stepping down, the replica cannot be elected as the leader. It will periodically check the network connectivity with the RS. If it recovers the network connectivity with the RS, it can be elected as the leader.
Example
Set the arbitration degradation strategy of a log stream to CLUSTER_POLICY.
obclient> ALTER SYSTEM SET arbitration_degradation_policy = 'CLUSTER_POLICY';