You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Share private-service traffic across healthy servers #1086
Allow several instances of a private service on the same host to serve customers through one address. Spread individual UDP requests across them and keep each TCP connection with the server that accepted it.
Why it matters
Customers should benefit from redundant servers without depending on how their application retries different addresses. Existing configurations that do not enable sharing must continue to work.
Acceptance criteria
A service with two healthy servers on one host is accepted, and both receive traffic.
A server can signal that it is stopping and finish its work without causing failed requests; removing it does not disturb traffic on other servers.
A crashed server stops receiving new requests within the documented health-check detection time.
Operators can see which servers are considered healthy and when they recover.
The description now explains the problem and expected outcome in plain language. The original report is preserved below for the observations, diagnostics, and implementation details behind this work. It describes the situation when the issue was reported; later comments and the issue state record subsequent progress.
Original report and engineering evidence
Summary
A private service endpoint can have only one producer on each node. If an endpoint selects two producers on the same node, Galactic rejects the endpoint, and consumers on that node lose the service.
Why it matters
Some services run two or more replicas on each node, so that a rollout or a crash doesn't interrupt consumers. Private DNS is one example. Today each replica needs its own consumer address, and each client decides how to use the addresses. Many clients send almost all requests to the first address and use the second only after a timeout. As a result, one replica does most of the work, and problems with the other replica go unnoticed. Rollouts still interrupt clients: in one measured rollout, the first address failed lookups for about 75 seconds.
What we want
Consumers reach every healthy producer on their node through one address.
UDP requests spread across the producers. A TCP connection stays with one producer for its whole life.
Galactic stops sending new traffic to a producer that fails its health check, and starts again after the producer passes.
When a producer leaves, only its own traffic moves. Traffic on the other producers isn't affected.
Endpoints that don't turn this on behave as they do today.
Acceptance criteria
An endpoint with two healthy producers on one node is accepted, and both producers receive traffic.
A producer that fails its health check before it stops causes no failed requests.
A producer that crashes stops receiving new traffic within the health check's detection time.
Operators can see which producers Galactic considers healthy.
changed the title [-]Spread traffic across several producers of a private service on one node[/-][+]Share private-service traffic across healthy servers[/+]on Oct 29, 2026
Activity
fix(datapath): Size the flow pin map to fit galactic-cni's memory limit
feat: Spread private service traffic across the healthy producers on …
docs: Say how long a Spread TCP connection keeps its producer
fix(datapath): Size the flow pin map to fit galactic-cni's memory limit
feat: Spread private service traffic across the healthy producers on …
docs: Say how long a Spread TCP connection keeps its producer
feat(api): Let a ServiceEndpoint spread traffic across its producers
feat(datapath): Spread a consumer's service flows across a producer set
scotwells commentedon Oct 29, 2026
The description now explains the problem and expected outcome in plain language. The original report is preserved below for the observations, diagnostics, and implementation details behind this work. It describes the situation when the issue was reported; later comments and the issue state record subsequent progress.
Original report and engineering evidence
Summary
A private service endpoint can have only one producer on each node. If an endpoint selects two producers on the same node, Galactic rejects the endpoint, and consumers on that node lose the service.
Why it matters
Some services run two or more replicas on each node, so that a rollout or a crash doesn't interrupt consumers. Private DNS is one example. Today each replica needs its own consumer address, and each client decides how to use the addresses. Many clients send almost all requests to the first address and use the second only after a timeout. As a result, one replica does most of the work, and problems with the other replica go unnoticed. Rollouts still interrupt clients: in one measured rollout, the first address failed lookups for about 75 seconds.
What we want
Acceptance criteria
Related: Deliver Private DNS for Galactic VPC
[-]Spread traffic across several producers of a private service on one node[/-][+]Share private-service traffic across healthy servers[/+]