JeraSoft Documentation Portal
Docs for all releases
...
Command | Description |
---|---|
start | Start System Service Takes "--wait" option in order to wait and exit only when service finishes its execution. |
stop | Stop System Service |
restart | Stop and then start System Service |
reload | Send reload (HUP) signal to the System Service (forces reload of settings, connections, etc) |
status | Show current status of the System Service |
all-start | Start all required System Services (list of services varies depending on the role of the current node in the cluster) |
all-stop | Stop all running System Services |
all-status | Show status of all System Services on the current node |
Code Block | ||||
---|---|---|---|---|
| ||||
<APP_PATH>/bin/system/service restart bbradiusd |
...
The tool is used to manage nodes in the cluster deployment. It allows to initialize the cluster, add a new node, promote redundancy to master, etc.
...
The tool requires root permissions. The list of arguments and other requirements depend on the command used. Please refer to the below table for a summary and respective sections for details.
Command | Description | Nodes | Root Required |
---|---|---|---|
status | Show status of the cluster | Any node | No |
init-master | Init Master Node configuration | Master | Yes |
init-slave | Init Slave Node configuration | Master | Yes |
promote | Promote current node to Master | Redundancy | Yes |
sync-files | Sync files from Master | Redundancy, Reporting, Processing | No |
remove-node | Remove Node from the Cluster | Master | Yes |
The command shows Cluster Status, including all nodes with their roles, IP addresses, current lag to Master, and overall status.
Code Block | ||
---|---|---|
| ||
<APP_PATH>/bin/system/cluster status |
The command can be executed on the Master in order to get the most detailed information about the cluster:
Alternatively, the command can be executed at any other node - in this case, only the status of the connection between this particular node and the Master will be shown.
If any node failed and has been disconnected from the cluster it will be shown like this:
In this case, you have to re-check failed node, fix it and then return to the cluster using the "init-slave" command.
The command is used for the initial configuration of the Master Node.
...
Command has to be executed on the Master node and requires root permissions. Following The following options are supported:
Option | Description | Default |
---|---|---|
<IP-ADDRESS> | IP Address of the Master server (required) |
|
--ssh-port=<port> | SSH Port as the master node | 22 |
--pg-data=<path> | Path to PostgreSQL data directory | autodetect |
...
The command is used to add a node to the cluster. There are different contexts when it is required:
Code Block | ||
---|---|---|
| ||
<APP_PATH>/bin/system/cluster init-slave <IP-ADDRESS> [<options>] |
Command has to be executed on the Master node and requires root permissions. Following The following options are supported:
Option | Description | Default |
---|---|---|
<IP-ADDRESS> | IP Address of the Slave server (required) |
|
--role=<role> | Role of the new node:
| redundancy |
--ssh-port=<port> | SSH Port at the remote node | 22 |
--ssh-user=<user> | SSH User at the remote node | jerasupport |
--pg-data=<path> | Path to PostgreSQL data directory at the remove node | autodetect |
...
The command is used to promote the Redundancy node to Master.
...
Command has to be executed on the Redundancy node and requires root permissions. Reporting node can be used as a last resort if there are no Redundancy node alive. There are no options required.
After the promotion is performed, all required System Services will be started on the current node (new master). After you fix the old Master, you may add it as a new Slave using the "init-slave" command.
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
In case when you have more than 2 nodes in the cluster, you need to re-init all other node nodes from this new Master. |
...
Command has to be executed on the Redundancy node and by default, it is added to the crontab for automatic synchronisationsynchronization.
The command is used to remove a node from the cluster.
Code Block | ||
---|---|---|
| ||
<APP_PATH>/bin/system/cluster remove-node <IP-ADDRESS> |
Command has to be executed on the Master node. The node in question shouldn't have any active database replication. Following The following options are supported:
Option | Description | Default |
---|---|---|
<IP-ADDRESS> | IP Address of the remote node (required) |
|
...