Required # of vCPUS/Clusters

Bernt Rosmo 26 Reputation points
2022-05-27T09:54:30.163+00:00

Hi.

I am trying to get wiser about vCPUS. Recently we created a new AKS cluster, and we tried to run it empty, i.e. without any services. Then some of our services on the old cluster stopped due to memory shortages. After some checks, it turned out that we had reached the limit on the vCPUS. (red line). I requested an increase in vCPUS which were given. But before we start the new Cluster (we want to split Production from Test), I am wondering about how to calculate or understand the required quota for vCPUs. I have tried to search the net, but I cannot see any obvious connection between resources and vCPUS. Any possibility to shed some light on this?

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,887 questions
0 comments No comments
{count} vote

Accepted answer
  1. kobulloc-MSFT 24,171 Reputation points Microsoft Employee
    2022-05-27T20:59:20.24+00:00

    Hello, @Bernt Rosmo !

    How do I calculate vCPU quota requirements for my AKS cluster?
    This is an important architecture question. Requirements for vCPUs will depend entirely on your workload and for this reason, there isn't much in the way of documentation or calculators to help predict how many vCPUs you'll need for your subscription quota. The best approach is usually to run a stress test to see exactly how much your workload uses. By doing this, you can roughly correlate that X amount of traffic will use Y amount of resources per node and use that as a foundation to make estimates moving forward.

    Edit:
    In the comment below, @shiva patpi walks through the process of monitoring usage so you can create an educated estimate.

    Here is some additional reading on AKS resource reservation and baseline architecture for anyone who is interested:


0 additional answers

Sort by: Most helpful