Skip to main content

CLI reference

Urutau ships four binaries from one image (build/Dockerfile):

BinaryRoleTypical use
urutauCollapsed mode: reader + worker + sink in one processA laptop, a single VM, make build
urutau-coordinatorReads the source, runs the DBLog snapshot, serves workersDistributed mode
urutau-workerOwns one partition's writes to the sinkDistributed mode
urutau-operatorReconciles CDCPipeline CRs on KubernetesDeploy on Kubernetes

All three pipeline binaries read the same YAML spec — see Pipeline specification — and share the logging flags:

  • --log-level — debug | info | warn | error (default info)
  • --log-format — text | json (default text)

--file/-f defaults to pipeline.yaml in the working directory.

urutau​

The collapsed CLI. Two subcommands: run and version.

urutau run​

Runs the whole pipeline in one process: DBLog snapshot, then live streaming, writing straight to the sink. This is what the Quickstart uses.

FlagDefaultMeaning
-f, --filepipeline.yamlPipeline spec (inline YAML)
--server-id1101MySQL replication server id. The spec's source.serverId wins when set
--chunk-size10000DBLog snapshot chunk size (rows per SELECT)
--max-parallel-chunks0Concurrent chunk SELECTs during snapshot (0 = serial)
--window-timeout5mDBLog window timeout (pathology detector)
--eventlog(off)s3://bucket/prefix JSONL audit trail
--plugin(none)Path to a Go plugin (.so); repeatable (CGO build only — not in the released static binaries)
--source-plugin(none)External source plugin binary (Arrow Flight)
--sink-plugin(none)External sink plugin binary (Arrow Flight)

urutau version​

Prints the binary's version, commit, and build date.

urutau-coordinator​

The coordinator half of distributed mode. It owns the source connection, runs the snapshot, routes rows to workers over Arrow Flight, commits staged Iceberg cycles, and supervises worker health. It is a long-lived server, not a one-shot.

urutau-coordinator run​

FlagDefaultMeaning
-f, --filepipeline.yamlPipeline spec
--listen:50051gRPC + Flight listen address
--metrics-addr(off)Serve /metrics and /statusz on this address
--tls-cert(off)Server certificate for the control plane (mTLS)
--tls-key(off)Server private key (mTLS)
--tls-ca(off)CA that signs worker client certs (mTLS)
--allow-insecure-control-planefalseRun the control plane plaintext (explicit opt-out of the fail-closed default)
--server-id1101MySQL replication server id (spec wins)
--chunk-size10000Snapshot chunk size
--max-parallel-chunks0Concurrent chunk SELECTs (0 = serial)
--window-timeout5mDBLog window timeout
--flow-total-bytes536870912 (512 MiB)Process-wide ceiling on unacked batch bytes in flight
--flow-per-worker-min-mi16Per-worker minimum share of the flow budget (MiB)
--wait-worker6mHow long to wait for every expected worker session. Keep it above the kubelet's 5-minute crash backoff: a worker restarting after it lost the coordinator can take that long to come back
--ack-timeout30sA worker is stale without an ack for this long
--max-consecutive-crashes3A worker crashing this many times in a row without delivering what it owed ends the job
--worker-delivery-timeout5mA worker owing work that delivers none of it for this long ends the job
--max-resets5Deprecated, ignored
--reset-window15mDeprecated, ignored
--eventlog(off)s3://bucket/prefix audit trail
--eventlog-endpoint(AWS)S3 API endpoint of the audit trail store (MinIO/RustFS, path-style)
--checkpoint(off)s3://bucket/prefix async position manifests
--checkpoint-interval10Checkpoint write interval (seconds)
--plugin(none)Go plugin path; repeatable (CGO build only — not in the released static binaries)

mTLS: set all three of --tls-cert, --tls-key, --tls-ca, or none. With none the control plane is plaintext, and the coordinator refuses to boot — the Flight assignment carries the source DSN, so plaintext leaks credentials on the wire. Pass --allow-insecure-control-plane to accept plaintext explicitly (it then warns at startup instead of failing). Always use mTLS outside a trusted network. See Distributed mode.

urutau-worker​

The worker half. It connects to a coordinator, receives an assignment (which table, which partition, which source DSN), and owns the writes to the sink for its partition.

urutau-worker run​

FlagDefaultMeaning
--coordinator127.0.0.1:50051Coordinator address (host:port)
--name$HOSTNAMEWorker name (must match the coordinator's expectation)
--catalog-uri$URUTAU_SINK_URI or http://localhost:8181/api/catalogIceberg REST catalog URI
--warehouse$URUTAU_SINK_WAREHOUSE or quickstart_catalogCatalog warehouse name
--client-id$URUTAU_SINK_CLIENT_IDCatalog OAuth2 client id
--client-secret$URUTAU_SINK_CLIENT_SECRETCatalog OAuth2 client secret
--scope$URUTAU_SINK_SCOPE or PRINCIPAL_ROLE:ALLCatalog OAuth2 scope
--namespacerawFallback namespace for bare targets
--max-rows10000Flush the batch once this many rows are buffered: at most one Iceberg commit per this many rows (--max-interval bounds the latency)
--max-bytes-mi32Flush the batch once its buffered rows hold this many MiB: rows carry payloads, and a row count alone does not bound memory
--max-interval2sFlush cadence
--metrics-addr(off)Serve /metrics on this address
--plugin(none)Go plugin path; repeatable (CGO build only — not in the released static binaries)
--tls-cert / --tls-key / --tls-ca(off)Client cert for the control plane (mTLS)
--maintenancefalseRun as an ephemeral maintenance worker: connect, run the coordinator's maintenance assignment once, then exit

The catalog settings fall back to the URUTAU_SINK_* environment, which is how the Kubernetes operator passes Secret-backed credentials to a worker (it cannot inline a Secret's value into a Pod spec). A flag always wins over the environment. A worker owns its own catalog access, so these are not optional in practice — but an unauthenticated catalog is legal, so the flags are not required; a bad catalog fails when the worker opens it.

urutau-operator​

The Kubernetes operator. Plain flags (no subcommands); see Deploy on Kubernetes.

FlagDefaultMeaning
--coordinator-image(required)Image for coordinator + worker Pods (the operator's own, by convention)
--metrics-bind-address:8080Metrics endpoint
--health-probe-bind-address:8081/healthz + /readyz endpoint
--enable-webhooktrueServe the validating admission webhook
--field-managerurutau-operatorServer-Side Apply field manager — the name the operator applies objects as. Must be unique per controller managing the same objects.
--watch-namespaces(all)Comma-separated namespaces to watch; scopes the cache (see multi-tenant install)
--keda-prometheus-address(off)Prometheus server address for KEDA ScaledObjects; empty disables worker autoscaling
--keda-threshold30Per-replica backlog target (outstanding batches) for KEDA ScaledObjects

The operator also accepts the controller-runtime zap flags (--zap-log-level, --zap-encoder, --zap-devel, …).

urutau-history-server​

A standalone read-only API over terminated runs, backed by the eventlog trail in S3. It needs no Kubernetes RBAC — only read-only object-storage credentials. See History server.

urutau-history-server serve​

FlagDefaultMeaning
--root(required)Eventlog root: s3://<bucket>/<prefix>
--listen:8080HTTP listen address
--regionus-east-1S3 region
--endpoint(AWS default)S3 endpoint override (MinIO-style path addressing)
--access-key / --secret-key(AWS chain)Static S3 credentials
--page-limit1000Max events per page
--retained-runs32How many terminated runs' trails stay cached in memory