mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Allow adjusting request pool both ways (#14609)
When reloading a dynamic config allow the request pool to scale both ways. Existing requests hold on to the previous pool, so they will pop the elements from that.
This commit is contained in:
parent
7bc1f986e8
commit
50577e2bd2
@ -127,7 +127,7 @@ func (t *apiConfig) init(cfg api.Config, setDriveCounts []int) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if cap(t.requestsPool) < apiRequestsMaxPerNode {
|
if cap(t.requestsPool) != apiRequestsMaxPerNode {
|
||||||
// Only replace if needed.
|
// Only replace if needed.
|
||||||
// Existing requests will use the previous limit,
|
// Existing requests will use the previous limit,
|
||||||
// but new requests will use the new limit.
|
// but new requests will use the new limit.
|
||||||
|
Loading…
Reference in New Issue
Block a user