Purpose
You can use this statement to add, replace, and remove an arbitration service.
You can execute this statement only as the root user of the sys tenant.
Syntax
alter_system_server_stmt:
ALTER SYSTEM arbitration_action;
arbitration_action:
ADD ARBITRATION SERVICE "arb_server_ip:arb_server_port"
| REPLACE ARBITRATION SERVICE 'curr_arb_server_ip:curr_arb_server_port' WITH 'new_arb_server_ip:new_arb_server_port'
| REMOVE ARBITRATION SERVICE 'arb_server_ip:arb_server_port'
Parameters
| Parameter | Description |
|---|---|
| arb_server_ip | The IP address of the arbitration service to be added or removed. |
| arb_server_port | The RPC port of the arbitration service to be added or removed. |
| curr_arb_server_ip | The IP address of the faulty arbitration service. |
| curr_arb_server_port | The RPC port of the faulty arbitration service. |
| new_arb_server_ip | The IP address of the new arbitration service. |
| new_arb_server_port | The RPC port of the new arbitration service. |
Examples
Add the arbitration service
10.xx.xx.3to the OBServer cluster.obclient> ALTER SYSTEM ADD ARBITRATION SERVICE "10.xx.xx.3:2882";Replace the arbitration service
10.xx.xx.3with10.xx.xx. 2for the OBServer cluster.obclient> ALTER SYSTEM REPLACE ARBITRATION SERVICE '100.xx.xx.3:2882' WITH '100.xx.xx.2:2882';Remove the arbitration service
10.xx.xx.2from the OBServer cluster.obclient> ALTER SYSTEM REMOVE ARBITRATION SERVICE "10.xx.xx.2:2882";