-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Can't tune maxsize of connection pool used #290
Comments
Ideally, it'll be a param to kubernetes.config.configuration that can be tuned. |
However, the kubernetes.config.configuration object says it is autogenerated - but am unable to find where it is autogenerated from? |
kubernetes.config.configuration is not auto generated anymore, you can edit it. Please also remove the message that it said it is auto-generated. Thanks for your contribution. |
Thanks @mbohlool! kubernetes-client/python-base#18 should do the trick I think. |
@mbohlool @yuvipanda how can you edit this? I have this setting because I'm threading grabbing pod information and ran into the connection pool issue above:
if I then call I checked out the code here: https://github.com/kubernetes-client/python-base/blob/master/config/kube_config.py#L522 and thought that if I just pass in the |
you need to pass your |
Thanks for the help! |
I get a lot of log messages of the form:
Setting
maxsize
ofHTTPConnectionPool
(or equivalent object) to something higher would help with this, and with connection re-use help performance too (I am hoping!). I can't seem to find a way to set this though!The text was updated successfully, but these errors were encountered: