Google Cloud Hypercompute Cluster V1beta Client - Class SlurmNodeSet (0.6.0)

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class SlurmNodeSet.

Configuration for Slurm nodesets in the cluster. Nodesets are groups of compute nodes used by Slurm that are responsible for running workloads submitted to the cluster.

Generated from protobuf message google.cloud.hypercomputecluster.v1beta.SlurmNodeSet

Namespace

Google \ Cloud \ HypercomputeCluster \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ compute_instance ComputeInstanceSlurmNodeSet

Optional. If set, indicates that the nodeset should be backed by Compute Engine instances.

↳ id string

Required. The ID for the nodeset, which allows it to be referenced by cluster partitions. The nodeset ID must start with a lowercase letter (a-z), use only lowercase letters or numbers, and contain up to 15 characters. For example, specify nodeset001.

↳ compute_id string

Required. The ID of the compute resource on which this nodeset runs. Must match a key in the cluster's compute_resources.

↳ storage_configs array<StorageConfig>

Optional. How storage resources should be mounted on each compute node.

↳ static_node_count int|string

Optional. Number of nodes to be statically created for this nodeset. The cluster will attempt to ensure that at least this many nodes exist at all times.

↳ max_dynamic_node_count int|string

Optional. Controls how many additional nodes a cluster can bring online to handle workloads. Set this value to enable dynamic node creation and limit the number of additional nodes the cluster can bring online. Leave empty if you do not want the cluster to create nodes dynamically, and instead rely only on static nodes.

↳ resource_policy_config ResourcePolicyConfig

Optional. Resource policy configuration for the nodeset.

getComputeInstance

Optional. If set, indicates that the nodeset should be backed by Compute Engine instances.

Returns
Type Description
ComputeInstanceSlurmNodeSet|null

hasComputeInstance

setComputeInstance

Optional. If set, indicates that the nodeset should be backed by Compute Engine instances.

Parameter
Name Description
var ComputeInstanceSlurmNodeSet
Returns
Type Description
$this

getId

Required. The ID for the nodeset, which allows it to be referenced by cluster partitions. The nodeset ID must start with a lowercase letter (a-z), use only lowercase letters or numbers, and contain up to 15 characters. For example, specify nodeset001.

Returns
Type Description
string

setId

Required. The ID for the nodeset, which allows it to be referenced by cluster partitions. The nodeset ID must start with a lowercase letter (a-z), use only lowercase letters or numbers, and contain up to 15 characters. For example, specify nodeset001.

Parameter
Name Description
var string
Returns
Type Description
$this

getComputeId

Required. The ID of the compute resource on which this nodeset runs. Must match a key in the cluster's compute_resources.

Returns
Type Description
string

setComputeId

Required. The ID of the compute resource on which this nodeset runs. Must match a key in the cluster's compute_resources.

Parameter
Name Description
var string
Returns
Type Description
$this

getStorageConfigs

Optional. How storage resources should be mounted on each compute node.

Returns
Type Description
Google\Protobuf\RepeatedField<StorageConfig>

setStorageConfigs

Optional. How storage resources should be mounted on each compute node.

Parameter
Name Description
var array<StorageConfig>
Returns
Type Description
$this

getStaticNodeCount

Optional. Number of nodes to be statically created for this nodeset. The cluster will attempt to ensure that at least this many nodes exist at all times.

Returns
Type Description
int|string

setStaticNodeCount

Optional. Number of nodes to be statically created for this nodeset. The cluster will attempt to ensure that at least this many nodes exist at all times.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getMaxDynamicNodeCount

Optional. Controls how many additional nodes a cluster can bring online to handle workloads. Set this value to enable dynamic node creation and limit the number of additional nodes the cluster can bring online. Leave empty if you do not want the cluster to create nodes dynamically, and instead rely only on static nodes.

Returns
Type Description
int|string

setMaxDynamicNodeCount

Optional. Controls how many additional nodes a cluster can bring online to handle workloads. Set this value to enable dynamic node creation and limit the number of additional nodes the cluster can bring online. Leave empty if you do not want the cluster to create nodes dynamically, and instead rely only on static nodes.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getResourcePolicyConfig

Optional. Resource policy configuration for the nodeset.

Returns
Type Description
ResourcePolicyConfig|null

hasResourcePolicyConfig

clearResourcePolicyConfig

setResourcePolicyConfig

Optional. Resource policy configuration for the nodeset.

Parameter
Name Description
var ResourcePolicyConfig
Returns
Type Description
$this

getType

Returns
Type Description
string