Skip to content

feat(redis): configurable connection pool size - #1055

Open
alexluong wants to merge 1 commit into
mainfrom
feat/redis-pool-size
Open

feat(redis): configurable connection pool size#1055
alexluong wants to merge 1 commit into
mainfrom
feat/redis-pool-size

Conversation

@alexluong

Copy link
Copy Markdown
Collaborator

Adds REDIS_POOL_SIZE (redis.pool_size in YAML) to configure the go-redis connection pool size per client. Unset or 0 keeps go-redis's default of 10 × GOMAXPROCS, so existing deployments are unaffected. In cluster mode the value applies per node.

The GOMAXPROCS-derived default cuts both ways: containers with small CPU limits get small pools that become a throughput ceiling when Redis round-trip latency is non-trivial, while large hosts hold hundreds of mostly idle connections per client. This exposes the standard knob to size the pool explicitly.

@alexluong
alexluong force-pushed the feat/redis-pool-size branch from d756b19 to 93f4af1 Compare August 31, 2026 22:04
@alexluong
alexluong force-pushed the feat/redis-pool-size branch from 93f4af1 to bbde364 Compare September 1, 2026 07:58
@alexluong
alexluong marked this pull request as ready for review September 1, 2026 07:58
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.

2 participants