This documentation is available to agents as Markdown at https://docs.synthesized.io/tdk/latest/user_guide/020_guides/advanced_workflows/workers.md. For the complete documentation index, see llms.txt.

Synthesized Workers

A worker runs workflows: it reads the input database, transforms the data and writes the output database. Workers connect to Governor and take queued runs, so you can place them next to your databases, in other networks, and add more to run more workflows at once.

Why use workers

  • Speed: a run is fastest when the worker is close to the databases, on the same machine or in the same network, because every query crosses that link.

  • Security: the database doesn’t need to be reachable from Governor’s network. Database contents stay with the worker: it sends Governor the status and logs of a run, not the data.

  • Scale: each worker runs its own workflows, so more workers run more workflows at once. See Multiple Workers.

How workers connect

The worker opens the connection to Governor’s API over gRPC, on port 50055 by default. Governor doesn’t connect to the worker, so the worker’s network only needs to allow that one outbound connection, and connections to its databases.

  • To change the port, set WORKER_GRPC_PORT on Governor’s API container.

  • A worker uses TLS by default. The Helm chart and the docker-compose.yml that ship with the platform set WORKER_USEPLAINTEXT to true, so their workers connect without TLS unless you change it. Use plaintext only on a trusted network, and see Worker–Governor mTLS to encrypt and authenticate the connection.

  • AGENT_* variables from older releases still work: they’re mapped to WORKER_* at startup. If both are set, WORKER_* wins.

The Helm chart and the Docker Compose files start workers for you. To run one elsewhere, start the worker image next to the databases.

Start a worker

docker run \
  -e WORKER_SERVERHOST=[server host] \ (1)
  -e WORKER_SERVERPORT=[server port] \ (2)
  -e WORKER_TAGS=[tags] \ (3)
  -e WORKER_DATASOURCES=[worker groups] \ (4)
  synthesizedio/synthesized-worker:<version>
1 The host name of Governor’s gRPC endpoint.
2 Its port: 443 through a TLS proxy or ingress, or 50055 when the worker connects to Governor directly on a local network.
3 Tags that identify this worker in Governor, separated by commas, for example tag1,tag2.
4 The worker groups this worker serves, separated by commas, or * for any group. See Worker groups.

Replace <version> with the release you run, such as v1.187.0, the same as Governor’s. Pin a release rather than latest, so upgrades happen only when you choose.

Worker groups

Worker groups decide which worker runs a workflow, for example so that each run goes to a worker that can reach its databases.

  • On each data source, set Worker group (optional) to the group of the workers that can reach that database. In the API, this is data_source_tag.

  • On each worker, WORKER_DATASOURCES lists the groups it serves. In the API, these are its data_source_tags.

  • A worker takes a run only when both the input and the output data sources are in one of its groups. A worker with * takes any run.

Runs go to a matching worker automatically. There’s no per-workflow setting to turn worker execution on or off.

Check the workers

Administration > Workers in Governor lists the connected workers, with their status, tags and groups. Older releases call this page Agents.

Administration > Workers page