Pool settings
A pool decides which machines Multicloud starts for you.
You can narrow the clouds, regions and machine sizes, and you can set how fast the pool grows and shrinks.
This page shows each task from your side: what you want, where to click, which mctl command to run and which request the API receives.
Who can change settings
An organization owner can change settings. An API key with write access can change them too. Members can read them. In the Console, a member sees the same page with every field locked.
The three layers
A pool gets its places to run from three layers. Each layer can only narrow the layer above it.
- Your cloud accounts give the clouds and regions.
- The pool narrows them. A setting of the pool never adds a cloud your accounts do not allow.
- A pod can narrow them further with the
multicloud.io/cloud-providerannotation. A pod never widens what the pool allows.
A pool with no location setting uses every region that its cloud accounts allow.
In the Console
- Open Pools, select the pool, and open the Settings tab.
- The page groups the settings: Size and hardware, Location, GPU, Cost and limits, Scaling and headroom, Consolidation and disruption, and Advanced (settings that Multicloud manages for you; you can see them, not change them).
- Each field shows its unit, its default, and a chip: Default, Set (you set a value) or Changed (not saved yet).
- Change the fields you need. A value outside the allowed range shows an error under the field.
- The bar at the bottom counts your changes. Select Review changes.
- The review shows each change from its current value to its new value, with warnings, for example for nodes that run all the time. Select the save button, which counts your changes (for example Save 2 changes), or Back to editing.
Reset to default next to a field puts the default of the pool type in the field. Like every change, it is saved only after Review changes and the save button. Maximum nodes and Maximum cost per hour are hard limits: they have no reset. Limits and timing apply at once after the save. Size and hardware settings apply to new nodes. Running nodes keep their size.
Command line and API
With mctl, use mctl pool update POOL to change and mctl pool show POOL to read.
mctl pool show prints each setting with its value, or default: X when you have not set it.
In mctl:
--set NAME=VALUEsets one setting. A value is JSON when it parses as JSON, otherwise text. Repeat the option for more settings.--reset NAMEgoes back to the default of that setting.--settings JSONor--settings @file.jsongives many settings at once.- Fields of the resource grant of an Extend pool are written
grant.cpu.
The request is PATCH /api/v1/orgs/<org-id>/pools/<pool-id>.
A setting that you leave out keeps its value.
Every number is checked before anything changes, and the answer names the wrong setting.
Stories
Keep my pool in the EU
Dana must keep the work of the pool in European regions.
- Console: in Location, select EU only. The line under the clouds shows how many regions are left. A cloud with no European region is turned off. If no cloud is left, the field shows an error and you cannot save. The quick choices are available after the list of regions has loaded.
- Command:
mctl pool update ci --clouds '[{"type":"AWS","regions":["eu-west-1","eu-central-1"]}]' - Request body:
{"clouds": [{"type": "AWS", "regions": ["eu-west-1", "eu-central-1"]}]}
To block a few regions instead, send exclude_regions.
To use no region limit again, send "regions": null.
To stop using one cloud, send {"type": "AWS", "use": false}.
The last cloud in use cannot be turned off.
The pool must keep at least one cloud.
Use bigger nodes
Dana wants nodes with at least 8 vCPUs and 32 GB of memory.
- Console: in Size and hardware, enter 8 in Minimum vCPUs per node and 32 in Minimum memory per node.
- Command:
mctl pool update ci --set min_vcpus=8 --set min_memory_gb=32 - Request body:
{"settings": {"min_vcpus": 8, "min_memory_gb": 32}}
The minimum cannot be larger than the maximum. The API checks the pair against the value that is already stored.
Give my Extend pool GPUs
Dana wants two GPUs per node, with 40 GB on each GPU.
- Console (Extend pools; in this example the pool is called
burst): in GPU, turn on Nodes need a GPU, then enter 2 in GPUs per node and 40 in Memory per GPU.
On a CI pool, each runner class sets its GPU. To run jobs on a GPU, check a class with a GPU under Runner classes.
- Command:
mctl pool update burst --set min_accelerator_count=2 --set min_accelerator_memory_gb=40 - Request body:
{"settings": {"min_accelerator_count": 2, "min_accelerator_memory_gb": 40}}
Use accelerator_names to ask for named GPUs.
Each name must exist in the Multicloud catalog.
Set min_accelerator_fraction to 0 to allow GPU slices.
Stop paying for idle nodes sooner
Dana wants an idle node to leave after 5 minutes.
- Console: in Scaling and headroom, enter 5 in Remove an idle node after.
- Command:
mctl pool update ci --set idle_reap_minutes=5 - Request body:
{"settings": {"idle_reap_minutes": 5}}
To limit the size of the pool, set Maximum nodes in the Console, or max_servers with mctl pool update ci --max-servers 10.
The body is {"max_servers": 10}.
Go back to a default
Dana wants to undo a setting.
- Console: select Reset to default next to the field, then Review changes and the save button.
- Command:
mctl pool update ci --reset idle_reap_minutes - Request body:
{"settings": {"idle_reap_minutes": null}}
A null inside settings gives the default of the pool type.
A null at the top level of the body is refused.
Warning: nodes kept as a floor
min_servers keeps that many nodes alive all the time.
These nodes run and cost money even when no work is waiting.
They also ignore the max-risk annotation of pods: a kept node is chosen once and stays.
Set min_servers only when you need a warm pool.
All settings
"CI" is a CI pool, "Extend" is an Extend pool. Memory and storage values are in GB. A setting with no default means that Multicloud chooses.
| Setting | Pools | Unit | Allowed values | Default |
|---|---|---|---|---|
min_memory_gb |
both | GB | 0 to 4096, not above max_memory_gb |
Extend 3.91, CI none |
max_memory_gb |
both | GB | 0.5 to 4096, not below min_memory_gb |
none (four times the minimum) |
min_vcpus |
both | vCPUs | 0 to 448, not above max_vcpus |
none |
max_vcpus |
both | vCPUs | 1 to 448 | none |
min_multi_core_benchmark |
both | score | 0 to 2000000, not above the maximum | none |
max_multi_core_benchmark |
both | score | 1 to 2000000 | none |
min_single_core_benchmark |
both | score | 0 to 100000 | none |
min_storage_gb |
both | GB | whole number, 8 to 16384 | Extend 20, CI cloud default |
processor_architecture |
Extend | name | x86_64 or arm64 |
any |
instance_types |
both | names | 1 to 50 names that exist in the catalog | none |
excluded_instance_types |
both | names | 1 to 50 names | none |
accelerator_names |
Extend | names | 1 to 20 names that exist in the catalog | none |
excluded_accelerator_names |
Extend | names | 1 to 20 names | none |
min_accelerator_count |
Extend | GPUs | 1 to 16 | none |
min_accelerator_memory_gb |
Extend | GB per GPU | 0 to 1024 | none |
min_total_accelerator_memory_gb |
Extend | GB | 0 to 4096 | none |
min_accelerator_fraction |
Extend | 0 or 1 | 0 allows GPU slices, 1 needs whole GPUs |
1 |
max_risk |
Extend | level | 0 to 5 | 2 |
spot_only |
Extend | yes or no | with max_risk 0, spot_only true is refused |
false |
min_servers |
both | nodes | 0 to 100, not above max_servers |
Extend 1, CI 0 |
idle_reap_minutes |
both | minutes | 1 to 1440 | Extend 10, CI 15 |
scale_out_debounce_seconds |
both | seconds | 0 to 600 | 30 |
scale_out_min_pending_seconds |
both | seconds | 0 to 600 | 45 |
pressure_sustained_seconds |
both | seconds | 0 to 1800 | 120 |
min_zones |
both | zones | 0 to 6 | none |
affinity |
both | name | CLOUD or CLOUD_AND_REGION |
none |
grant.cpu |
Extend | vCPUs | above 0 to 512, not above grant.max_cpu when that is set |
4 |
grant.memory_gb |
Extend | GB | above 0 to 4096, not above grant.max_memory_gb when that is set |
8 |
grant.pods |
Extend | pods | 1 to 5000 | 110 |
grant.ephemeral_storage_gb |
Extend | GB | above 0 to 16384 | 20 |
grant.max_cpu |
Extend | vCPUs | 0 to 100000 (0 means no cap) | none |
grant.max_memory_gb |
Extend | GB | 0 to 1000000 (0 means no cap) | none |
grant.pods_per_node |
Extend | pods | 1 to 250 | 110 |
Two limits sit next to the settings, in the request itself:
| Field | Pools | Allowed values |
|---|---|---|
max_servers |
both | whole number, 1 to 100 |
max_cost_per_hour |
both | above 0, up to 10000 (USD per hour) |
CI pools also take spot_policy, cpu_units_requests and classes in the request.
Extend pools do not.
Raising capacity
A change that raises capacity (max_servers, min_servers, max_cost_per_hour) needs a paid or waived organization.
Otherwise the API answers 402 and changes nothing.