Cluster

Operations for a node inside of a cluster

Fully synchronize the worldmatch database of this node.

post

Required Roles: ApiImport Applies missing delta updates to the worldmatch database if this node is on the same databaseVersion as the director. Otherwise it reloads the worldmatch database from postgres.

Authorizations
AuthorizationstringRequired
Responses
chevron-right
200

OK

No content

post
/rest/v5/cluster/database/sync/full

No content

Reset the config version counters for all(global, channel specific and properties) configs of this node(set it to 0).

post

Required Roles: ApiConfig

Authorizations
AuthorizationstringRequired
Responses
chevron-right
200

OK

application/json
stringOptional
post
/rest/v5/cluster/reset/config/version/counters

Prune delta updates.

post

Required Roles: ApiImport Deletes the delta updates table and increments the databaseVersion. After prune every worker has to reload the worldmatch database once to get in sync with the director. In contrast to a full re-import this does not discard any delta updates which are already applied to the intermediate database.

Authorizations
AuthorizationstringRequired
Path parameters
channelstringRequired

The channel

Responses
chevron-right
200

OK

application/json
stringOptional
post
/rest/v5/cluster/{channel}/database/prune

Show the current state of the worldmatch database.

get

Required Roles: ApiImport

Authorizations
AuthorizationstringRequired
Path parameters
channelstringRequired

The channel

Responses
chevron-right
200

OK

application/json

The worldmatch database state.

databaseVersioninteger · int64Optional

The version of the current worldmatch database. If the databaseVersion of a worker is less than the databaseVersion of the director, the worker needs to reload the whole worldmatch database in order to synchronize itself with the director.

deltaErrorCountinteger · int64Optional

The number of errors (rejected delta updates) which occurred while trying to synchronize worker and director. Reloading the worldmatch database resets this counter to zero.

deltaVersioninteger · int64Optional

The number of delta updates applied to the current worldmatch database. If the deltaVersion of a worker is less than the deltaVersion of the directory, but the databaseVersions are equal, applying the missing delta updates to the worker is sufficient to synchronize worker and director.

get
/rest/v5/cluster/{channel}/database/state

Synchronize the worldmatch database of this node.

post

Required Roles: ApiImport Applies missing delta updates to the worldmatch database if this node is on the same databaseVersion as the director. Otherwise a reload of the worldmatch database is necessary to synchronize this node with the director.

Authorizations
AuthorizationstringRequired
Path parameters
channelstringRequired

The channel

Query parameters
verbosebooleanOptionalDefault: false
Responses
chevron-right
200

OK

application/json
successbooleanRequired

If true, the operation succeeded. Otherwise an error occurred which will be described in the error field.

Example: true
post
/rest/v5/cluster/{channel}/database/sync

Show the import state of this node.

get

Required Roles: ApiImport

Authorizations
AuthorizationstringRequired
Path parameters
channelstringRequired

The channel

Responses
chevron-right
200

OK

application/json
get
/rest/v5/cluster/{channel}/import/state

Get the cluster state. Includes database & import & cache state.

get

Required Roles: ApiImport

Authorizations
AuthorizationstringRequired
Path parameters
channelstringRequired

The channel

Responses
chevron-right
200

OK

application/json
cacheFlushinteger · int64Optional

Number of completed cache flushes.

get
/rest/v5/cluster/{channel}/state

Last updated

Was this helpful?