Purpose
This statement is used to perform add, replace, and delete operations on the arbitration service.
This statement can only be executed under 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 deleted. |
| arb_server_port | The RPC port of the arbitration service to be added or deleted. |
| curr_arb_server_ip | The IP address of the current failed arbitration service. |
| curr_arb_server_port | The RPC port of the current failed 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 an arbitration service (
10.xx.xx.3) to the OBServer cluster.obclient> ALTER SYSTEM ADD ARBITRATION SERVICE "10.xx.xx.3:2882";Replace the arbitration service (
10.xx.xx.3) of the OBServer cluster with10.xx.xx.2.obclient> ALTER SYSTEM REPLACE ARBITRATION SERVICE '100.xx.xx.3:2882' WITH '100.xx.xx.2:2882';Delete the arbitration service (
10.xx.xx.2) of the OBServer cluster.obclient> ALTER SYSTEM REMOVE ARBITRATION SERVICE "10.xx.xx.2:2882";
