Skip to main content

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.

OptionDescription
--duckWhere 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-typeThe 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-stopWhether a dedicated machine stops after each run.
--flockoff, upgrade or always. See [flock].
--engineThe Flock engine: motherduck, motherduck/<profile>, starrocks, databricks, bigquery or athena.
--oomfail_up or fail.
--acceptKnown differences a SQL engine may have, comma-separated (float_order, half_rounding), or none. See [flock].
--clearRemove 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:

PoolAWSAzureGoogle Cloud
S0.5 vCPU, 2 GiB0.5 vCPU, 1 GiB1 vCPU, 2 GiB
M1 vCPU, 4 GiB1 vCPU, 2 GiB1 vCPU, 4 GiB
L2 vCPU, 8 GiB2 vCPU, 4 GiB2 vCPU, 8 GiB
XL4 vCPU, 16 GiB4 vCPU, 8 GiB4 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.

OptionDescription
--providerThe 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.
--cpuCPU for a container backend, in 1024ths of a vCPU; 1024 is one vCPU.
--memoryMemory for a container backend, in MiB.
--instance-type, -tMachine type for a VM backend: an EC2 instance type, an Azure VM size or a Compute Engine machine type.
--regionAWS region for an EC2 pool. Defaults to the Catchment's.
--min, --max, --keep-warm, --idle-timeoutScaling 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.