Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 4.96 KB

File metadata and controls

64 lines (48 loc) · 4.96 KB

slurm_partition

Copyright (C) SchedMD LLC.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Requirements

Name Version
terraform ~> 1.2
google >= 3.53, < 5.0
null ~> 3.0

Providers

Name Version
null ~> 3.0

Modules

No modules.

Resources

Name Type
null_resource.partition resource

Inputs

Name Description Type Default Required
default If this is true, jobs submitted without a partition specification will utilize this partition.
This sets 'Default' in partition_conf.
See https://slurm.schedmd.com/slurm.conf.html#OPT_Default for details.
bool false no
enable_job_exclusive Enables job exclusivity. A job will run exclusively on the scheduled nodes. bool false no
network_storage Storage to mounted on all instances in this partition.
* server_ip : Address of the storage server.
* remote_mount : The location in the remote instance filesystem to mount from.
* local_mount : The location on the instance filesystem to mount to.
* fs_type : Filesystem type (e.g. "nfs").
* mount_options : Raw options to pass to 'mount'.
list(object({
server_ip = string
remote_mount = string
local_mount = string
fs_type = string
mount_options = string
}))
[] no
partition_conf Slurm partition configuration as a map.
See https://slurm.schedmd.com/slurm.conf.html#SECTION_PARTITION-CONFIGURATION
map(string) {} no
partition_name Name of Slurm partition. string n/a yes
partition_nodeset Slurm nodesets by name, as a list of string. set(string) [] no
partition_nodeset_dyn Slurm nodesets (dynamic) by name, as a list of string. set(string) [] no
partition_nodeset_tpu Slurm nodesets (tpu) by name, as a list of string. set(string) [] no
resume_timeout Maximum time permitted (in seconds) between when a node resume request is issued and when the node is actually available for use.
If null is given, then a smart default will be chosen depending on nodesets in partition.
This sets 'ResumeTimeout' in partition_conf.
See https://slurm.schedmd.com/slurm.conf.html#OPT_ResumeTimeout_1 for details.
number 300 no
suspend_time Nodes which remain idle or down for this number of seconds will be placed into power save mode by SuspendProgram.
This sets 'SuspendTime' in partition_conf.
See https://slurm.schedmd.com/slurm.conf.html#OPT_SuspendTime_1 for details.
NOTE: use value -1 to exclude partition from suspend.
number 300 no
suspend_timeout Maximum time permitted (in seconds) between when a node suspend request is issued and when the node is shutdown.
If null is given, then a smart default will be chosen depending on nodesets in partition.
This sets 'SuspendTimeout' in partition_conf.
See https://slurm.schedmd.com/slurm.conf.html#OPT_SuspendTimeout_1 for details.
number null no

Outputs

Name Description
partition Partition for slurm controller.
partition_name Partition for slurm controller.