Събитие
Създаване на AI приложения и агенти
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сегаТози браузър вече не се поддържа.
Надстройте до Microsoft Edge, за да се възползвате от най-новите функции, актуализации на защитата и техническа поддръжка.
In this article, you learn how to resize an Azure Kubernetes Service (AKS) cluster. It's important to right-size your clusters to optimize costs and performance. You can manually resize a cluster by adding or removing the nodes to meet the needs of your applications. You can also autoscale your cluster to automatically adjust the number of nodes in response to changing demands.
When you create an AKS cluster, you specify the number of nodes and the size of the nodes, which determines the compute capacity of the cluster. Oversized clusters can lead to unnecessary costs, while undersized clusters can lead to performance issues. You can adjust the number and size of the nodes in the cluster to right-size the cluster to meet the needs of your applications.
Consider the following factors when right-sizing your cluster:
Closely monitor the performance and cost of your clusters to ensure they're right-sized to meet the needs of your application and make adjustments as needed. You can use the following resources for monitoring:
You might want to resize a cluster in scenarios such as the following:
You can increase the size of an AKS cluster by adding nodes to the cluster. You can add nodes to the cluster manually or configure autoscaling to automatically adjust the number of nodes in response to changing demands.
When you increase the size of a cluster, the following changes occur:
You can decrease the size of an AKS cluster by removing nodes from the cluster. When you remove nodes from the cluster, the nodes are automatically drained and removed from the cluster. You can remove nodes from the cluster manually or configure autoscaling to automatically adjust the number of nodes in response to changing demands.
When you decrease the size of a cluster, the following changes occur:
Resize an AKS cluster using the az aks scale
command with the --node-count
and --nodepool-name
parameters.
az aks scale --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --node-count $NUM_NODES --nodepool-name $NODE_POOL_NAME
Repeat this command for each node pool in the cluster that you want to resize. If your cluster has only one node pool, you can omit the --nodepool-name
parameter.
Use the cluster autoscaler to automatically resize your node pools in response to changing demands.
For more information, see the Cluster autoscaling in Azure Kubernetes Service (AKS) overview. To configure cluster autoscaling in AKS, see Use the cluster autoscaler in Azure Kubernetes Service (AKS).
In this article, you learned how to right-size an AKS cluster. To learn more about managing AKS clusters, see the following articles:
Обратна връзка за Azure Kubernetes Service
Azure Kubernetes Service е проект с отворен код. Изберете връзка, за да предоставите обратна връзка:
Събитие
Създаване на AI приложения и агенти
17.03, 21 ч. - 21.03, 10 ч.
Присъединете се към поредицата срещи, за да изградите мащабируеми AI решения, базирани на реални случаи на употреба с колеги разработчици и експерти.
Регистрирайте се сегаОбучение
Модул
Configure scaling in Azure Kubernetes Service - Training
This module covers the scaling applications in Azure Kubernetes Service (AKS), including manually scaling pods or nodes and integrating with Azure Container Instances (ACI).
Сертифициране
Microsoft Certified: Azure Administrator Associate - Certifications
Demonstrate key skills to configure, manage, secure, and administer key professional functions in Microsoft Azure.