Limits of Ruby Connection Pool Timeout for Detecting Intermittent Exhaustion
Goal: Identify a reliable way to detect when a Ruby connection pool is approaching exhaustion before threads experience timeout‑induced latency spikes. Constraints: The connection_pool gem only raises a Timeout::Error after the per‑checkout timeout expires and does not emit warnings or metrics; developers must either poll pool.available_size or rescue except