Skip to content

docs: document controller scaling and multiple replicas - #2055

Merged
nacx merged 3 commits into
envoyproxy:mainfrom
nuthalapativarun:docs/controller-scaling-1215
Apr 16, 2026
Merged

docs: document controller scaling and multiple replicas#2055
nacx merged 3 commits into
envoyproxy:mainfrom
nuthalapativarun:docs/controller-scaling-1215

Conversation

@nuthalapativarun

@nuthalapativarun nuthalapativarun commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a new doc page explaining how and why to run the AI Gateway controller with multiple replicas.

The controller has two independent components:

  • Kubernetes controller — requires leader election for mutable operations
  • Extension server — read-only gRPC server that scales horizontally

Since EG's xDS server communicates with all Envoy instances and each EG replica calls the AIGW extension server, running a single AIGW replica can become a bottleneck. This doc explains the architecture, provides Helm and plain-Deployment configuration examples, and includes an HPA example for dynamic scaling.

Note: This doc was written with AI assistance (Claude Code).

Related Issues/PRs (if applicable)

Fixes #1215

Special notes for reviewers (if applicable)

The new page is at site/docs/capabilities/scaling.md (sidebar position 3, autogenerated). The Helm values (controller.replicaCount, controller.leaderElection.enabled) were verified against manifests/charts/ai-gateway-helm/values.yaml.

Document that the AIGW controller should be configured with multiple
replicas to distribute extension server load. Explain how leader election
applies only to the k8s controller portion while the extension server
runs on all replicas, provide Helm and plain-Deployment configuration
examples, and include an HPA example for dynamic workloads.

Fixes envoyproxy#1215

Signed-off-by: Varun Nuthalapati <nuthalapativarun@gmail.com>
@nuthalapativarun
nuthalapativarun requested a review from a team as a code owner April 16, 2026 05:25
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 16, 2026
@dosubot

dosubot Bot commented Apr 16, 2026

Copy link
Copy Markdown

Related Documentation

1 document(s) may need updating based on files changed in this PR:

Envoy's Space

index /ai-gateway/blob/main/site/docs/capabilities/index.md — ⏳ Awaiting Merge

How did I do? Any feedback?  Join Discord

@nacx
nacx enabled auto-merge (squash) April 16, 2026 07:54
@nacx
nacx merged commit b6c3829 into envoyproxy:main Apr 16, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document somewhere that AIGW controller should have multiple replicas in the same way as EG controller

2 participants