Technologies/Redis/client_backend_wait_time
RedisRedisMetric

client_backend_wait_time

Time spent waiting to obtain a connection from the pool
Dimensions:None
Available on:OpenTelemetryOpenTelemetry (1)

Summary

Measures the time client threads or processes wait to acquire an available connection from the pool. Elevated wait times indicate connection pool exhaustion, where demand exceeds available connections. This metric is a leading indicator of connection pool sizing issues and correlates with application latency increases when pools are undersized for workload demands.

Interface Metrics (1)
OpenTelemetryOpenTelemetry
Time spent waiting to obtain a connection from the pool
Dimensions:None

Technical Annotations (6)

Configuration Parameters (1)
max_connections
Adjust dynamically based on workload to prevent queuing
Technical References (5)
active queriesconceptPgBouncercomponentProxySQLcomponentHikariCPcomponentpgBouncercomponent
Related Insights (9)
Redis Connection Pool Starvation from Blocking Patternswarning

When async endpoints make synchronous Redis calls, they hold connections longer than necessary while blocking the event loop, causing artificial connection pool exhaustion even when Redis server capacity is available.

Bolt Connection Pool Saturationwarning

High bolt connections combined with client backend wait time indicates connection pool exhaustion, causing clients to queue for available connections and degrading application response times.

Client-Side Connection Pool Misconfigurationwarning

High client_backend_wait_time combined with low client_backend_usage indicates application connection pool misconfiguration or excessive connection churn, even when database-side cloudsql_googleapis_com/database/network/connections appears normal.

Connection Queue Buildup Indicates Connection Stormwarning

When client_backend_create_time and client_backend_wait_time are elevated, new connections are queuing because the instance is saturated with connection requests. This often precedes connection pool exhaustion and instance instability.

Transaction Peak Concurrent Threshold Breachwarning

Concurrent transaction count approaching or exceeding configured limits can lead to transaction queuing, increased latency, and eventual request rejection.

Blocked active queries causing downstream query contentioncritical
Connection pool exhaustion causing query queuing and lag spikeswarning
Connection pooling reduces latency by up to 50%info
Connection Limit Approaching Maximum Connectionscritical

When cloudsql_googleapis_com/database/network/connections or cloudsql_googleapis_com/database/postgresql/num_backend approaches max_connections limit, new connection attempts will fail, causing application errors and service disruption.