Skip to content

fix(server): budget SSH relays and service forwards separately - #5063

Open
ericcurtin wants to merge 1 commit into
NVIDIA:mainfrom
ericcurtin:fix/4472-relay-budgets/ericcurtin
Open

ericcurtin wants to merge 1 commit into
NVIDIA:mainfrom
ericcurtin:fix/4472-relay-budgets/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

SSH relays and service forwards now have separate per-sandbox budgets, so open forwards no longer block SSH.

Related Issue

Closes #4472

Changes

  • Count service forwards apart from SSH relays.
  • Add max_ssh_connections_per_sandbox and max_service_connections_per_sandbox gateway settings (default 20, minimum 1).
  • Name the exhausted budget in the limit error.
  • Document the settings.

Release Notes

SSH and service forward connections have separate per-sandbox limits, both configurable in the gateway config.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

cargo fmt, cargo clippy -D warnings, and lib tests for core and server pass.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Open service forwards no longer block SSH. Both per-sandbox caps are
configurable and the limit error names the exhausted budget.

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@copy-pr-bot

copy-pr-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@krishicks @matthewgrossman could you please triage #4472 so the issue check can pass? @drew @mrunalp PTAL, and /ok to test b45de0c976a6c096daee7732424760a073b54894 if it looks good. Thank you!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(gateway): service forwards and SSH sessions share one per-sandbox cap of 20 relay slots

1 participant