FIX(REDIS): Raise maxclients from 10000 to 30000 to support 10 replicas#4724
Open
claudia-gray wants to merge 1 commit into
Open
FIX(REDIS): Raise maxclients from 10000 to 30000 to support 10 replicas#4724claudia-gray wants to merge 1 commit into
claudia-gray wants to merge 1 commit into
Conversation
…4630) - Update maxclients to 30,000 in all docker-compose files - Add redis.maxclients configuration to Helm chart (values.yaml, schema, configmap) - Update capacity formula comments: replicas × workers × pool < maxclients - Add documentation about server-side vs client-side connection limits - Fixes #4630: Redis maxclients exceeded at 10 replicas Formula: 10 replicas × 24 workers × 100 pool = 24,000 connections With 20% headroom: 28,800 → 30,000 maxclients This addresses the root cause (server-side capacity) rather than degrading client-side performance by reducing connection pools. Signed-off-by: Claudia Gray <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issue
Closes #4630
📝 Summary
Fixes redis "Too many connections" error when scaling gateway to 10 replicas.
Problem: The Redis server-side
maxclientslimit (10,000) is exceeded when scaling to 10 replicas with default worker and connection-pool settings, causingredis.exceptions.ConnectionError: Too many connectionsin the rate-limiter and session-registry.Root Cause: Connection formula
replicas × workers × REDIS_MAX_CONNECTIONSexceeds server limit:Solution: Raise Redis
maxclientsfrom 10,000 to 30,000 to support 10 replicas with 20% headroom:10 replicas x 24 workers x 100 pool = 24,000 connections < 30000 maxclients.
This addresses the root cause as server-side capacity, rather than degrading client-side performance by reducing connection pools. Even if pool was scaled down to 50 from 100, 10replicas x 24 workers x 50 pool = 12,000 > 10,000 (still greater than 10,000)
🏷️ Type of Change
🧪 Verification
docker compose exec redis redis-cli CONFIG GET maxclients30000docker compose exec redis redis-cli INFO clientsdocker compose logs gateway | grep "too many connections"✅ Checklist
make black isort pre-commit)📓 Notes (optional)
Files Changed (11 total):
Docker Compose (4 files):
Helm Chart (3 files):
Documentation (4 files):
Capacity Table:
Why 30,000?