Skip to content

Conversation

j0sh
Copy link
Collaborator

@j0sh j0sh commented Aug 26, 2025

Adds the ability for orchestrators to advertise additional instances during discovery.

The broadcaster will then query these additional instances

This is done via a new -instances flag on the orchestrator, which takes a comma-separated list of HTTPS URLs. The OrchestratorInfo RPC message is modified to take a list of string instances.

Additionally, support a special zero value of "none" for the -serviceAddr flag which marks this node as a "non-working" node. This mode may be helpful when a node is only meant to redirect traffic to additional instances, rather than perform work itself.

The gateway will recursively call GetOrchestrator on any additional instances it encounters within an OrchestratorInfo response, and will not add responses to its working set that have an empty Transcoder (serviceAddr) field.

For the purposes of selection, latency is calculated directly between the gateway and the additional node itself; the latency to the first node is ignored. However, GetOrchestrator calls to additional nodes are still subject to the overall discovery timeout, which is not extended to accommodate additional nodes. Any additional nodes beyond the first should have a low latency to the gateway.

On the gateway, a new flag -additionalInstances is added which limits the number of additional instances the gateway will query. The default is zero, which has the effect of ignoring any additional instances

j0sh and others added 29 commits August 26, 2025 17:09
…text propagation

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
…ction variable

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
…instances

Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
Co-authored-by: aider (anthropic/claude-sonnet-4-20250514) <[email protected]>
@github-actions github-actions bot added the go Pull requests that update Go code label Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant