Pandora: Documentation en: Clusters

From Pandora FMS Wiki
Jump to: navigation, search

Template wip.png

We are working on the translation of the Pandora FMS documentation. Sorry for any inconvenience.

 


1 Cluster Management

1.1 Introduction

From the version 719 of Pandora FMS has a new functionality that allows us to monitor clusters independently of the system or the application you use.

The purpose of this system is to ensure the monitoring of clusters quickly and easily, but above all it is easy for the user.

We will consider two types of clusters:

Active - Passive 
These are those clusters in which we will only have one node running simultaneously.
Active - Active 
These are those in which the application or service provided is balanced between all nodes of the cluster.

In a cluster, we will have several types of elements:

Common Elements
are the modules that must remain active in all nodes of the cluster, essential for clustering to work.
Balanced Elements 
will only be required for "Active - Passive"type clusters. These are the modules that will be executed as long as the node is active i. e., they will be those modules that will go "balancing" from one node to another of the cluster depending on which machine is running my application at that moment, they will report in one agent or another.


1.2 Planning the monitoring

When monitoring a cluster we have to consider the following:

If it is an active active cluster
The common modules to be monitored must be present in all agents of the cluster. Otherwise I won't be able to select them.

We will then need to create identical monitors on all cluster agents to monitor the resources we need.

If it is a passive active cluster
Common modules will follow the same idea as in the previous point. But we will have to monitor the balanced modules only on the active node.

To be able to monitor "the active node" we must use conditioned monitoring, in which the module will only report when a series of pre-conditions are met.

1.3 Configuring a new cluster

To create a new cluster go to Monitoring > Cluster view.

Cl menu.png


If this is the first time you access this screen, you should see a page similar to the next one:


Cl clear.png


1.3.1 Configuring a new cluster Active-Active

Click on the Create button to start the cluster creation wizard, selecting for this example the "Active - Active" cluster option:


Cl aa create.png


Once you have selected a name, a cluster type and a target group, press next to access the section on selecting agents.


AA agente.png


In this step we will select all the critical modules for our service that we want to monitor from among the agents that we have added to the cluster:


Cl aa st3.png


We will select a threshold in percentage of nodes (%) to define the cluster states based on common modules (OK/no OK).

Cl aa st4.png

After the configuration of the cluster we will be able to add alerts about the different elements of the cluster so that a certain action is carried out when changing the modules that we select to a specific status.

Cluster alert aa.png

After the evaluation of the modules we will see the cluster map with the status information.

1.3.2 Active Active cluster view

If your cluster is Active Active, you can only see the common elements.

Following the creation example described in the previous section, we have the following view:

Cl aa view.png


We can differentiate three sections:

Cluster Map
(top left) represents the agents that make up the cluster and their status.
Status Overview 
(top roght) shows the health status of the cluster, as well as the list of its constituent elements.
Metrics View 
(bottom) shows the complete list of metrics registered in the cluster.


If we click on an item in the cluster map, we can see extra information about that item:


Detailed view of cluster status (click on map)


Cl aa view cl detail.png


Detailed view of common module status (click on status overview)

Cl aa view st detail.png


1.3.3 Configuring a new cluster Active-Passive

Click on the Create button to start the cluster creation wizard, selecting for this example the "Active - Passive" cluster option:


Cl ap create.png


Once you have selected a name, a cluster type and a target group, press next to access the section on selecting agents.


AP agente.png


In this step we will select all the critical modules for our service that we want to monitor from among the agents that we have added to the cluster:


Cl ap st3.png


We will select a threshold in percentage of nodes (%) to define the cluster states based on common modules (OK/no OK).

Cl ap st4.png


In this step we will add the balanced modules (those that are reporting in the active agent). The list shows all the modules of all the agents that are part of the cluster.

Cl ap st5.png


In this last section we will select which of the balanced modules are critical for our cluster:

Cl ap st6.png


After evaluating the modules we will see the cluster map with the status information.

1.3.4 Active Passive cluster view

Following the creation example described in the previous section, we have the following view:

Cl ap view.png


In it we differentiate three sections:

Cluster Map
(top left) represents the agents that make up the cluster and their status.
Status Overview 
(top roght) shows the health status of the cluster, as well as the list of its constituent elements.
Metrics View 
(bottom) shows the complete list of metrics registered in the cluster.

If we click on an item in the cluster map, we can see extra information about that item:


Detailed view of cluster status (click on map)

Cl ap view cl detail.png


Detailed status view of cluster modules (click on status overview)

Cl ap view st detail.png