Commit 6a956341 authored by Danny Marc Rotscher's avatar Danny Marc Rotscher
Browse files

Added documentation for Slurm spank plugin

parent 2c130288
# PIKA Spank Plugin
## Requirements
The following requirements are needed:
- Slurm installed on the host
- rpmbuild (rpm package name "rpm-build")
- gcc and make
## Build
```
make rpm
```
## Install
```
rpm -i rpmbuild/RPMS/x86_64/pika-spank*.rpm
or
yum localinstall rpmbuild/RPMS/x86_64/pika-spank*.rpm
```
## Slurm Integration
```
cat /etc/slurm/plugstack.conf
[...]
optional /usr/lib64/slurm/pika_spank.so
[...]
```
Example prolog script:
```
#!/bin/bash
PIKA_SPANK_LOG="/tmp/pika_spank.log"
(
if [[ "${SPANK_PIKA_MONITORING}" == "1" ]]; then
echo "PIKA monitoring enabled"
exit 0
elif [[ "${SPANK_PIKA_MONITORING}" == "0" ]]; then
echo "PIKA monitoring disabled"
echo "systemctl stop collectd"
exit 0
fi
) &> ${PIKA_SPANK_LOG}
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment