Note
- For V4.3.x, this parameter is available starting with V4.3.4.
- For V4.2.5, this parameter is available starting with V4.2.5 BP1.
- For V4.2.1, this parameter is available starting with V4.2.1 BP8.
Description
arbitration_degradation_policy specifies the auto-degradation strategy.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.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 |
| Value range |
|
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
When the value of this parameter is CLUSTER_POLICY, the log stream leader checks whether it is connected to the RS before executing the arbitration degradation. If it is not connected to the RS, the arbitration degradation is not executed, and the leader resigns, allowing the leader to switch to the replica that is connected to the RS. After resigning, the replica cannot be elected as the leader again and will periodically check its network connectivity with the RS. If it is connected to the RS again, the replica can be elected as the leader.
Examples
Set the auto-degradation strategy of the log stream replica to CLUSTER_POLICY.
obclient> ALTER SYSTEM SET arbitration_degradation_policy = 'CLUSTER_POLICY';