Updating a GPU cluster
After creating a GPU cluster, you can change its name, description, or labels.
For information on how to add a VM to a GPU cluster, see Adding a VM to a GPU cluster.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
-
See the description of the CLI command for updating GPU cluster parameters:
yc compute gpu-cluster update --help -
Get a list of GPU clusters in the default folder:
yc compute gpu-cluster list -
Select
IDorNAMEof the GPU cluster in question, e.g.,first-gpu-cluster. -
Update the GPU cluster parameters, e.g., rename the cluster:
yc compute instance update first-gpu-cluster \ --new-name updated-gpu-cluster
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
-
Open the Terraform configuration file and edit the section specifying the GPU cluster:
Example of specifying a GPU cluster in Terraform configuration
... resource "yandex_compute_gpu_cluster" "default" { name = "gpu-cluster-name" interconnect_type = "infiniband" zone = "ru-central1-a" labels = { environment = "test" } } ... -
Apply the changes:
-
In the terminal, navigate to the configuration file directory.
-
Make sure the configuration is correct using this command:
terraform validateIf the configuration is valid, you will get this message:
Success! The configuration is valid. -
Run this command:
terraform planYou will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.
-
Apply the configuration changes:
terraform apply -
Type
yesand press Enter to confirm the changes.
-
You can check the GPU cluster update using the management console
yc compute gpu-cluster get <GPU_cluster_name>