/api/configs/pool#
Pool config is used to configure compute pools for workload distribution and resource management.
Top-Level Configuration#
Top-level configuration is used to configure compute pools.
Field |
Type |
Description |
Default Values |
|---|---|---|---|
|
Dict[String, Pool] |
Dictionary of pool name to compute pool configurations. |
|
Pool#
Field |
Type |
Description |
Default Values |
|---|---|---|---|
|
String |
Unique identifier for the pool. |
Required field |
|
String |
Human-readable description of the pool and its purpose. |
|
|
Boolean |
Whether maintenance mode is enabled for the pool. |
|
|
String |
Name of the backend associated with this pool. |
|
|
String |
Default platform identifier to use for tasks in this pool. |
|
|
String |
Default execution timeout for tasks. Must be in the format of <integer><unit> (for example, 10m, 1h, 1d). |
Inherited from |
|
String |
Default queue timeout for tasks. Must be in the format of <integer><unit> (for example, 10m, 1h, 1d). |
Inherited from |
|
String |
Maximum allowed execution timeout for tasks. Must be in the format of <integer><unit> (for example, 10m, 1h, 1d). |
Inherited from |
|
String |
Maximum allowed queue timeout for tasks. Must be in the format of <integer><unit> (for example, 10m, 1h, 1d). |
Inherited from |
|
Dict[String, Integer] |
Default actions to perform when tasks exit with a specific exit code. The available actions are: COMPLETE, FAIL, RESCHEDULE. |
|
|
Dict[String, Resource Constraint] |
Resource allocation configuration for the pool. |
|
|
Dict[String, String] |
Default values for variables used in pod templates. |
|
|
Array[String] |
List of resource validation names applied to all platforms in the pool. Read more about resource validation in Resource Validation. |
|
|
Array[String] |
List of pod template names applied to all platforms in the pool. Read more about pod templates in Pod Templates. |
|
|
Array[String] |
List of group template names applied to all task groups in the pool. These Kubernetes resources are created before the group’s pods. Read more about group templates in Group Templates. |
|
|
Dict[String, Platform] |
Dictionary of platform configurations available in this pool. |
|
|
Array[TopologyKey] |
Ordered list of topology levels available in this pool, from coarsest to finest granularity. Enables topology-aware scheduling when non-empty. Only supported on pools backed by KAI Scheduler v0.12 or later. See Topology-Aware Scheduling for details. |
|
Resource Constraint#
For more explanations and examples, see Scheduler Configuration.
Field |
Type |
Description |
Default Values |
|---|---|---|---|
|
Integer |
Guaranteed minimum number of resources allocated to the pool for non-preemptible workflows. |
|
|
Integer |
Maximum number of resources that can be allocated to the pool. |
|
|
Integer |
Scheduling weight for resource allocation priority relative to other pools. |
|
Warning
To set up priority and preemption for pools sharing the same resource nodes, admins need to configure ALL pools with the guarantee, weight, and maximum settings. Otherwise, preemption will not be enabled across pools (e.g. Pool A cannot preempt a workflow from Pool B).
TopologyKey#
Field |
Type |
Description |
Default Values |
|---|---|---|---|
|
String |
User-friendly name for this topology level. This is the name users reference in their
workflow spec |
Required field |
|
String |
The Kubernetes node label used to identify nodes at this topology level
(e.g., |
Required field |
Platform#
Field |
Type |
Description |
Default Values |
|---|---|---|---|
|
String |
Human-readable description of the platform. |
|
|
Boolean |
Whether tasks can use host networking. |
|
|
Boolean |
Whether privileged containers are allowed. |
|
|
Array[String] |
List of mount paths that are allowed for tasks. |
|
|
Array[String] |
Default mount configurations applied to tasks. |
|
|
Dict[String, String] |
Default values for variables used in pod templates. If the variable is defined in the pool setting, this will override the pool setting. |
|
|
Array[String] |
Platform-specific resource validation rules. Read more about resource validation in Resource Validation. |
|
|
Array[String] |
Pod template overrides specific to this platform. Read more about pod templates in Pod Templates. |
|