master-zapier-plan-draft/packages/verae-nats-cluster
George Lambert 69e28af4d8
Some checks are pending
offline / test (push) Waiting to run
Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests.
LXC 511–513 (nats-a/b/c on 10.10.10.21–23, vmbr1 only) form cluster
verae with replicas=3. Host loopback 127.0.0.1:4222 is unchanged.
2026-09-11 23:47:42 -04:00
..
conf Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests. 2026-09-11 23:47:42 -04:00
scripts Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests. 2026-09-11 23:47:42 -04:00
systemd Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests. 2026-09-11 23:47:42 -04:00
cluster.env Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests. 2026-09-11 23:47:42 -04:00
NATS.md Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests. 2026-09-11 23:47:42 -04:00
package.json Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests. 2026-09-11 23:47:42 -04:00
README.md Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests. 2026-09-11 23:47:42 -04:00
SUMMARY.md Add a three-node NATS JetStream cluster on distinct Proxmox LXC guests. 2026-09-11 23:47:42 -04:00

verae-nats-cluster

Three distinct Proxmox LXC guests running NATS JetStream as a cluster, on the private bridge only. This is the test stand before the same layout moves to separate hardware.

Forgejo: https://git.georgelambert.org/marchon/verae-nats-cluster
SSH: ssh://git@git.georgelambert.org:2223/marchon/verae-nats-cluster.git

Guest VMID vmbr1 IP Client Cluster Monitor
nats-a 511 10.10.10.21 :4222 :6222 127.0.0.1:8222
nats-b 512 10.10.10.22 :4222 :6222 127.0.0.1:8222
nats-c 513 10.10.10.23 :4222 :6222 127.0.0.1:8222

Cluster name: verae. Client URL:

nats://10.10.10.21:4222,nats://10.10.10.22:4222,nats://10.10.10.23:4222

Not on vmbr0. Not 0.0.0.0. Host lab NATS on 127.0.0.1:4222 is left running so current keep/fleet/middleware stay up until you cut over.

# on NS1 (the Proxmox host)
git clone ssh://git@git.georgelambert.org:2223/marchon/verae-nats-cluster.git
cd verae-nats-cluster
bash scripts/create-cluster.sh
bash scripts/status.sh
bash scripts/test.sh

Cut over a worker later with NATS_URL=nats://10.10.10.21:4222,nats://10.10.10.22:4222,nats://10.10.10.23:4222 (for example px-worker). Zapier cloud never talks to NATS.

Hardware move: same three configs, three boxes, private NIC only — change IPs in cluster.env and conf/nats.conf.tmpl.