|
Some checks are pending
offline / test (push) Waiting to run
NS1 is the Proxmox host. verae-proxmox creates LXC 510 (verae-px-worker 10.10.10.20 on vmbr1) with a private NATS proxy on 10.10.10.1:4222. verae-uptime GET-watches public doors; verae-backup snapshots SQLite and worm/tree data; verae-deploy does host-deps + checkout + npm ci. Fleet overlays/ns1 are checked in (start.sh no longer rewrites JSON). User systemd + linger for keep and fleet survive reboot. |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| systemd | ||
| test | ||
| NATS.md | ||
| package.json | ||
| README.md | ||
| SUMMARY.md | ||
| units.json | ||
| units.ns1.json | ||
| units.px-worker.json | ||
verae-keep
Host keep-alive for Verae workers. Restarts a unit that crashed unless the operator console paused or stopped it.
Forgejo: https://git.georgelambert.org/marchon/verae-keep
Two processes:
| Process | Port | Job |
|---|---|---|
node src/keep.js |
:3860 |
Probe units, spawn if intent is run |
node src/watch.js |
:3861 |
Restart keep if /health fails |
scripts/guard.sh |
— | Restart watch if watch exits |
Intent is run | pause | stop. Sources, newest wins:
POST /intent/:id(admin / API)~/verae-fleet-runtime/data/<instance>/intent.json(fleet writes this on start/pause/stop)- live
FLEET_URL/api/statuswhen set - unit
defaultIntent(run)
Pause: leave the process down or POST /pause. Stop: SIGTERM and do not spawn. Run: spawn if health fails.
NS1 (70.88.205.138)
KEEP_UNITS=$HOME/verae-keep/units.ns1.json KEEP_STATE=$HOME/verae-keep/data \
nohup bash scripts/guard.sh >/tmp/verae-keep-guard.out 2>&1 &
Or user systemd (survives reboot; do not also nohup guard.sh):
bash scripts/install-systemd.sh
systemctl --user start verae-keep-guard
Proxmox guest extra copies: KEEP_UNITS=units.px-worker.json.
Units: NATS (observe only), job-poller, webhook-deliver, archive-aggregator, archive-worm ×3, tree-node ×3.
API
GET /healthGET /statusPOST /intent/:id{"state":"pause|stop|run"}POST /reconcile