Azure SDKs for Python should support custom urllib3 connection pool size. #12102
Labels
Azure.Core
Client
This issue points to a problem in the data-plane of the library.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Is your feature request related to a problem? Please describe.
When I run the Storage SDK against a single account using a ThreadPool,
multiprocessing.pool.ThreadPool
, I see frequent warnings likeurllib3.connectionpool:HttpConnectionPool is full, discarding connection
. Urllib3 has a well-defined default connection pool max size of 10. When myThreadPool
is larger than the default, the warnings are frequent, probably correlating with an increase in round trip time.Describe the solution you'd like
The ideal change would mean I can easily configure the underlying connection pool size. Maybe other parameters too, like number of pools.
Describe alternatives you've considered
I can eliminate the warnings on a 32-count pool using this workaround that patches the urllib3 pool parameters.
Additional context
Repro:
The text was updated successfully, but these errors were encountered: