← Back to list
01Issue
FeatureOpenSwamp ClubPublic
AssigneesNone
Relationships
#4132 Docs: v3 serve team mode, followers forward writes and the advertise-address and ca-cert serve flags (swamp-club#4120)
Opened by stack72 · 10/29/2026
What changed
swamp-club#4120 (datastore rework Phase 5) changes v3 serve team mode: a follower node no longer refuses writes with serve_not_leader. It forwards each write to the leader with the caller's own credentials, and follows the leader's commit feed so its copy stays about 1 s fresh. Details: design/enablers/datastores.md, section "Team mode: forwarding and the commit feed", in swamp-club/swamp.
Pages to update
- how-to/swamp-serve/run-multi-instance-deployment.md
- On v3, every node behind the load balancer takes writes; a follower forwards them to the leader.
- Start each node with
--advertise-address <its own https origin>(for examplehttps://node-1.internal:9090), and with--ca-certwhen nodes use a private CA. - Run every node with
--trust-proxybehind a load balancer, or the leader rate-limits all callers behind a follower as that follower's single IP. - Keep the token-secrets key outside the datastore (
token-secretsblock in serve.yaml): with the co-located key, anyone who can read and write the datastore can sign a leader record and redirect forwarded credentials. Serve warns at start-up in that case. - Webhook endpoint config (routes, secrets) must match on every node: the leader verifies a delivery a follower forwards.
- A request lost while the leader changes gets
serve_not_leaderwithinFlight: true: it may already have run, so check before retrying.
- reference/swamp-serve/serve-flags.md:
--advertise-address <url>(envSWAMP_SERVE_ADVERTISE_ADDRESS, serve.yamladvertise-address: an http(s) origin, no path, query, credentials or wildcard host);--ca-cert <path>(envSWAMP_CA_CERT, serve.yamltls.ca-cert). - reference/swamp-serve/webhooks.md: in team mode a follower forwards deliveries unverified to the leader, which verifies them; endpoint config must match across nodes.
- reference/tls-and-proxies.md: node-to-node TLS uses
--ca-cert;X-Forwarded-Forpasses on from a follower only when it runs with--trust-proxy. - reference/swamp-serve/rest-api.md (or the WebSocket protocol reference):
commits.subscribe(from a cursor, filtered per caller asGET changes; ends withcommits_compactedorcommits_lagged) andcommits.head.
02Bog Flow
Open
No activity in this phase yet.
03Sludge Pulse
Sign in to post a ripple.