feat(metrics): add proxy HTTP connection pool monitoring#1252
Open
Issac-Newton wants to merge 1 commit into
Open
feat(metrics): add proxy HTTP connection pool monitoring#1252Issac-Newton wants to merge 1 commit into
Issac-Newton wants to merge 1 commit into
Conversation
- Add periodic metrics collection (every 10s) for the proxy httpx pool: xrl_gateway.http_pool.proxy.active_connections, xrl_gateway.http_pool.proxy.idle_connections, xrl_gateway.http_pool.proxy.pending_requests - Add get_pool_stats(name) to HttpPoolManager for targeted pool introspection - Increase proxy pool max_connections from 100 to 2000 and max_keepalive_connections from 50 to 100 to reduce request queueing - Fix pending_requests to report truly queued requests (total - active) - Fix empty error messages in handle_exceptions decorator (fallback to repr) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Issac-Newton
force-pushed
the
feat/http-pool-metrics
branch
from
July 16, 2026 05:46
f1eb5fe to
4811f84
Compare
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.
Summary
max_connectionsfrom 100 to 2000 andmax_keepalive_connectionsfrom 50 to 100 to reduce request queueing under loadhandle_exceptionsdecorator by falling back torepr(e)Fixes #1251
Test plan
xrl_gateway.http_pool.active_connections,idle_connections,pending_requests)http pool metrics: active=X, idle=Y, pending=Z🤖 Generated with Claude Code