Class ResourceQuota

java.lang.Object
atessera.sensei.model.ResourceQuota

public final class ResourceQuota extends Object
Resource limits applied to a Docker container during a check.

Every submitted work may define its own quota. Limits are translated into docker run command line options by DockerRunner.

  • Field Details

    • memoryMb

      public long memoryMb
      Memory limit in megabytes.
    • cpus

      public double cpus
      CPU limit in virtual cores.
    • pidsLimit

      public long pidsLimit
      Maximum number of processes/threads inside the container.
    • timeoutSeconds

      public long timeoutSeconds
      Maximum wall clock execution time in seconds.
    • networkDisabled

      public boolean networkDisabled
      When true, the container has no network access.
    • readOnlyRootFs

      public boolean readOnlyRootFs
      When true, the container root filesystem is read-only.
    • noNewPrivileges

      public boolean noNewPrivileges
      When true, privilege escalation inside the container is forbidden.
    • tmpfsSize

      public String tmpfsSize
      Size of the temporary filesystem mounted when readOnlyRootFs is enabled.
    • maxLogBytes

      public long maxLogBytes
      Maximum log output size in bytes captured from the container to prevent memory abuse.
    • stopTimeoutSeconds

      public long stopTimeoutSeconds
      Timeout in seconds for graceful container shutdown (docker stop).
  • Constructor Details

    • ResourceQuota

      public ResourceQuota()