Package atessera.sensei.model
Class ResourceQuota
java.lang.Object
atessera.sensei.model.ResourceQuota
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 Summary
FieldsModifier and TypeFieldDescriptiondoubleCPU limit in virtual cores.longMaximum log output size in bytes captured from the container to prevent memory abuse.longMemory limit in megabytes.booleanWhentrue, the container has no network access.booleanWhentrue, privilege escalation inside the container is forbidden.longMaximum number of processes/threads inside the container.booleanWhentrue, the container root filesystem is read-only.longTimeout in seconds for graceful container shutdown (docker stop).longMaximum wall clock execution time in seconds.Size of the temporary filesystem mounted whenreadOnlyRootFsis enabled. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
memoryMb
public long memoryMbMemory limit in megabytes. -
cpus
public double cpusCPU limit in virtual cores. -
pidsLimit
public long pidsLimitMaximum number of processes/threads inside the container. -
timeoutSeconds
public long timeoutSecondsMaximum wall clock execution time in seconds. -
networkDisabled
public boolean networkDisabledWhentrue, the container has no network access. -
readOnlyRootFs
public boolean readOnlyRootFsWhentrue, the container root filesystem is read-only. -
noNewPrivileges
public boolean noNewPrivilegesWhentrue, privilege escalation inside the container is forbidden. -
tmpfsSize
Size of the temporary filesystem mounted whenreadOnlyRootFsis enabled. -
maxLogBytes
public long maxLogBytesMaximum log output size in bytes captured from the container to prevent memory abuse. -
stopTimeoutSeconds
public long stopTimeoutSecondsTimeout in seconds for graceful container shutdown (docker stop).
-
-
Constructor Details
-
ResourceQuota
public ResourceQuota()
-