MonSter is an “out-of-the-box” monitoring tool for high-performance computing platforms. It uses the evolving specification Redfish to retrieve sensor data from Baseboard Management Controller, and resource management tools such as Slurm to obtain application information and resource usage data. Additionally, it also uses a time-series database (TimeScaleDB implemented in the code) for data storage. MonSTer correlates applications to resource usage and reveals insightful knowledge without having additional overhead on the application and computing nodes.
For details about MonSter, please refer to the paper:
@inproceedings{li2020monster,
title={MonSTer: an out-of-the-box monitoring tool for high performance computing systems},
author={Li, Jie and Ali, Ghazanfar and Nguyen, Ngan and Hass, Jon and Sill, Alan and Dang, Tommy and Chen, Yong},
booktitle={2020 IEEE International Conference on Cluster Computing (CLUSTER)},
pages={119--129},
year={2020},
organization={IEEE}
}
For examples of visualization of data based on the above please see https://idatavisualizationlab.github.io/HPCC/.
MonSter requires that iDRAC nodes (13G in pull model, 15G in push model), TimeScaleDB service, and Slurm REST API service can be accessed from the host machine where MonSter is running.
Copy the config.yml.example
file to config.yml
and edit the file to configure the iDRAC nodes, TimeScaleDB service, and Slurm REST API service.
The usernames and passwords should be configured in the environment (edit the ~/.bashrc
or ~/.bash_profile
) instead of hard-coded in the code or in the configuration file.
# For TimeScaleDB
tsdb_username=tsdb_username
tsdb_password=tsdb_password
# For iDRAC8
idrac_username=idrac_username
idrac_password=idrac_password
# For Slurm REST API
slurm_username=slurm_username
-- Create the database 'demo' for the owner 'monster',
CREATE DATABASE demo WITH OWNER monster;
-- Connect to the database
\c demo
-- Extend the database with TimescaleDB
CREATE EXTENSION IF NOT EXISTS timescaledb;
Metrics Builder acts as a middleware between the consumers (i.e. analytic clients or tools) and the producers (i.e. the databases). Its provides APIs for the web applications and accelerates the data query performance.
Configure the SSL certificate and key for the MetricsBuilder API server. We use Let's Encrypt to get the SSL certificate and key.
export UVICORN_KEY=/path/to/ssl/key
export UVICORN_CERT=/path/to/ssl/cert
# Create the virtual environment
python3.9 -m venv .venv
# Activate the virtual environment
source .venv/bin/activate
# Install project in editable mode and install the required packages
pip install -e .
init_db.py
script.python ./monster/init_tsdb.py
nohup python ./monster/monit_idrac.py >/dev/null 2>&1 &
nohup python ./monster/monit_slurm.py >/dev/null 2>&1 &
--host
and --port
parameters.nohup uvicorn mbuilder.mb_api:app --host 0.0.0.0 --port 5000 --ssl-keyfile $UVICORN_KEY --ssl-certfile $UVICORN_CERT >./log/mbapi.log 2>&1 &
Access the demo page of the MetricsBuilder API server at https://localhost:5000/docs
.
Stop the running services.
kill $(ps aux | grep 'mb_api' | grep -v grep | awk '{print $2}')
kill $(ps aux | grep 'monit_idrac' | grep -v grep | awk '{print $2}')
kill $(ps aux | grep 'monit_slurm' | grep -v grep | awk '{print $2}')