Clarification on /proc/<pid>/cgroup for Azure Container Instances and Azure Container Apps

PS 145 Reputation points
2024-05-31T04:28:51.1533333+00:00

For Azure Container Instances, the format of /proc/<pid>/cgroup entry for pid appears to be <pid>:pids:/containers/<ID>

For Azure Container Apps, it appears to be

<pid>:pids:/default/<ID>

Can someone confirm whether the /proc/<pid>/cgroup line for Azure Container Instances always contains the keyword containers, and the line for Azure Container Apps always contains the keyword default?

We plan to add parsing logic based on these keywords.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
662 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
314 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshu katara 6,395 Reputation points
    2024-05-31T06:42:31.4766667+00:00

    Hi , Welcome to MS Q&A

    Please check below points for answers in detail

    • The /proc/<pid>/cgroup file in Azure Container Instances (ACI) is used to display the control groups hierarchy for a specific process ID (PID). Control groups (cgroups) are used to limit, account for, and isolate resource usage (CPU, memory, and I/O) of a collection of processes.

    In ACI, the container group is the top-level resource, and all containers in a container group share a lifecycle, resources, local network, and storage volumes. Therefore, the /proc/<pid>/cgroup file for a specific PID in ACI would display the cgroups hierarchy for that specific container within the container group.For more information, you can refer to the following resources:

    Container groups in Azure Container InstancesTroubleshoot common issues in Azure Container Instances

    Kindly accept answer if it helps

    Thanks

    Deepanshu


0 additional answers

Sort by: Most helpful