Commit 5ddf8d4
authored
fix(bigtable): disable dynamic channel pool by default and raise default pool size to 10 (#19945)
## Summary
- Disable dynamic channel pool scaling by default
(`DefaultDynamicChannelPoolConfig().Enabled` flipped from `true` to
`false`).
- Raise the default gRPC connection pool size from 4 to 10 to align with
`defaultBigtableConnPoolSize` and compensate for the loss of dynamic
scale-up.
## Why
Mitigates steady heap growth caused by the upstream gRPC-Go xDS client
memory leak in DirectPath-xDS connections. Scale events churn
connections often enough to expose that leak, and the prior pool default
of 4 amplified the problem under load. See
#14582.
Pairs with the connection-recycler `MaxAge` bump (7d) in a sibling PR —
both reduce DirectPath-xDS connection churn while the upstream fix
lands.
## Compatibility
- `ClientConfig.DisableDynamicChannelPool` keeps its existing semantics;
users who already opt out are unaffected.
- Callers who want dynamic scaling can construct a
`DynamicChannelPoolConfig` with `Enabled: true`.
## Test plan
- [x] `go build ./...` clean
- [x] `go vet ./...` clean
- [x] `go test ./internal/transport/... ./internal/option/... ./`
(targeted: TestDynamic/TestValidate/TestConnPool/TestNewClient) — pass
- [ ] CI green1 parent b66bbc1 commit 5ddf8d4
2 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | | - | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
253 | 260 | | |
254 | 261 | | |
255 | | - | |
| 262 | + | |
256 | 263 | | |
257 | 264 | | |
258 | 265 | | |
| |||
0 commit comments