Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8367330

Loosen container detection to include soft limits

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • None
    • hotspot

      Our current container detection on linux is too narrow. We only identify as running in a container when either:
      1. the cgroup filesystem is read only
      2. a hard memory/cpu cgroup limit is set.

      This misses deployments that rely on soft limits for burstable workloads (for example, multiple containers sharing a host with memory/cpu prioritization but without hard caps). Today, we incorrectly classify these environments as non-containerized.

      We should broaden detection to also treat these environments with soft cgroup limits as containerized, even if hard caps are absent.

            cnorrbin Casper Norrbin
            cnorrbin Casper Norrbin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: