[GODRIVER-2131] Create new connections immediately when connection pool size falls below minPoolSize Created: 17/Aug/21 Updated: 30/Mar/22 |
|
| Status: | Backlog |
| Project: | Go Driver |
| Component/s: | Documentation |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Matt Dale | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
As described in the CMAP specification: Currently, the Go driver waits for the background maintenance goroutine interval of 1 minute (or 10 seconds as proposed as part of GODRIVER-2038), not immediately when the pool size is below minPoolSize. Additionally, the current Go driver doesn't implement the "paused" or "ready" states. Instead of waiting for the background maintenance goroutine interval to maintain minPoolSize, trigger a function or goroutine to create new connections immediately when pool size < minPoolSize. Proposed implementation based on the current logic in PR 716:
|