Skip to content

fix(ingress): keep application routes stable as shared fleets grow - #6183

Draft
TaylorMutch wants to merge 2 commits into
feat/4668-discovery-readers/TaylorMutchfrom
fix/6181-application-ingress-scale/TaylorMutch
Draft

TaylorMutch wants to merge 2 commits into
feat/4668-discovery-readers/TaylorMutchfrom
fix/6181-application-ingress-scale/TaylorMutch

Conversation

@TaylorMutch

@TaylorMutch TaylorMutch commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Keep application routes stable as shared Kubernetes sandbox fleets grow. Replace the per-renewal Sandbox LIST with a metadata-watch locator and a fresh named GET, collect discovery records with bounded concurrency, and make supervisor connection budgets configurable.

Stacked on #4964.

Related Issue

Closes #6181

Changes

  • Verify Sandbox UID, gateway labels, deletion state, supervisor placement, and durable ownership on the existing renewal path. Incomplete watches, ambiguous IDs, and recreated resources fail closed.
  • Collect workspaces and installation records concurrently within fixed bounds while preserving snapshot validation and publication checks.
  • Add max_connections and max_connections_per_sandbox to openshell.supervisor.app_listener, propagated by the Kubernetes driver and Helm chart. Defaults remain 1024 and 64.
  • Distinguish lease preparation timeouts, rejected reports, and acceptance timeouts in debug logs. The 15-second route lease and two-second renewal-work deadlines are unchanged.
[openshell.supervisor.app_listener]
max_connections = 16384
max_connections_per_sandbox = 256

Testing

  • Clean branch: 4,424 tests passed across core, Kubernetes driver, supervisor, and server libraries; 52 environment-dependent server tests ignored.
  • Strict Clippy and formatting for affected crates.
  • Regression coverage for partial initialization, relists, ambiguous IDs, label changes, delayed deletion, recreated UIDs, fresh point reads, and connection-budget validation.
  • Integrated GKE validation: all 1,166 services on the retained 583-sandbox fleet passed public HTTPS identity checks; untrusted CA rejected. Endpoint p95 improved from 1,946ms to 843ms in the captured diagnostic samples, with zero preparation timeouts in the fixed sample.
  • Integrated 1,000-sandbox / 2,000-service public Envoy campaign reached 10,000 clients with no missing workers. All 2,000 identity checks passed before load.
  • Reliability qualification remains open: 5,539 of 1,693,011 post-ramp operations failed (0.327%). Failure bursts followed supervisor control-stream token expiry; DNS errors were also retained. The observed full-population window was 893 seconds against a planned 900. A separate shorter HPA check confirmed scale-up from two to three Envoy replicas; this does not qualify supervisor reconnect continuity.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Configuration and operating guidance updated

Replace per-renewal Sandbox LISTs with a metadata-watch locator and fresh point reads, bound parallel discovery collection, and expose configurable supervisor connection budgets.

Fixes #6181

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
@TaylorMutch TaylorMutch added area:drivers Compute and secret drivers, host OS/architecture support, backend isolation, and lifecycle. topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. topic:performance Startup time, latency, throughput, overhead, scalability, benchmarking, and rate limiting. topic:reliability High availability, recovery, retries, graceful degradation, and correctness across restarts. labels Dec 2, 2026

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

area:drivers Compute and secret drivers, host OS/architecture support, backend isolation, and lifecycle. state:accepted A maintainer decided OpenShell should pursue this issue topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. topic:performance Startup time, latency, throughput, overhead, scalability, benchmarking, and rate limiting. topic:reliability High availability, recovery, retries, graceful degradation, and correctness across restarts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant