(Since v2.2.22, Enterprise Edition only). Update the server configuration in High Availability setting.
HA SET [DBSTATUS <server>=<status>] [ROLE <server>=MASTER|REPLICA] [OWNER <cluster>=<server>]
NOTE: the key/value pairs must not contain any space. This is valid
HA SET ROLE europe=REPLICA, this is not:
HA SET ROLE europe = REPLICA
- DBSTATUS Changes the status of the database. This operation must be executed only if recommended by OrientDB Support Team
<status>The new status to set between
[NOT_AVAILABLE, OFFLINE, SYNCHRONIZING, ONLINE, BACKUP].
- ROLE Changes the role of the server between
- OWNER Changes cluster's owner
<cluster>The name of the cluster to change.
<server>Name of the server to become the owner of the cluster. The server name must be already present in the server list for that cluster.
Change the role of the server
europeto be a
HA SET ROLE europe=REPLICA
Set the server
usa0as the owner of cluster "customer":
HA SET OWNER customer=usa0
Set the status of database
crmto OFFLINE for server
HA SET DBSTATUS china=OFFLINE
For more information, see