コネクションプール枯渇とは?
コネクションプール枯渇とは、固定サイズの pool 内のすべての接続が取り出されて使用中になり、到着したリクエストに割り当てられる空き接続が残っていない状態です。そのリクエストは、接続が解放されるまでブロックするか、待機タイムアウトに達すると失敗します。通常は、接続が長く保持されすぎる、リークする、または pool が需要に対して小さすぎることに起因します。
なぜ重要か
CI で多数の並列なデータベースや HTTP 呼び出しを開く統合テストは、pool を枯渇させ、サービスがダウンしているように見えるタイムアウトエラーで失敗することがあります。枯渇に気づけば、接続を速やかに解放するか、pool を正しくサイズ設定する方向へ導かれます。
関連ガイド
What Is a Socket Read Timeout?A socket read timeout is the maximum time a program waits for data on a socket before giving up, preventing a…
What Is the Ephemeral Port Range?The ephemeral port range is the band of port numbers the system temporarily assigns to the local side of outg…
What Is TCP Keep-Alive?TCP keep-alive periodically probes an idle connection to confirm the other side is still reachable, so dead c…