Driver subset
Supported keywords:
- access
- comment
- devices_from
- parallel
- pg_blkio_weight
- pg_cpu_quota
- pg_cpu_shares
- pg_cpus
- pg_mem_limit
- pg_mem_oom_control
- pg_mem_swappiness
- pg_mems
- pg_vmem_limit
- pool
- provision
- provision_timeout
- size
- start_timeout
- stat_timeout
- status_timeout
- stop_timeout
- sync_timeout
- timeout
- type
- unprovision
- unprovision_timeout
Keyword access
required: false
scopable: true
candidates: rwo, roo, rwx, rox
default: rwo
Description:
The access mode of the volume.
rwois Read Write Onceroois Read Only Oncerwxis Read Write Manyroxis Read Only Many
rox and rwx modes are served by flex volume services.
Keyword comment
required: false
scopable: false
Description:
Comments help the users understand the role of the object and its resources.
Keyword devices_from
required: false
scopable: false
convert: list
Description:
The list of resources that contribute their exposed devices to the volume exposed devices.
If not specified, only the last disk contributes.
Keyword parallel
required: false
scopable: true
convert: bool
Description:
If set to true, actions are executed in parallel on the resource of this subset.
For example, a service with:
[app#1]
start = /bin/true
[app#2]
start = /bin/true
[app#3]
start = /bin/true
subset = workers
[app#4]
start = /bin/true
subset = workers
[subset#app:workers]
parallel = true
Would have a start sequence like:
app#1 ---> app#2 -+-> app#3
`-> app#4
Keyword pg_blkio_weight
required: false
scopable: true
Example:
pg_blkio_weight=50
Description:
Block IO relative weight. Value: between 10 and 1000.
The kernel default is 1000.
Keyword pg_cpu_quota
required: false
scopable: true
Example:
pg_cpu_quota=50%@all
Description:
The kernel default value is used, which usually is 1024 shares.
In a cpu-bound situation, this setting ensures the service does not use more than its share of cpu resource. The actual percentile depends on shares allowed to other services.
Keyword pg_cpu_shares
required: false
scopable: true
convert: size
Example:
pg_cpu_shares=512
Description:
The kernel default value is used, which usually is 1024 shares.
In a cpu-bound situation, this setting ensures the service does not use more than its share of cpu resource. The actual percentile depends on shares allowed to other services.
Keyword pg_cpus
required: false
scopable: true
depends: create_pg=true
Example:
pg_cpus=0-2
Description:
Allow service process to bind only the specified cpus.
Cpus are specified as list or range : 0,1,2 or 0-2.
Keyword pg_mem_limit
required: false
scopable: true
convert: size
Example:
pg_mem_limit=512m
Description:
Ensures the service does not use more than specified memory (in bytes).
The Out-Of-Memory killer is triggered in case of tresspassing.
Keyword pg_mem_oom_control
required: false
scopable: true
Example:
pg_mem_oom_control=1
Description:
A flag (0 or 1) that enables or disables the Out of Memory killer for the processes of the group.
- If enabled (0), tasks that attempt to consume more memory than they are allowed are immediately killed by the OOM killer.
- If disabled (1), tasks are allowed to continue to try allocating memory, stressing the system.
The OOM killer is enabled by default in every cgroup using the memory controller.
Keyword pg_mem_swappiness
required: false
scopable: true
Example:
pg_mem_swappiness=40
Description:
Set a swappiness percentile value for the process group.
Keyword pg_mems
required: false
scopable: true
Example:
pg_mems=0-2
Description:
Allow service process to bind only the specified memory nodes.
Memory nodes are specified as list or range : 0,1,2 or 0-2.
Keyword pg_vmem_limit
required: false
scopable: true
convert: size
Example:
pg_vmem_limit=1g
Description:
Ensures the service does not use more than specified memory+swap (in bytes).
The Out-Of-Memory killer is triggered in case of tresspassing.
The specified value must be greater than pg_mem_limit.
Keyword pool
required: false
scopable: true
Description:
The name of the pool this volume was allocated from.
Keyword provision
required: false
scopable: true
default: true
convert: bool
Description:
Set in the default section, provision=false cancels the instance provision action before looping over the resources.
In this case, the action returns an error.
This acts like a glass the user has to break to access the provision button.
Keyword provision_timeout
required: false
scopable: true
convert: duration
Example:
provision_timeout=1m30s
Description:
Wait for <duration> before declaring the action a failure.
Takes precedence over timeout.
Keyword size
required: false
scopable: true
convert: size
Description:
The size used by this volume in its pool.
Keyword start_timeout
required: false
scopable: true
convert: duration
Example:
start_timeout=1m30s
Description:
Wait for <duration> before declaring the action a failure.
Takes precedence over timeout.
Keyword stat_timeout
required: false
scopable: true
convert: duration
Description:
The fs resources status evaluation includes a stat syscall test. This keyword defines the maximum wait time for those stat calls to respond.
When expired, the resource status is degraded is to warn, which can trigger a monitor action (reboot or crash the node) if the resource is monitored.
Keyword status_timeout
required: false
scopable: true
default: 1m
convert: duration
Example:
status_timeout=10s
Description:
The maximum duration of the instance status evaluation.
For example, the total start action duration is constrained by different timeouts:
-
the
start_timeoutLimiting the start action duration. -
the
stop_timeoutLimiting the start rollback duration triggered by start errors. -
the
status_timeoutLimiting the post-start instance status evaluation duration.
Keyword stop_timeout
required: false
scopable: true
convert: duration
Example:
stop_timeout=1m30s
Description:
Wait for <duration> before declaring the action a failure.
Takes precedence over timeout.
Keyword sync_timeout
required: false
scopable: true
convert: duration
Example:
sync_timeout=1m30s
Description:
Wait for <duration> before declaring the action a failure.
Takes precedence over timeout.
Keyword timeout
required: false
scopable: true
default: 1h
convert: duration
Example:
timeout=2h
Description:
Wait for <duration> before declaring a state-changing action a failure.
A per-action <action>_timeout can override this value.
Keyword type
required: false
scopable: false
Description:
The resource driver name.
Keyword unprovision
required: false
scopable: true
default: true
convert: bool
Description:
Set in the default section, unprovision=false cancels the instance provision action before looping over the resources.
In this case, the action returns an error.
This acts like a glass the user has to break to access the unprovision button.
Keyword unprovision_timeout
required: false
scopable: true
convert: duration
Example:
unprovision_timeout=1m30s
Description:
Wait for <duration> before declaring the action a failure.
Takes precedence over timeout.