📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

Worker



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

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
ExamplesShows validated worker SQL examples

Notes

  • Option names are case-insensitive. TiDB Cloud Lake 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.
  • CREATE WORKER does not support a TAG clause.

Was this page helpful?