VK Cloud logo
Updated atDecember 15, 2023   02:10 PM

Scaling cluster

You can perform Cloud Containers cluster scaling manually or set up automatic scaling to adapt the cluster to the changing needs of workloads.

Vertical scaling

This type of scaling is applicable for master nodes and groups of worker nodes. During the scaling process, virtual machine templates are changed for cluster nodes, the number of nodes remains the same. If you need to change the number of worker nodes in a group, perform horizontal scaling

Scaling of master nodes

  1. Learn how the vertical scaling mechanism works.

  2. Make sure that there are enough quotas for scaling.

  3. Perform the scaling.

    1. Go to VK Cloud personal account.

    2. Select the project where the necessary cluster is located.

    3. Go to ContainersKubernetes Clusters.

    4. Make sure that cluster needed is running.

    5. Expand the menu of the necessary cluster and select Change type of master virtual machine.

    6. Select the desired VM template from the drop-down list.

    7. Click the Save button.

Scaling groups of worker nodes

  1. Learn how the vertical scaling mechanism works.

  2. Prepare to scale:

    1. Make sure that there are enough quotas for scaling.

    2. If you plan to reduce the amount of computing resources, then make sure that the total amount of resources in the worker node group will be enough to accommodate the workload.

    3. Make sure that replication is configured for the workload and replicas are distributed across multiple worker nodes from the node group.

      If there is only one worker node in the node group, increase the number of nodes in the group and configure replication if possible.

  3. Perform the scaling.

    1. Go to VK Cloud personal account.

    2. Select the project where the necessary cluster is located.

    3. Go to ContainersKubernetes Clusters.

    4. Make sure that cluster needed is running.

    5. Locate the necessary cluster and node group.

    6. Expand the menu of the necessary node group and select Change type of master virtual machine.

    7. Select the desired VM template from the drop-down list.

    8. Click the Save button.

Horizontal scaling

This type of scaling is applicable for groups of worker nodes. During the scaling process, the number of worker nodes in the group changes, virtual machine templates for worker nodes remain the same. If you need to change these templates for master nodes or worker nodes, perform vertical scaling.

Scaling groups of worker nodes

  1. Learn how the horizontal scaling mechanism works.

  2. Make sure that there are enough quotas for scaling.

  3. Perform the scaling.

    1. Go to VK Cloud personal account.

    2. Select the project where the necessary cluster is located.

    3. Go to ContainersKubernetes Clusters.

    4. Make sure that cluster needed is running.

    5. Find the appropriate node group in this cluster.

    6. Expand the menu of the necessary node group and select Scaling settings.

    7. In the window that appears:

      1. Make sure that the Enable autoscaling option is disabled.
      2. Set the required number of nodes. It can be changed both up and down.
      3. Click the Save changes button.

Configure automatic scaling for worker node groups

  1. Learn how the horizontal scaling mechanism works.

  2. Make sure that there are enough quotas for scaling.

  3. Set up automatic scaling:

    1. Go to VK Cloud personal account.

    2. Select the project where the necessary cluster is located.

    3. Go to ContainersKubernetes Clusters.

    4. Make sure that cluster needed is running.

    5. Find the appropriate node group in this cluster.

    6. Expand the menu of the necessary node group and select Scaling settings.

    7. In the dialog window:

      1. Make sure that the Enable autoscaling option is enabled.
      2. Set the necessary number of nodes. It can be changed both upward and downward.
      3. Click the Save changes button.