-
Notifications
You must be signed in to change notification settings - Fork 5
/
charmcraft.yaml
103 lines (82 loc) · 2.59 KB
/
charmcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: slurmd
summary: |
Slurmd, the compute node daemon of Slurm.
description: |
This charm provides slurmd, munged, and the bindings to other utilities
that make lifecycle operations a breeze.
slurmd is the compute node daemon of SLURM. It monitors all tasks running
on the compute node, accepts work (tasks), launches tasks, and kills
running tasks upon request.
links:
contact: https://matrix.to/#/#hpc:ubuntu.com
issues:
- https://github.com/charmed-hpc/slurm-charms/issues
source:
- https://github.com/charmed-hpc/slurm-charms
assumes:
- juju
type: charm
base: [email protected]
platforms:
amd64:
parts:
charm:
charm-binary-python-packages:
- cryptography ~= 44.0.0
nhc:
plugin: nil
build-packages:
- wget
override-pull: |
wget https://github.com/mej/nhc/releases/download/1.4.3/lbnl-nhc-1.4.3.tar.gz
override-build: |
install -m644 -D -t $CRAFT_PART_INSTALL lbnl-nhc-1.4.3.tar.gz
craftctl default
provides:
slurmctld:
interface: slurmd
limit: 1
config:
options:
partition-config:
type: string
default: ""
description: >
Additional partition configuration parameters, specified as a space separated `key=value`
in a single line. Find a list of all possible partition configuration parameters
[here](https://slurm.schedmd.com/slurm.conf.html#SECTION_PARTITION-CONFIGURATION).
Example usage:
```bash
$ juju config slurmd partition-config="DefaultTime=45:00 MaxTime=1:00:00"
```
nhc-conf:
default: ""
type: string
description: >
Multiline string.
These lines are appended to the `nhc.conf` maintained by the charm.
Example usage:
```bash
$ juju config slurmd nhc-conf="$(cat extra-nhc.conf)"
```
actions:
node-configured:
description: Remove a node from DownNodes when the reason is `New node`.
node-config:
description: >
Set or return node configuration parameters.
To get the current node configuration for this unit:
``bash
$ juju run slurmd/0 node-parameters
```
To set node level configuration parameters for the unit `slurmd/0`:
``bash
$ juju run slurmd/0 node-config parameters="Weight=200 Gres=gpu:tesla:1,gpu:kepler:1,bandwidth:lustre:no_consume:4G"
```
params:
parameters:
type: string
description: >
Node configuration parameter as defined [here](https://slurm.schedmd.com/slurm.conf.html#SECTION_NODE-CONFIGURATION).
show-nhc-config:
description: Display `nhc.conf`.