All Projects → nickhir → ClusterMonitor

nickhir / ClusterMonitor

Licence: other
Very simple script which logs the CPU and RAM usage of the submitted job.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ClusterMonitor

clusterplex
ClusterPlex is basically an extended version of Plex, which supports distributed Workers across a cluster to handle transcoding requests.
Stars: ✭ 123 (+434.78%)
Mutual labels:  cluster
blacksmith
Bare-Metal CoreOS Cluster Manager
Stars: ✭ 67 (+191.3%)
Mutual labels:  cluster
astacus
Clustered database backup
Stars: ✭ 24 (+4.35%)
Mutual labels:  cluster
lazycluster
🎛 Distributed machine learning made simple.
Stars: ✭ 43 (+86.96%)
Mutual labels:  cluster
react-map-gl-cluster
Urbica React Cluster Component for Mapbox GL JS
Stars: ✭ 27 (+17.39%)
Mutual labels:  cluster
akka-cluster-minimal
Akka Cluster - absolute minimal
Stars: ✭ 16 (-30.43%)
Mutual labels:  cluster
jakob
A fault-tolerant, distributed cluster of Redis servers with built-in load-balancing and fall-backs to provide data availability
Stars: ✭ 19 (-17.39%)
Mutual labels:  cluster
proxmox-tools
📦 A collection of stuff that I and others wrote for Proxmox 📦
Stars: ✭ 112 (+386.96%)
Mutual labels:  cluster
unitd
Lightweight, high performance messaging system for microservices, IoT, and real-time internet connected devices.
Stars: ✭ 16 (-30.43%)
Mutual labels:  cluster
gpu-cluster-config
How to Configure a GPU Cluster Running Ubuntu Linux
Stars: ✭ 45 (+95.65%)
Mutual labels:  cluster
mmqtt
An Open-Source, Distributed MQTT Broker for IoT.
Stars: ✭ 58 (+152.17%)
Mutual labels:  cluster
rpi-home-cluster-setup
Automated way to set up your own kubernetes cluster on Raspberry Pi. Includes memory card preparation, nodes bootstrap and kubernetes services configuration
Stars: ✭ 111 (+382.61%)
Mutual labels:  cluster
flask-docker-compose
Flask application development skeleton with docker-compose
Stars: ✭ 22 (-4.35%)
Mutual labels:  cluster
rsync2ipfs-cluster
No description or website provided.
Stars: ✭ 16 (-30.43%)
Mutual labels:  cluster
laravel-php-k8s
Just a simple port of renoki-co/php-k8s for easier access in Laravel
Stars: ✭ 71 (+208.7%)
Mutual labels:  cluster
scheduled-scaler
No description or website provided.
Stars: ✭ 68 (+195.65%)
Mutual labels:  cluster
xoom-cluster
The VLINGO XOOM platform SDK cluster management for Reactive, scalable resiliency of JVM tools and applications running on XOOM LATTICE and XOOM ACTORS.
Stars: ✭ 25 (+8.7%)
Mutual labels:  cluster
pg-dock
pg-dock cluster managment
Stars: ✭ 19 (-17.39%)
Mutual labels:  cluster
ClusterAnalysis.jl
Cluster Algorithms from Scratch with Julia Lang. (K-Means and DBSCAN)
Stars: ✭ 22 (-4.35%)
Mutual labels:  cluster
provisionr
📦📦➡️🏛️ Provision a library of R packages
Stars: ✭ 26 (+13.04%)
Mutual labels:  cluster

ClusterMonitor

A very simple python script which monitors and records the CPU and RAM consumption of submitted cluster jobs.

Installation

Simplest option is to install via PyPi:

pip install ClusterMonitor

Alternatively you can also clone this repository and use the scripts inside the ClusterMonitor directory.

Usage

To start recording use the cpu_ram_log.py script. It requires 3 arguments:

  • -u which corresponds to your username.
  • -o which specifies the output file (in tsv format)
  • --interval which specifies the time (in seconds) over which the CPU and RAM usage gets averaged

Example:

python ClusterMonitor/cpu_ram_log.py -u nickhir -o cpu_ram.log --interval 5

The script can simply be included in your cluster job submittion like this:

#!/bin/bash
#SBATCH --job-name=Example_run

sambamba sort -t 3 some_bam.bam &
MainScript=$!
python cpu_ram_log.py -u nickhir -o cpu_ram.log --interval 5 &
wait $MainScript
pkill -P $$

If you used pip to install the package, cpu_ram_log and visualize_log will be added to your PATH variable, thus you can simple use:

cpu_ram_log -u nickhir --interval 5 -o cpu_ram.log

Afterwards the resulting log file can be plotted (for that matplotlib is needed). For that use the visualize_log.py script which needs 2 arguments:

  • -i which specifies the path to the log file which was created with cpu_ram_log.py
  • -o which specifies the path to the resulting PDF which contains a plot for the CPU and RAM usage.

Example:

python visualize_log.py -i cpu_ram.log -o cpu_ram_visualization.pdf

The resulting plots will look somewhat like this: exampleImage

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].