Introduction
This article discusses Logsign cluster role management.
Cluster Role Management
Each server in the Logsign cluster structure is assigned a specific role. These roles help each server in the cluster structure to perform a specific task. This enables the cluster structure to operate more efficiently and systematically.
Cluster role management is performed through the Logsign user interface, on the Settings > System > Cluster page. Different roles can be assigned for each server in the cluster structure on this page. For example, one server can be used to collect data, another server can be used to store data, and another server can be used to analyze data.
Cluster role management ensures efficient use of the resources of servers in the cluster structure and helps system administrators to change the roles of servers in the cluster structure to improve system performance.
To change the roles of a server, click Edit on its card. In the panel that opens, select a role in the Roles section and click Add Role, or remove an existing role with its delete icon. Clicking a role name lists the services of that role, and the number of instances of each service on that server can be set next to the service name (minimum 1).
The same Edit panel includes a Health Check list for that server. Each row shows the status of one check. Click the check name to see its details.
If the latest health check result of a server is older than 360 seconds (6 minutes), or has no check time, all rows of that server show a yellow status. In this case the details of each row show a not_measured reason with the server name, the age of the result and the time of the latest check. A yellow row of this type does not mean that a check failed. It means that no current measurement is available for that server, so the earlier results are not shown. Each server is evaluated separately, so the other servers continue to show their own results.
If you see this status, do these checks on the affected server:
- Make sure that the server is running and can communicate with the other cluster nodes.
- Make sure that the system clock of the server is synchronized with the other nodes (for example, with NTP). A clock difference of more than 360 seconds between nodes can also cause this status.
If there is excessive CPU usage on a node, we can distribute its roles to other nodes. In the example below, the parser service on the siem3 node is reduced, and the parser service on the siem2 node is increased.
The configuration is saved with the Save Plan button. Saving the plan does not apply it. To apply the saved plan, run the following command on the CA host, the node that holds the cluster root CA signing key, from the terminal:
/opt/logsign-venv/bin/logsign-python /opt/logsign-maintenance/cluster.py apply_plan
The cluster root CA signing key stays on the node that runs the plan apply. Run this command on the CA host, the node that holds /opt/ca/root/ca.key. The key must be a nonempty regular file owned by root with mode 0600. The apply sends the CA certificate to peers and issues each peer a new NATS certificate; it does not distribute the CA private key.
If the apply reports a root CA key placement failure, do not copy or remove CA keys to retry. Older clusters may have a matching root CA key on a peer. Contact Logsign Support to review the affected nodes before running the apply again.
When the command finishes, check its output. If the plan could not be applied completely, the command ends with an error and prints each affected node with the reason and the next step. Complete the reported step and run the apply plan command again. If the error continues, contact Logsign Support.