Suppose you have a cluster. Suppose you would like to monitor your cluster as soon as possible without installing all kind of tools on the cluster. A new software package named ISA has been created which can do centralized monitoring for you! This article is a walkthrough for ISA and helps you setting up monitoring for your cluster in just a few minutes.
- ISA can collect many node statistics such as CPU usage, memory usage and disk I/O.
- It is easy to setup and it has flexible node configuration.
- ISA ensures minimal influence for the node statistics.
- No setup required on the nodes, the statistic management is done centrally.
In this tutorial, we will setup ISA and collect cluster statistics in a CSV.
ISA is easy to setup and is very useful for monitoring a cluster for a short amount of time and gather as much as information as possible. Below, some example visualizations of the CSV file produced by ISA are shown.
For installing ISA, you just need Python and Pip. ISA can be installed using the following command:
Et voila! You have installed ISA. That was only half a minute of work.
Configuring your cluster
ISA needs to know where your servers are and how ISA can connect to these servers. No worries, this will all happen on your local machine and it is easy to configure. It is even possible to specify connections via another machine (for example, if you need to connect via a proxy or via a login node).
Suppose you have two machines, server-a and server-b and you can login on server-a with username “user-a” and password “password-a” and on server-b you can login with username “user-b” and password “password-b”. Furthermore, server-a is located at IP address 127.0.0.1 and server-b is located at www.mydomain.com. You need to create one INI file specifying all of this. In my example, I have created “nodes.ini” with the following content:
If you are interested in setting up a WordPress blog in a few minutes, you should definitely read this article which builds upon a LAMP stack.
Now we have the nodes.ini file, we are ready to use ISA for collecting statistics. If you want to check if everything works fine, you can use the standard output mode which displays the statistics in your terminal. This can be done as follows:
That was very easy! Now, if you want to write the results to a CSV file, you can do the following. Make sure that the output file ends on .csv:
The -vv flag is optional, but provides additional information about the run. I got the following results in results.csv:
Since I use only one plugin (the default plugin called collectl), I can see that the plugin field in the CSV is everywhere set to this plugin. I can also see statistics like the Cpu1 flag of collectl. For more information of the fields, one can look up the documentation of collectl. Note that this CSV can be used by any other type of application.
It is possible to specify how often statistics are collected. This is done by setting the “interval” flag which specifies the number of seconds ISA will collect statistics. For example, if you would like to gather statistics from every 10 seconds, you can do the following:
It is also possible to specify how long ISA will try to connect to your server using the “timeout” flag (also specified in seconds):
If you have a short timespan and you want to measure statistics of a cluster, definitely use ISA. It is easy to setup and easy to configure and results are obtained within a few seconds.