You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're running a Docker@2 Task (doing buildAndpush and therefore disabling arguments options) in a Azure DevOps pipeline which builds a react.js application which uses >8GB of RAM during the build step. The Azure DevOps build agent however does have a memory request/limit set to 6GB and therefore get's OOMKilled.
Inside the azure devops build agent we use podman that handles the Dockerfile build from the Docker@2 task from the Azure DevOps Pipeline.
the documentation is for cgroups v1 where AKS would be cgroup v2, you probably need to do something like echo "6G" > /sys/fs/cgroup/system.slice/vsts.agent.*.*.agent*.service/memory.peak
What happened?
We're running a Docker@2 Task (doing buildAndpush and therefore disabling arguments options) in a Azure DevOps pipeline which builds a react.js application which uses >8GB of RAM during the build step. The Azure DevOps build agent however does have a memory request/limit set to 6GB and therefore get's OOMKilled.
Inside the azure devops build agent we use podman that handles the Dockerfile build from the Docker@2 task from the Azure DevOps Pipeline.
We've followed https://github.com/microsoft/azure-pipelines-agent/blob/master/docs/start/resourceconfig.md w/o success as k8s overwrites the cgroups for all running processes.
Any other suggestions or ideas how to enforce the memory limit with the azure pipeline agent?
Versions
Azure Pipelines agent: v4.251.0
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
AKS k8s 1.30.6
Version controll system
Azure DevOps
Relevant log output
The text was updated successfully, but these errors were encountered: