This module creates a compute partition that be used as input to SchedMD-slurm-on-gcp-controller.
Warning: updating a partition will not cause the slurm controller to update its configurations. In other words, it will not update an already deployed Slurm cluster.
The following code snippet creates a partition module with:
- a max node count of 200
- VM machine type of
c2-standard-30
- partition name of "compute"
- connected to the
network1
module viause
- Mounted to homefs via
use
- source: community/modules/compute/SchedMD-slurm-on-gcp-partition
kind: terraform
id: compute_partition
use: [network1, homefs]
settings:
max_node_count: 200
partition_name: compute
machine_type: c2-standard-30
The HPC Toolkit team maintains the wrapper around the slurm-on-gcp terraform modules. For support with the underlying modules, see the instructions in the slurm-gcp README.
Name | Version |
---|---|
terraform | >= 0.14.0 |
>= 3.83 |
Name | Version |
---|---|
>= 3.83 |
No modules.
Name | Type |
---|---|
google_compute_image.compute_image | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
compute_disk_size_gb | Size of boot disk to create for the partition compute nodes | number |
20 |
no |
compute_disk_type | Type of boot disk to create for the partition compute nodes | string |
"pd-standard" |
no |
cpu_platform | The name of the minimum CPU platform that you want the instance to use. | string |
null |
no |
enable_placement | Enable placement groups | bool |
true |
no |
exclusive | Exclusive job access to nodes | bool |
true |
no |
gpu_count | Number of GPUs attached to the partition compute instances | number |
0 |
no |
gpu_type | Type of GPUs attached to the partition compute instances | string |
null |
no |
image_hyperthreads | Enable hyperthreading | bool |
false |
no |
instance_image | Image to be used for the compute VMs in this partition | object({ |
{ |
no |
instance_template | Instance template to use to create partition instances | string |
null |
no |
labels | Labels to add to partition compute instances. List of key key, value pairs. | any |
{} |
no |
machine_type | Compute Platform machine type to use for this partition compute nodes | string |
"c2-standard-60" |
no |
max_node_count | Maximum number of nodes allowed in this partition | number |
50 |
no |
network_storage | An array of network attached storage mounts to be configured on the partition compute nodes. | list(object({ |
[] |
no |
partition_name | The name of the slurm partition | string |
n/a | yes |
preemptible_bursting | Should use preemptibles to burst | string |
false |
no |
regional_capacity | If True, then create instances in the region that has available capacity. Specify the region in the zone field. | bool |
false |
no |
regional_policy | locationPolicy defintion for regional bulkInsert() | any |
{} |
no |
static_node_count | Number of nodes to be statically created | number |
0 |
no |
subnetwork_name | The name of the pre-defined VPC subnet you want the nodes to attach to based on Region. | string |
n/a | yes |
zone | Compute Platform zone where the notebook server will be located | string |
n/a | yes |
Name | Description |
---|---|
partition | The partition structure containing all the set variables |