A stand alone Python application for killing errant processes on Slurm based compute nodes.
Project description
Shinigami
Shinigami is a stand alone Python application for killing errant processes on Slurm based compute nodes. The application scans for and terminates any running processes not associated with a currently running Slurm job. Processes associated with whitelisted users (root, administrators, service accounts, etc.) are ignored.
Installation and Setup
The shinigami
command line utility is installable via the pip (or pipx) package manager:
pipx install shinigami
To be of maximal use, it is recommended to run the utility every half hour. However, you may find a different cadence more appropriate depending on your cluster size and use case. Running the utility automatically is accomplished via a simple cron job:
0,30 * * * * shinigami
You may wish to configure the cron job to run under a dedicated service account. When doing so, ensure the user is added to the admin list and satisfies the following criteria:
- Exists on all compute nodes
- Has appropriate permissions to terminate system processes on compute nodes
- Has established SSH keys for connecting to compute nodes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file crc_shinigami-0.6.1.tar.gz
.
File metadata
- Download URL: crc_shinigami-0.6.1.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 160e55a8dfc401ad43da563138737ed821bbf4897f4b80d926c45b924d2edb16 |
|
MD5 | c592ef3b149754ab727ac45e006b7dab |
|
BLAKE2b-256 | 29f20de8621161435279575791eb8bd6cc001eeb1a56ef612ff7131cde43ce46 |
File details
Details for the file crc_shinigami-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: crc_shinigami-0.6.1-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4243a04fcb9195645b44000e1baaf2f327f5d23cc8eda517aef1007ffa02969a |
|
MD5 | acc2760c4f2b297f08648c9b5c32f1e8 |
|
BLAKE2b-256 | c95be684d9fca7159419c2bbb1d3b0c11cdfb56617b8b26edd10b50a7227968d |