AVAILABLE and NOT AVAILABLE.
Node Commands
All the node commands begin with the prefixMANAGE NODE.
NODE ADD
This command adds one or more nodes to the system. This command is accepted only if the system is inACTIVE or SETUP state.
Synopsis
FORCE
By default, a node will not be added if it already belongs to a different Regatta system. If this option is specified, nodes that belong to another Regatta system will be added. The node will be removed from the other system by force, and the impact on the other system is undefined.
The rest of the parameters should be specified for each node separately.
NAME
Required parameter. This name must be unique among all of the system’s nodes, and will be used to identify the node in queries and other commands.
NETWORK
Required parameter. Contains a list of up to 4 external addresses and 4 internal addresses. Must contain at least one address (either internal or external). For each address, there are 2 required parameters – IP and PORT.
External addresses are IP addresses that are used by applications to access Regatta. Internal addresses are used only within the Regatta cluster for inter-node communication.
DESCRIPTION
Optional parameter. Free text that is added to the node.
RAM_SIZE
Optional parameter. The amount of RAM (in MB) that the Regatta modules in this node may use. If not specified – Regatta may use all the available RAM.
ENV_MACHINE_KIND
Optional parameter. Used to inform Regatta about the node. If specified, the value must be one of the following: “PhysicalServer”, “VirtualMachine”, “DockerContainer”
ENV_MACHINE_ADDITIONAL_INFO
Optional parameter. Used to inform Regatta about the node. Can be any string. Currently not used by Regatta.
Output
The output of the command is tabular with a row for each node included in the command. The following table lists the output columns.
| Name | Type | Description |
|---|---|---|
| NAME | String | The name of the node |
| ID | Number | The identifier Regatta assigned to the node. (N/A if adding the node failed.) |
| STATUS | String | SUCCESS or FAILURE. If FAILURE, the node was not added. |
| ERROR_REASON | String | In case of failure, this column contains a description of the failure reason. |
NODE REMOVE
This command removes a node from the system. This command is accepted only when the system is inACTIVE or SETUP state. A node can be removed only when it contains no modules and no storage devices.
Synopsis
NODE SHOW
This command shows the attributes of nodes. Synopsis- A list of nodes and their basic attributes
- A detailed list of attributes for a specific node
FILTER
Filter the result by some criterion. In the first variant of this command, nodes can be filtered by state. In the second variant, attributes can be filtered by attribute name. Currently the filtering is by exact match, no support for regular expressions. Only one filter can be specified.
DETAILED
Show a more detailed list of attributes for each module. See more details in the Output section below.
Output
For the first variant, the output of the command is a tabular, with each row representing a node. The following table lists the columns of the output. If the DETAILED option is specified, then in addition to those columns, all the attributes listed below in the output of NODE SHOW ATTR command are also included for each node. In this variant, only their current values are shown and not their set values.
| Name | Type | Description |
|---|---|---|
| NAME | String | The name of the node |
| ID | Number | The identifier of the node. Assigned by Regatta. |
| STATE | String | The node state |
| INTERNAL_NET | String | A comma-separated list of internal network addresses in the form of <ip_addr>:<port> |
| EXTERNAL_NET | String | A comma-separated list of external network addresses in the form of <ip_addr>:<port> |
| Name | Type | Description |
|---|---|---|
| NAME | String | The name of the attribute |
| CURRENT_VALUE | String | The current value of the attribute |
| SET_VALUE | String | The set value of the attribute – if different from the current value |
| REASON | String | If the current value differs from the set value, this column contains a reason for the difference. (For example, “Restart required”). |
| Name | Description |
|---|---|
| NAME | The name of the node |
| ID | The identifier of the node. Assigned by Regatta. |
| RAM_SIZE | The RAM size (in MB) that may be used by Regatta |
| SERVICE_PORT | The port number for Regatta support connection |
| EXTERNAL_SERVICE_NET | External network address for Regatta service connection, in the form of <ip_addr>:<port> |
| DESCRIPTION | Informative description of the node |
NODE MODIFY
This command modifies the properties of a node. SynopsisSETUP.
Parameters
NETWORK
The NETWORK clause includes one or more network addresses. It can come with either of the following directives:
ADD– Adds the given network addresses to the list of existing addresses.REMOVE– Remove each given network address from the list of existing addresses. Each removed network address must be an exact match to an existing one.SET– Remove all the existing network addresses and replace them with the given network addresses.
RAM_SIZE
Optional parameter. The amount of RAM (in MB) that the Regatta modules in this node may use. If specified without a value – Regatta may use all the available RAM.
If modules already exist on the node and the specified value is less than what is already being used, the command will result in an error.
DESCRIPTION
Optional parameter. Free text that is added to the module.