-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for customize the max connections and max pools #773
Conversation
Cool. Thanks for the pull request. We will take a look at it. |
Hi @kyleknap , just as a remember that this PR is on the air :) |
Sorry for the delay here. While I feel that being able to inject your own http adapter is something that we want to add support for, there is a couple implications that other members of the boto org will need to decide upon because as of now we hardly expose anything (except maybe timeouts) about our http layer:
I think we (members of the boto org) need to make decisions on some of the points that I brought up before we can move forward with this pull request. This may take some time depending on what we decided. Also @pfreixes feel free to chime in on any of the points I brought up. |
Hi @kyleknap thanks for your response, your words are reasonable and I can understand the need to share this discussion with the other members of boto. The current implementation with the semi ad-hoc implementation of requests - Im not able to see how the I didn't know that the current About the use of client config instead of use the kw strategy, bloating the params as you said, is something that is also discutible but definitely the right decision should be that one is aligned with the current implementation. However have in mind that the Cheers, |
Perhaps adding a max_concurrency setting from which max_connections and max_poolsize could be derived is something worth considering? This is a real blocker for us running boto3 + botocore in production, and I'll be happy to help push this forward. |
This config value allows you to control the size of the connection pools used in urllib3. We were previously using the hardcoded value of 10 (from requests). As an aside, the implementation for this was much more complicated than necessary. I'm thinking on sending a few follow up PRs that start to clean up some of this technical debt. Closes boto#773 Closes boto#766
Related with the ticket #766