Google Cloud Hypercompute Cluster V1beta Client - Class SlurmNodeSet (0.1.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. Identifier for the nodeset, which allows it to be referenced by partitions. Must conform to RFC-1034 (lower-case, alphanumeric, and at most 63 characters).

↳ compute_id string

Optional. ID of the compute resource on which this nodeset will run. 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.

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. Identifier for the nodeset, which allows it to be referenced by partitions. Must conform to RFC-1034 (lower-case, alphanumeric, and at most 63 characters).

Returns
Type Description
string

setId

Required. Identifier for the nodeset, which allows it to be referenced by partitions. Must conform to RFC-1034 (lower-case, alphanumeric, and at most 63 characters).

Parameter
Name Description
var string
Returns
Type Description
$this

getComputeId

Optional. ID of the compute resource on which this nodeset will run. Must match a key in the cluster's compute_resources.

Returns
Type Description
string

setComputeId

Optional. ID of the compute resource on which this nodeset will run. 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\Internal\RepeatedField

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

getType

Returns
Type Description
string