Limit Redis proxy ElasticKV pool - #1073
Conversation
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughRedisプロキシにRedisおよびElasticKVの接続プールサイズ指定を追加し、正値検証とバックエンド設定への反映を実装しました。Docker Compose、README、デプロイメントドキュメントの例も更新しています。 Changes接続プールサイズ設定
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Code Review
This pull request introduces configurable connection pool sizes for both the primary Redis and secondary ElasticKV backends. It adds new command-line flags -primary-pool-size and -elastickv-pool-size, validates that these pool sizes are positive, and integrates them into the proxy configuration. Additionally, it documents these new options in the README and deployment documentation, and adds corresponding unit tests. There are no review comments, and the changes look solid, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
-elastickv-pool-sizeso operators can tune the pool with the cluster per-peer limitRoot cause
The redis-proxy ElasticKV backend used the generic go-redis pool default of 128 connections, while ElasticKV Redis adapter defaults to 8 concurrent connections per peer. Under dual-write load from a single proxy host, new connections from that host exceeded the adapter cap and surfaced as EOF / connection reset / broken pipe errors during secondary writes and leader probes.
Validation
GOCACHE=$(pwd)/.cache GOTMPDIR=$(pwd)/.cache/tmp go test ./cmd/redis-proxy ./proxyINFO replicationreturningERR max connections per client exceededfrom 192.168.0.210Summary by CodeRabbit
新機能
ドキュメント