-
Notifications
You must be signed in to change notification settings - Fork 93
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
Make threadpool size configurable in publisher/consumer builder #1920
Comments
Thanks for raising this issue! I have a few questions to get a bit more clarity about the issue you're seeing.
Can you explain this part a bit more? I'm a bit confused what you mean by
I'm also a bit confused by this part. What do you mean by configurable from outside? |
I think the internal threading model in pubsub might benefit from a better abstraction as eg. a configuration class, where users can override the default behaviour of pubsub (number of threads in pool asf.) , and then inject an instance of that when instantiating pubsub, or a method on the Publisher/Consumer to set no of threads. |
For an abstraction in pubsub, I think this would probably better suited as a feature request for the pubsub folks. I'll transfer the issue there and CC the some of the devs for their thoughts |
CC @michaelpri10 @hannahrogers-google if you two have any thoughts on this |
…s#1869) * chore: Create renovate_config_check.yaml Source-Link: googleapis/synthtool@6612ab8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a6aa751984f1e905c3ae5a3aac78fc7b68210626ce91487dc7ff4f0a06f010cc Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Currently it is very low level to override the default behaviour on how many threads are assigned to the publisher/consumer.
We are seeing too many GAX threads created for our usecase causing an overhead in memory consumption on k8s for low traffic situations.
There is some talk about it her
The documentation for override the pool size might be a bit to low leven for many situations.
It would be good if the pool would be configurable from outside especially since many users of pubsub are using a framework like spring-boot pubsub, or in our case apache camel google pubsub.
The text was updated successfully, but these errors were encountered: