I have recently upgraded AKS cluster from 1.24 to 1.25.x and faced memory issues, will I get a same issue if I upgrade to 1.26?

37821879 90 Reputation points
2023-07-28T11:21:00.5866667+00:00

I have recently upgraded AKS cluster from 1.24 to 1.25.x and faced memory issues, will I get a same issue if I upgrade to 1.26?

is there any issue arise while/after upgrading cluster to 1.26.x? Please suggest

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.
2,254 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andrei Barbu 2,591 Reputation points Microsoft Employee
    2023-07-28T11:29:10.4+00:00

    Hello 37821879,

    This is expected because starting with 1.25, cgroup v2 is used and it usually leads to higher memory consumption for Java, .NET and Node.JS applications.

    It will use cgroups v2 from 1.25 further, meaning that 1.26 will have the same behavior.

    If you deploy Java applications with the JDK, prefer to use JDK 11.0.16 and later or JDK 15 and later, which fully support cgroup v2.

    You can read more about this in the following links:

    https://learn.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-components-breaking-changes-by-version

    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/aks-increased-memory-usage-cgroup-v2

    https://kubernetes.io/docs/concepts/architecture/cgroups/

    Hopefully this is what you are looking for! If you have additional questions, please let us know in the comments.

    If this has been helpful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.