mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-28 12:17:28 +08:00
1.7 KiB
1.7 KiB
name, description
| name | description |
|---|---|
| clawgo-node-child | Deploy and register a clawgo child node to a parent clawgo gateway without ad-hoc Python agents. Use when setting up sub-nodes, syncing provider settings from parent to child, enabling reverse tunnel fallback, and validating parent-dispatched nodes actions (describe/run/invoke/agent_task). |
Clawgo Node Child
Use built-in clawgo services only. Do not create node_agent.py.
Execute
- Run
scripts/deploy_child.shon the operator host with env vars:PARENT_HOSTPARENT_PASSCHILD_HOSTCHILD_PASS- Optional:
PARENT_GATEWAY_PORT(default18790),RELAY_PORT(default17789),CHILD_PORT(default7789),NODE_ID(defaultnode-child)
- Script will:
- Copy
/usr/local/bin/clawgofrom parent to child - Sync
providers+agents.defaultsinto child/root/.clawgo/provider-sync.json - Create child gateway config
/root/.clawgo/config.child.json - Install/start child service
clawgo-child-gateway.service - Install/start reverse tunnel service
clawgo-child-revtunnel.service - Register child node to parent
/nodes/register - Install child heartbeat cron (
/nodes/heartbeatevery minute)
- Copy
- Validate from parent:
- Health:
curl http://127.0.0.1:${RELAY_PORT}/health - Task dispatch:
clawgo agent+nodes action=agent_task node=<NODE_ID> mode=relay ...
- Health:
Notes
- Prefer direct endpoint if reachable; keep reverse tunnel as fallback.
- If parent and CLI visibility differ, ensure node state persistence is enabled (
memory/nodes-state.json). - If child service fails, check:
journalctl -u clawgo-child-gateway.service -n 100 --no-pagerjournalctl -u clawgo-child-revtunnel.service -n 100 --no-pager