duckstring duck
Commands for where each Pond runs and what compute it gets. See Cloud Compute for the concepts.
A Pond's effective settings are, for each setting, the operator override set with duck set if there is one, otherwise the value declared in pond.toml, otherwise the Catchment's default. Remote compute only takes effect when cloud compute is enabled on the Catchment (see catchment settings); otherwise every Pond runs on the Catchment's machine.
show
duckstring duck show [POND] [-m N]
Shows a Pond's effective compute settings and where each comes from. Without POND, shows every Pond and the Catchment defaults.
set
duckstring duck set POND [-m N] [options] [--clear]
Sets an override for a Pond. Only the options given change. Overrides persist across redeploys.
| Option | Description |
|---|---|
--duck | Where the Pond runs: catchment (the Catchment's own machine), a pool name, or dedicated (its own machine). A pool that doesn't exist falls back to catchment. |
--instance-type | The machine type for a dedicated Duck on a VM backend: an EC2 instance type, an Azure VM size or a Compute Engine machine type. |
--auto-stop / --no-auto-stop | Whether a dedicated machine stops after each run. |
--flock | off, upgrade or always. See [flock]. |
--engine | The Flock engine: motherduck, motherduck/<profile>, starrocks, databricks, bigquery or athena. |
--oom | fail_up or fail. |
--accept | Known differences a SQL engine may have, comma-separated (float_order, half_rounding), or none. See [flock]. |
--clear | Remove the Pond's override, reverting to pond.toml and the Catchment defaults. |
pool
Pools are named sizes of remote compute, referred to by duck = "name" in pond.toml or duck set --duck name. Four built-in pools are always available without defining them, sized for the Catchment's cloud and run on its container backend (Fargate, Container Apps or Cloud Run). Each Pond using a built-in pool gets its own Duck of that size:
| Pool | AWS | Azure | Google Cloud |
|---|---|---|---|
S | 0.5 vCPU, 2 GiB | 0.5 vCPU, 1 GiB | 1 vCPU, 2 GiB |
M | 1 vCPU, 4 GiB | 1 vCPU, 2 GiB | 1 vCPU, 4 GiB |
L | 2 vCPU, 8 GiB | 2 vCPU, 4 GiB | 2 vCPU, 8 GiB |
XL | 4 vCPU, 16 GiB | 4 vCPU, 8 GiB | 4 vCPU, 16 GiB |
pool ls
duckstring duck pool ls
Lists the built-in and defined pools.
pool add
duckstring duck pool add NAME [--provider BACKEND] [options]
Creates or updates a pool. The Ponds assigned to a defined pool share one machine of its size, so they can read each other's output locally. A Pond that needs its own machine can use a built-in pool or --duck dedicated.
| Option | Description |
|---|---|
--provider | The backend the pool runs on, which must be on the Catchment's cloud: fargate or ec2 on AWS, containerapps or azurevm on Azure, cloudrun or gce on Google Cloud. local runs the pool's machine on the Catchment's own host, which is useful for testing. Defaults to the cloud's container backend (fargate, containerapps or cloudrun). A VM backend suits sizes, GPUs or machine types the container backend doesn't offer. |
--cpu | CPU for a container backend, in 1024ths of a vCPU; 1024 is one vCPU. |
--memory | Memory for a container backend, in MiB. |
--instance-type, -t | Machine type for a VM backend: an EC2 instance type, an Azure VM size or a Compute Engine machine type. |
--region | AWS region for an EC2 pool. Defaults to the Catchment's. |
--min, --max, --keep-warm, --idle-timeout | Scaling settings. They're stored with the pool, but automatic scaling isn't implemented yet. |
pool rm
duckstring duck pool rm NAME
Removes a pool. Ponds that referred to it run on the Catchment's machine instead.