parametric additional partition
This commit is contained in:
@@ -81,6 +81,14 @@
|
|||||||
- name: "{{ inventory_hostname }}"
|
- name: "{{ inventory_hostname }}"
|
||||||
addr: "{{ slurm_network_data.network.IPAM.Config[0].Gateway }}"
|
addr: "{{ slurm_network_data.network.IPAM.Config[0].Gateway }}"
|
||||||
alloc_nodes: "{{ slurm_alloc_nodes_default + extra_nodes | default([])}}"
|
alloc_nodes: "{{ slurm_alloc_nodes_default + extra_nodes | default([])}}"
|
||||||
|
partitions:
|
||||||
|
- name: cobald
|
||||||
|
nodeprefix: drone
|
||||||
|
num_nodes: 10
|
||||||
|
node_cores: 3
|
||||||
|
node_mem: 4900
|
||||||
|
port: 16818
|
||||||
|
initstate: FUTURE
|
||||||
notify: reconfigure slurm
|
notify: reconfigure slurm
|
||||||
tags: slurm-config
|
tags: slurm-config
|
||||||
|
|
||||||
|
@@ -9,6 +9,7 @@ ControlMachine=slurm-ctl
|
|||||||
AuthType=auth/munge
|
AuthType=auth/munge
|
||||||
#CheckpointType=checkpoint/none
|
#CheckpointType=checkpoint/none
|
||||||
CryptoType=crypto/munge
|
CryptoType=crypto/munge
|
||||||
|
CommunicationParameters=NoAddrCache
|
||||||
#DisableRootJobs=NO
|
#DisableRootJobs=NO
|
||||||
#EnforcePartLimits=NO
|
#EnforcePartLimits=NO
|
||||||
#Epilog=
|
#Epilog=
|
||||||
@@ -166,13 +167,24 @@ SlurmSchedLogFile={{slurm_log_path_sched}}
|
|||||||
NodeName=slurm-exec[1-{{ num_nodes }}] CPUs={{ slurm_exec_node_cores }} {{''
|
NodeName=slurm-exec[1-{{ num_nodes }}] CPUs={{ slurm_exec_node_cores }} {{''
|
||||||
}} RealMemory={{ slurm_exec_node_mem }} {{''
|
}} RealMemory={{ slurm_exec_node_mem }} {{''
|
||||||
}} CoresPerSocket={{ slurm_exec_node_cores }} State=UNKNOWN
|
}} CoresPerSocket={{ slurm_exec_node_cores }} State=UNKNOWN
|
||||||
# RealMemory=5964
|
{% for p in partitions | default([]) %}
|
||||||
|
NodeName={{ p.nodeprefix }}[1-{{ p.num_nodes }}] CPUs={{ p.node_cores }} {{''
|
||||||
|
}} RealMemory={{ p.node_mem }} {{''
|
||||||
|
}} CoresPerSocket={{ p.node_cores }} {{''
|
||||||
|
}} {%- if p.port is defined %} Port={{ p.port}} {% endif %}{{''
|
||||||
|
}} State={{ p.initstate | default('UNKNOWN') }}
|
||||||
|
{% endfor %}
|
||||||
{% for i in alloc_nodes -%}
|
{% for i in alloc_nodes -%}
|
||||||
NodeName={{i.name}}
|
NodeName={{i.name}}
|
||||||
{%- if i.hostname is defined %} NodeHostname={{i.hostname}} {% endif %}
|
{%- if i.hostname is defined %} NodeHostname={{i.hostname}} {% endif %}
|
||||||
{%- if i.addr is defined %} NodeAddr={{i.addr}} {% endif %}
|
{%- if i.addr is defined %} NodeAddr={{i.addr}} {% endif %}
|
||||||
State=UNKNOWN
|
State=UNKNOWN
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
PartitionName=debug Nodes=slurm-exec[1-{{num_nodes}}] {{ ''
|
PartitionName=container Nodes=slurm-exec[1-{{num_nodes}}] {{ ''
|
||||||
}} AllocNodes={{alloc_nodes |map(attribute='name') | join(',')}} {{ ''
|
}} AllocNodes={{alloc_nodes |map(attribute='name') | join(',')}} {{ ''
|
||||||
}} Default=YES MaxTime=INFINITE State=UP
|
}} Default=YES MaxTime=INFINITE State=UP
|
||||||
|
{% for p in partitions | default([]) %}
|
||||||
|
PartitionName={{ p.name }} Nodes={{ p.nodeprefix }}[1-{{ p.num_nodes }}] {{ ''
|
||||||
|
}} AllocNodes={{alloc_nodes |map(attribute='name') | join(',')}} {{ ''
|
||||||
|
}} MaxTime=INFINITE State=UP
|
||||||
|
{% endfor %}
|
||||||
|
Reference in New Issue
Block a user