worker-distributed-setup
БесплатноБез исполняемых скриптовНе проверенRun multiple Data Exchange Workers on separate VMs or servers, using affinity so each worker only processes the workflow it belongs to.
от sfc-gh-dflippo★ 35 звёзд на GitHubОб этом скилле
Worker Distributed Setup
Use this path when you will run more than one Data Exchange Worker on separate hosts — for example to parallelize a large migration, or to migrate multiple source databases/servers concurrently, one worker per source.
The per-host install/start mechanics are identical to a single worker — this skill covers only what is different across multiple hosts: affinity (so workers don't steal each other's tasks) and per-host config.
Read first: Affinity Reference — what affinity is, the orchestrator claim rule, and why the orchestrator must stay null-affinity.
When you need affinity here
- Multiple workers, one source, sharing load — leave the explicit override unset. scai stamps the same stable project-default affinity on the workflow and every generated worker config, and the orchestrator hands each matching free worker the next task. Follow worker-local-setup/SKILL.md on each host and stop.
- Multiple sources (or you want strict isolation) — you must tag each source's workflow and its worker with a matching, non-null label, or a worker will claim another source's tasks and write to the wrong place. This is the rest of this skill.
Step 1 — Choose one affinity label per source
Pick a short, stable label per source database/server — a per-database label reads well, e.g.
mdx-salesnorth, mdx-finance. Confirm the set of labels with the user (one per worker/source).
Step 2 — Tag the workflow and the worker together
For each source, set the label with the plugin's single source of truth:
configure(affinity="<label>")
configure(affinity=…) persists the override. migrate_data/validate_data setup forwards it to
workflow generation, and data_infrastructure(mode="up") forwards it to local-worker generation, so
the two agree by construction (see the Affinity Reference for the two-carrier rule). Then generate that
source's workflow and worker config as usual.
- Local workers on each host → the generated
dew_configuration.tomlalready carries the label; copy it to the matching host (Step 3). - SPCS / Kubernetes workers →
configuretagged the workflow; set the same label asAGENT_AFFINITYin that worker's spec/manifest (the worker-spcs / worker-k8s-external skills do this). The workflow label andAGENT_AFFINITYmust match exactly.
Never set an orchestrator affinity. One orchestrator (null-affinity) serves all sources: it drains every workflow and routes each task to the worker whose label matches. Giving the orchestrator an affinity would starve every other source. See the Affinity Reference.
Step 3 — Per-host worker config + start
For each worker host:
- Ensure the host meets that source's prerequisites and can reach both that source and Snowflake — see worker-local-setup/SKILL.md Prerequisites.
- Place that source's
.scai/config/dew_configuration.tomlon the host (the one carrying its label from Step 2). Each host runs exactly one worker against one source config. - Start the worker on that host:
scai data worker start --local(see worker-local-setup Step 2). Repeat per host.
Cost note (relay to the user): each running worker polls Snowflake and can accrue warehouse credits even when idle. Stop workers per host when the wave's data work is done (teardown skill).
Step 4 — Verify
Confirm each host's worker connected to the orchestrator and is polling. If a worker reports it is running but its workflow shows "0 pending" / tasks never start, suspect an affinity mismatch (workflow label ≠ worker label, or an orchestrator was given an affinity) — see the data-migration Troubleshooting Reference and the Affinity Reference.
Done
All workers are running on their hosts. Return control to the parent skill, which runs Level 1 Data Doctor before proceeding.
Установить worker-distributed-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл worker-distributed-setup?
Run multiple Data Exchange Workers on separate VMs or servers, using affinity so each worker only processes the workflow it belongs to.
Как установить скилл worker-distributed-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл worker-distributed-setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic