Skip to main content

Worker

Worker-related SQL commands for deployments with cloud control enabled.

note

Worker management commands require cloud control. If cloud_control_grpc_server_address is not configured, Databend returns a CloudControlNotEnabled error when you run these commands.

Supported Statements

StatementPurpose
CREATE WORKERCreates a worker with an optional key-value option list
ALTER WORKERUpdates worker tags or options, or changes worker state
DROP WORKERDeletes a worker
SHOW WORKERSLists workers in the current tenant

Command Reference

CommandDescription
CREATE WORKERCreates a worker definition
ALTER WORKERModifies worker tags, options, or state
DROP WORKERRemoves a worker definition
SHOW WORKERSLists workers and their metadata

Notes

  • Option names are case-insensitive. Databend normalizes them to lowercase during planning.
  • SHOW WORKERS returns the columns name, tags, options, created_at, and updated_at.
  • ALTER WORKER supports SET TAG, UNSET TAG, SET, UNSET, SUSPEND, and RESUME.
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today