public static final class Protos.LinuxInfo.Builder extends <any> implements Protos.LinuxInfoOrBuilder
Encapsulation for Linux specific configuration. E.g, capabilities, limits etc.Protobuf type
mesos.LinuxInfo
Modifier and Type | Method and Description |
---|---|
Protos.LinuxInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.LinuxInfo |
build() |
Protos.LinuxInfo |
buildPartial() |
Protos.LinuxInfo.Builder |
clear() |
Protos.LinuxInfo.Builder |
clearBoundingCapabilities()
The set of capabilities that are allowed but not initially
granted to tasks.
|
Protos.LinuxInfo.Builder |
clearCapabilityInfo()
Deprecated.
|
Protos.LinuxInfo.Builder |
clearEffectiveCapabilities()
Represents the set of capabilities that the task will
be executed with.
|
Protos.LinuxInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.LinuxInfo.Builder |
clearIpcMode()
There are two special cases that we need to handle for this field:
1.
|
Protos.LinuxInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.LinuxInfo.Builder |
clearSeccomp()
Represents Seccomp configuration, which is used for syscall filtering.
|
Protos.LinuxInfo.Builder |
clearShareCgroups()
If set as 'true', the container will share the cgroups from its parent
container, otherwise it will have its own cgroups created.
|
Protos.LinuxInfo.Builder |
clearSharePidNamespace()
If set as 'true', the container shares the pid namespace with
its parent.
|
Protos.LinuxInfo.Builder |
clearShmSize()
Size of /dev/shm in MB.
|
Protos.LinuxInfo.Builder |
clone() |
Protos.CapabilityInfo |
getBoundingCapabilities()
The set of capabilities that are allowed but not initially
granted to tasks.
|
Protos.CapabilityInfo.Builder |
getBoundingCapabilitiesBuilder()
The set of capabilities that are allowed but not initially
granted to tasks.
|
Protos.CapabilityInfoOrBuilder |
getBoundingCapabilitiesOrBuilder()
The set of capabilities that are allowed but not initially
granted to tasks.
|
Protos.CapabilityInfo |
getCapabilityInfo()
Deprecated.
|
Protos.CapabilityInfo.Builder |
getCapabilityInfoBuilder()
Deprecated.
|
Protos.CapabilityInfoOrBuilder |
getCapabilityInfoOrBuilder()
Deprecated.
|
Protos.LinuxInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.CapabilityInfo |
getEffectiveCapabilities()
Represents the set of capabilities that the task will
be executed with.
|
Protos.CapabilityInfo.Builder |
getEffectiveCapabilitiesBuilder()
Represents the set of capabilities that the task will
be executed with.
|
Protos.CapabilityInfoOrBuilder |
getEffectiveCapabilitiesOrBuilder()
Represents the set of capabilities that the task will
be executed with.
|
Protos.LinuxInfo.IpcMode |
getIpcMode()
There are two special cases that we need to handle for this field:
1.
|
Protos.SeccompInfo |
getSeccomp()
Represents Seccomp configuration, which is used for syscall filtering.
|
Protos.SeccompInfo.Builder |
getSeccompBuilder()
Represents Seccomp configuration, which is used for syscall filtering.
|
Protos.SeccompInfoOrBuilder |
getSeccompOrBuilder()
Represents Seccomp configuration, which is used for syscall filtering.
|
boolean |
getShareCgroups()
If set as 'true', the container will share the cgroups from its parent
container, otherwise it will have its own cgroups created.
|
boolean |
getSharePidNamespace()
If set as 'true', the container shares the pid namespace with
its parent.
|
int |
getShmSize()
Size of /dev/shm in MB.
|
boolean |
hasBoundingCapabilities()
The set of capabilities that are allowed but not initially
granted to tasks.
|
boolean |
hasCapabilityInfo()
Deprecated.
|
boolean |
hasEffectiveCapabilities()
Represents the set of capabilities that the task will
be executed with.
|
boolean |
hasIpcMode()
There are two special cases that we need to handle for this field:
1.
|
boolean |
hasSeccomp()
Represents Seccomp configuration, which is used for syscall filtering.
|
boolean |
hasShareCgroups()
If set as 'true', the container will share the cgroups from its parent
container, otherwise it will have its own cgroups created.
|
boolean |
hasSharePidNamespace()
If set as 'true', the container shares the pid namespace with
its parent.
|
boolean |
hasShmSize()
Size of /dev/shm in MB.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.LinuxInfo.Builder |
mergeBoundingCapabilities(Protos.CapabilityInfo value)
The set of capabilities that are allowed but not initially
granted to tasks.
|
Protos.LinuxInfo.Builder |
mergeCapabilityInfo(Protos.CapabilityInfo value)
Deprecated.
|
Protos.LinuxInfo.Builder |
mergeEffectiveCapabilities(Protos.CapabilityInfo value)
Represents the set of capabilities that the task will
be executed with.
|
Protos.LinuxInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.LinuxInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.LinuxInfo.Builder |
mergeSeccomp(Protos.SeccompInfo value)
Represents Seccomp configuration, which is used for syscall filtering.
|
Protos.LinuxInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.LinuxInfo.Builder |
setBoundingCapabilities(Protos.CapabilityInfo.Builder builderForValue)
The set of capabilities that are allowed but not initially
granted to tasks.
|
Protos.LinuxInfo.Builder |
setBoundingCapabilities(Protos.CapabilityInfo value)
The set of capabilities that are allowed but not initially
granted to tasks.
|
Protos.LinuxInfo.Builder |
setCapabilityInfo(Protos.CapabilityInfo.Builder builderForValue)
Deprecated.
|
Protos.LinuxInfo.Builder |
setCapabilityInfo(Protos.CapabilityInfo value)
Deprecated.
|
Protos.LinuxInfo.Builder |
setEffectiveCapabilities(Protos.CapabilityInfo.Builder builderForValue)
Represents the set of capabilities that the task will
be executed with.
|
Protos.LinuxInfo.Builder |
setEffectiveCapabilities(Protos.CapabilityInfo value)
Represents the set of capabilities that the task will
be executed with.
|
Protos.LinuxInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.LinuxInfo.Builder |
setIpcMode(Protos.LinuxInfo.IpcMode value)
There are two special cases that we need to handle for this field:
1.
|
Protos.LinuxInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.LinuxInfo.Builder |
setSeccomp(Protos.SeccompInfo.Builder builderForValue)
Represents Seccomp configuration, which is used for syscall filtering.
|
Protos.LinuxInfo.Builder |
setSeccomp(Protos.SeccompInfo value)
Represents Seccomp configuration, which is used for syscall filtering.
|
Protos.LinuxInfo.Builder |
setShareCgroups(boolean value)
If set as 'true', the container will share the cgroups from its parent
container, otherwise it will have its own cgroups created.
|
Protos.LinuxInfo.Builder |
setSharePidNamespace(boolean value)
If set as 'true', the container shares the pid namespace with
its parent.
|
Protos.LinuxInfo.Builder |
setShmSize(int value)
Size of /dev/shm in MB.
|
Protos.LinuxInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.LinuxInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.LinuxInfo getDefaultInstanceForType()
public Protos.LinuxInfo build()
public Protos.LinuxInfo buildPartial()
public Protos.LinuxInfo.Builder clone()
public Protos.LinuxInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.LinuxInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.LinuxInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.LinuxInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.LinuxInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.LinuxInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.LinuxInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
@Deprecated public boolean hasCapabilityInfo()
Since 1.4.0, deprecated in favor of `effective_capabilities`.
optional .mesos.CapabilityInfo capability_info = 1 [deprecated = true];
hasCapabilityInfo
in interface Protos.LinuxInfoOrBuilder
@Deprecated public Protos.CapabilityInfo getCapabilityInfo()
Since 1.4.0, deprecated in favor of `effective_capabilities`.
optional .mesos.CapabilityInfo capability_info = 1 [deprecated = true];
getCapabilityInfo
in interface Protos.LinuxInfoOrBuilder
@Deprecated public Protos.LinuxInfo.Builder setCapabilityInfo(Protos.CapabilityInfo value)
Since 1.4.0, deprecated in favor of `effective_capabilities`.
optional .mesos.CapabilityInfo capability_info = 1 [deprecated = true];
@Deprecated public Protos.LinuxInfo.Builder setCapabilityInfo(Protos.CapabilityInfo.Builder builderForValue)
Since 1.4.0, deprecated in favor of `effective_capabilities`.
optional .mesos.CapabilityInfo capability_info = 1 [deprecated = true];
@Deprecated public Protos.LinuxInfo.Builder mergeCapabilityInfo(Protos.CapabilityInfo value)
Since 1.4.0, deprecated in favor of `effective_capabilities`.
optional .mesos.CapabilityInfo capability_info = 1 [deprecated = true];
@Deprecated public Protos.LinuxInfo.Builder clearCapabilityInfo()
Since 1.4.0, deprecated in favor of `effective_capabilities`.
optional .mesos.CapabilityInfo capability_info = 1 [deprecated = true];
@Deprecated public Protos.CapabilityInfo.Builder getCapabilityInfoBuilder()
Since 1.4.0, deprecated in favor of `effective_capabilities`.
optional .mesos.CapabilityInfo capability_info = 1 [deprecated = true];
@Deprecated public Protos.CapabilityInfoOrBuilder getCapabilityInfoOrBuilder()
Since 1.4.0, deprecated in favor of `effective_capabilities`.
optional .mesos.CapabilityInfo capability_info = 1 [deprecated = true];
getCapabilityInfoOrBuilder
in interface Protos.LinuxInfoOrBuilder
public boolean hasBoundingCapabilities()
The set of capabilities that are allowed but not initially granted to tasks.
optional .mesos.CapabilityInfo bounding_capabilities = 2;
hasBoundingCapabilities
in interface Protos.LinuxInfoOrBuilder
public Protos.CapabilityInfo getBoundingCapabilities()
The set of capabilities that are allowed but not initially granted to tasks.
optional .mesos.CapabilityInfo bounding_capabilities = 2;
getBoundingCapabilities
in interface Protos.LinuxInfoOrBuilder
public Protos.LinuxInfo.Builder setBoundingCapabilities(Protos.CapabilityInfo value)
The set of capabilities that are allowed but not initially granted to tasks.
optional .mesos.CapabilityInfo bounding_capabilities = 2;
public Protos.LinuxInfo.Builder setBoundingCapabilities(Protos.CapabilityInfo.Builder builderForValue)
The set of capabilities that are allowed but not initially granted to tasks.
optional .mesos.CapabilityInfo bounding_capabilities = 2;
public Protos.LinuxInfo.Builder mergeBoundingCapabilities(Protos.CapabilityInfo value)
The set of capabilities that are allowed but not initially granted to tasks.
optional .mesos.CapabilityInfo bounding_capabilities = 2;
public Protos.LinuxInfo.Builder clearBoundingCapabilities()
The set of capabilities that are allowed but not initially granted to tasks.
optional .mesos.CapabilityInfo bounding_capabilities = 2;
public Protos.CapabilityInfo.Builder getBoundingCapabilitiesBuilder()
The set of capabilities that are allowed but not initially granted to tasks.
optional .mesos.CapabilityInfo bounding_capabilities = 2;
public Protos.CapabilityInfoOrBuilder getBoundingCapabilitiesOrBuilder()
The set of capabilities that are allowed but not initially granted to tasks.
optional .mesos.CapabilityInfo bounding_capabilities = 2;
getBoundingCapabilitiesOrBuilder
in interface Protos.LinuxInfoOrBuilder
public boolean hasEffectiveCapabilities()
Represents the set of capabilities that the task will be executed with.
optional .mesos.CapabilityInfo effective_capabilities = 3;
hasEffectiveCapabilities
in interface Protos.LinuxInfoOrBuilder
public Protos.CapabilityInfo getEffectiveCapabilities()
Represents the set of capabilities that the task will be executed with.
optional .mesos.CapabilityInfo effective_capabilities = 3;
getEffectiveCapabilities
in interface Protos.LinuxInfoOrBuilder
public Protos.LinuxInfo.Builder setEffectiveCapabilities(Protos.CapabilityInfo value)
Represents the set of capabilities that the task will be executed with.
optional .mesos.CapabilityInfo effective_capabilities = 3;
public Protos.LinuxInfo.Builder setEffectiveCapabilities(Protos.CapabilityInfo.Builder builderForValue)
Represents the set of capabilities that the task will be executed with.
optional .mesos.CapabilityInfo effective_capabilities = 3;
public Protos.LinuxInfo.Builder mergeEffectiveCapabilities(Protos.CapabilityInfo value)
Represents the set of capabilities that the task will be executed with.
optional .mesos.CapabilityInfo effective_capabilities = 3;
public Protos.LinuxInfo.Builder clearEffectiveCapabilities()
Represents the set of capabilities that the task will be executed with.
optional .mesos.CapabilityInfo effective_capabilities = 3;
public Protos.CapabilityInfo.Builder getEffectiveCapabilitiesBuilder()
Represents the set of capabilities that the task will be executed with.
optional .mesos.CapabilityInfo effective_capabilities = 3;
public Protos.CapabilityInfoOrBuilder getEffectiveCapabilitiesOrBuilder()
Represents the set of capabilities that the task will be executed with.
optional .mesos.CapabilityInfo effective_capabilities = 3;
getEffectiveCapabilitiesOrBuilder
in interface Protos.LinuxInfoOrBuilder
public boolean hasSharePidNamespace()
If set as 'true', the container shares the pid namespace with its parent. If the container is a top level container, it will share the pid namespace with the agent. If the container is a nested container, it will share the pid namespace with its parent container. This field will be ignored if 'namespaces/pid' isolator is not enabled.
optional bool share_pid_namespace = 4;
hasSharePidNamespace
in interface Protos.LinuxInfoOrBuilder
public boolean getSharePidNamespace()
If set as 'true', the container shares the pid namespace with its parent. If the container is a top level container, it will share the pid namespace with the agent. If the container is a nested container, it will share the pid namespace with its parent container. This field will be ignored if 'namespaces/pid' isolator is not enabled.
optional bool share_pid_namespace = 4;
getSharePidNamespace
in interface Protos.LinuxInfoOrBuilder
public Protos.LinuxInfo.Builder setSharePidNamespace(boolean value)
If set as 'true', the container shares the pid namespace with its parent. If the container is a top level container, it will share the pid namespace with the agent. If the container is a nested container, it will share the pid namespace with its parent container. This field will be ignored if 'namespaces/pid' isolator is not enabled.
optional bool share_pid_namespace = 4;
public Protos.LinuxInfo.Builder clearSharePidNamespace()
If set as 'true', the container shares the pid namespace with its parent. If the container is a top level container, it will share the pid namespace with the agent. If the container is a nested container, it will share the pid namespace with its parent container. This field will be ignored if 'namespaces/pid' isolator is not enabled.
optional bool share_pid_namespace = 4;
public boolean hasSeccomp()
Represents Seccomp configuration, which is used for syscall filtering. This field is used to override the agent's default Seccomp configuration.
optional .mesos.SeccompInfo seccomp = 5;
hasSeccomp
in interface Protos.LinuxInfoOrBuilder
public Protos.SeccompInfo getSeccomp()
Represents Seccomp configuration, which is used for syscall filtering. This field is used to override the agent's default Seccomp configuration.
optional .mesos.SeccompInfo seccomp = 5;
getSeccomp
in interface Protos.LinuxInfoOrBuilder
public Protos.LinuxInfo.Builder setSeccomp(Protos.SeccompInfo value)
Represents Seccomp configuration, which is used for syscall filtering. This field is used to override the agent's default Seccomp configuration.
optional .mesos.SeccompInfo seccomp = 5;
public Protos.LinuxInfo.Builder setSeccomp(Protos.SeccompInfo.Builder builderForValue)
Represents Seccomp configuration, which is used for syscall filtering. This field is used to override the agent's default Seccomp configuration.
optional .mesos.SeccompInfo seccomp = 5;
public Protos.LinuxInfo.Builder mergeSeccomp(Protos.SeccompInfo value)
Represents Seccomp configuration, which is used for syscall filtering. This field is used to override the agent's default Seccomp configuration.
optional .mesos.SeccompInfo seccomp = 5;
public Protos.LinuxInfo.Builder clearSeccomp()
Represents Seccomp configuration, which is used for syscall filtering. This field is used to override the agent's default Seccomp configuration.
optional .mesos.SeccompInfo seccomp = 5;
public Protos.SeccompInfo.Builder getSeccompBuilder()
Represents Seccomp configuration, which is used for syscall filtering. This field is used to override the agent's default Seccomp configuration.
optional .mesos.SeccompInfo seccomp = 5;
public Protos.SeccompInfoOrBuilder getSeccompOrBuilder()
Represents Seccomp configuration, which is used for syscall filtering. This field is used to override the agent's default Seccomp configuration.
optional .mesos.SeccompInfo seccomp = 5;
getSeccompOrBuilder
in interface Protos.LinuxInfoOrBuilder
public boolean hasIpcMode()
There are two special cases that we need to handle for this field: 1. This field is not set: For backward compatibility we will keep the previous behavior: Top level container will have its own IPC namespace and nested container will share the IPC namespace from its parent container. If the container does not have its own rootfs, it will share agent's /dev/shm, otherwise it will have its own /dev/shm. 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored in this case. For backward compatibility, in the `filesystem/linux` isolator we will keep the previous behavior: Any containers will share IPC namespace from agent, and if the container does not have its own rootfs, it will also share agent's /dev/shm, otherwise it will have its own /dev/shm. TODO(qianzhang): Remove the support for the above two cases after the deprecation cycle (started in 1.9). Eventually we want a single isolator (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple /dev/shm from container's rootfs (i.e., whether a container will have its own /dev/shm depends on its `ipc_mode` instead of whether the container has its own rootfs).
optional .mesos.LinuxInfo.IpcMode ipc_mode = 6;
hasIpcMode
in interface Protos.LinuxInfoOrBuilder
public Protos.LinuxInfo.IpcMode getIpcMode()
There are two special cases that we need to handle for this field: 1. This field is not set: For backward compatibility we will keep the previous behavior: Top level container will have its own IPC namespace and nested container will share the IPC namespace from its parent container. If the container does not have its own rootfs, it will share agent's /dev/shm, otherwise it will have its own /dev/shm. 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored in this case. For backward compatibility, in the `filesystem/linux` isolator we will keep the previous behavior: Any containers will share IPC namespace from agent, and if the container does not have its own rootfs, it will also share agent's /dev/shm, otherwise it will have its own /dev/shm. TODO(qianzhang): Remove the support for the above two cases after the deprecation cycle (started in 1.9). Eventually we want a single isolator (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple /dev/shm from container's rootfs (i.e., whether a container will have its own /dev/shm depends on its `ipc_mode` instead of whether the container has its own rootfs).
optional .mesos.LinuxInfo.IpcMode ipc_mode = 6;
getIpcMode
in interface Protos.LinuxInfoOrBuilder
public Protos.LinuxInfo.Builder setIpcMode(Protos.LinuxInfo.IpcMode value)
There are two special cases that we need to handle for this field: 1. This field is not set: For backward compatibility we will keep the previous behavior: Top level container will have its own IPC namespace and nested container will share the IPC namespace from its parent container. If the container does not have its own rootfs, it will share agent's /dev/shm, otherwise it will have its own /dev/shm. 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored in this case. For backward compatibility, in the `filesystem/linux` isolator we will keep the previous behavior: Any containers will share IPC namespace from agent, and if the container does not have its own rootfs, it will also share agent's /dev/shm, otherwise it will have its own /dev/shm. TODO(qianzhang): Remove the support for the above two cases after the deprecation cycle (started in 1.9). Eventually we want a single isolator (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple /dev/shm from container's rootfs (i.e., whether a container will have its own /dev/shm depends on its `ipc_mode` instead of whether the container has its own rootfs).
optional .mesos.LinuxInfo.IpcMode ipc_mode = 6;
public Protos.LinuxInfo.Builder clearIpcMode()
There are two special cases that we need to handle for this field: 1. This field is not set: For backward compatibility we will keep the previous behavior: Top level container will have its own IPC namespace and nested container will share the IPC namespace from its parent container. If the container does not have its own rootfs, it will share agent's /dev/shm, otherwise it will have its own /dev/shm. 2. The `namespaces/ipc` isolator is not enabled: This field will be ignored in this case. For backward compatibility, in the `filesystem/linux` isolator we will keep the previous behavior: Any containers will share IPC namespace from agent, and if the container does not have its own rootfs, it will also share agent's /dev/shm, otherwise it will have its own /dev/shm. TODO(qianzhang): Remove the support for the above two cases after the deprecation cycle (started in 1.9). Eventually we want a single isolator (`namespaces/ipc`) to handle both IPC namespace and /dev/shm, and decouple /dev/shm from container's rootfs (i.e., whether a container will have its own /dev/shm depends on its `ipc_mode` instead of whether the container has its own rootfs).
optional .mesos.LinuxInfo.IpcMode ipc_mode = 6;
public boolean hasShmSize()
Size of /dev/shm in MB. If not set, the size of the /dev/shm for container will be value of the `--default_container_shm_size` agent flag, if that flag is not set too, the size of the /dev/shm will be half of the host RAM which is the default behavior of Linux. This field will be ignored for the container which shares /dev/shm from its parent and it will be also ignored for any containers if the `namespaces/ipc` isolator is not enabled. Please note that we only support setting this field when the `ipc_mode` field is set to `PRIVATE` otherwise the container launch will be rejected.
optional uint32 shm_size = 7;
hasShmSize
in interface Protos.LinuxInfoOrBuilder
public int getShmSize()
Size of /dev/shm in MB. If not set, the size of the /dev/shm for container will be value of the `--default_container_shm_size` agent flag, if that flag is not set too, the size of the /dev/shm will be half of the host RAM which is the default behavior of Linux. This field will be ignored for the container which shares /dev/shm from its parent and it will be also ignored for any containers if the `namespaces/ipc` isolator is not enabled. Please note that we only support setting this field when the `ipc_mode` field is set to `PRIVATE` otherwise the container launch will be rejected.
optional uint32 shm_size = 7;
getShmSize
in interface Protos.LinuxInfoOrBuilder
public Protos.LinuxInfo.Builder setShmSize(int value)
Size of /dev/shm in MB. If not set, the size of the /dev/shm for container will be value of the `--default_container_shm_size` agent flag, if that flag is not set too, the size of the /dev/shm will be half of the host RAM which is the default behavior of Linux. This field will be ignored for the container which shares /dev/shm from its parent and it will be also ignored for any containers if the `namespaces/ipc` isolator is not enabled. Please note that we only support setting this field when the `ipc_mode` field is set to `PRIVATE` otherwise the container launch will be rejected.
optional uint32 shm_size = 7;
public Protos.LinuxInfo.Builder clearShmSize()
Size of /dev/shm in MB. If not set, the size of the /dev/shm for container will be value of the `--default_container_shm_size` agent flag, if that flag is not set too, the size of the /dev/shm will be half of the host RAM which is the default behavior of Linux. This field will be ignored for the container which shares /dev/shm from its parent and it will be also ignored for any containers if the `namespaces/ipc` isolator is not enabled. Please note that we only support setting this field when the `ipc_mode` field is set to `PRIVATE` otherwise the container launch will be rejected.
optional uint32 shm_size = 7;
public boolean hasShareCgroups()
If set as 'true', the container will share the cgroups from its parent container, otherwise it will have its own cgroups created. Please note: 1. For tasks in a task group launched via the LAUNCH_GROUP operation, this field may be set to 'true' or 'false'. Resource limits may only be set for tasks in a task group when this field is set to 'false'. 2. For tasks launched via the LAUNCH operation, this field may only be set to 'true', and in this case resource limits may be set on these tasks. 3. For containers launched via the agent's LAUNCH_NESTED_CONTAINER_SESSION call, this field must be set to 'true'. 4. For executor containers, this field may only be set to 'false'. 5. All tasks under a single executor must share the same value of this field, if it is set. Note that this means that all tasks within a single task group must set this field to the same value.
optional bool share_cgroups = 8 [default = true];
hasShareCgroups
in interface Protos.LinuxInfoOrBuilder
public boolean getShareCgroups()
If set as 'true', the container will share the cgroups from its parent container, otherwise it will have its own cgroups created. Please note: 1. For tasks in a task group launched via the LAUNCH_GROUP operation, this field may be set to 'true' or 'false'. Resource limits may only be set for tasks in a task group when this field is set to 'false'. 2. For tasks launched via the LAUNCH operation, this field may only be set to 'true', and in this case resource limits may be set on these tasks. 3. For containers launched via the agent's LAUNCH_NESTED_CONTAINER_SESSION call, this field must be set to 'true'. 4. For executor containers, this field may only be set to 'false'. 5. All tasks under a single executor must share the same value of this field, if it is set. Note that this means that all tasks within a single task group must set this field to the same value.
optional bool share_cgroups = 8 [default = true];
getShareCgroups
in interface Protos.LinuxInfoOrBuilder
public Protos.LinuxInfo.Builder setShareCgroups(boolean value)
If set as 'true', the container will share the cgroups from its parent container, otherwise it will have its own cgroups created. Please note: 1. For tasks in a task group launched via the LAUNCH_GROUP operation, this field may be set to 'true' or 'false'. Resource limits may only be set for tasks in a task group when this field is set to 'false'. 2. For tasks launched via the LAUNCH operation, this field may only be set to 'true', and in this case resource limits may be set on these tasks. 3. For containers launched via the agent's LAUNCH_NESTED_CONTAINER_SESSION call, this field must be set to 'true'. 4. For executor containers, this field may only be set to 'false'. 5. All tasks under a single executor must share the same value of this field, if it is set. Note that this means that all tasks within a single task group must set this field to the same value.
optional bool share_cgroups = 8 [default = true];
public Protos.LinuxInfo.Builder clearShareCgroups()
If set as 'true', the container will share the cgroups from its parent container, otherwise it will have its own cgroups created. Please note: 1. For tasks in a task group launched via the LAUNCH_GROUP operation, this field may be set to 'true' or 'false'. Resource limits may only be set for tasks in a task group when this field is set to 'false'. 2. For tasks launched via the LAUNCH operation, this field may only be set to 'true', and in this case resource limits may be set on these tasks. 3. For containers launched via the agent's LAUNCH_NESTED_CONTAINER_SESSION call, this field must be set to 'true'. 4. For executor containers, this field may only be set to 'false'. 5. All tasks under a single executor must share the same value of this field, if it is set. Note that this means that all tasks within a single task group must set this field to the same value.
optional bool share_cgroups = 8 [default = true];
public final Protos.LinuxInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.LinuxInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)