You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after upgrading to watermill-googlecloud v1.0.5 production system stopped to accept new messages, however it was working just fine. I decided to clean all topics/subscriptions from google pubsub and then app was hanging after subscribing to 10 topic, on 11. I tried to debug and made some things which i do not remember and app still was hanging, but already subscribing more then 10 subscriptions ~30-40 (i have ~80)
The issue was fixed when i allowed pubsub client to use pool of 100 connections
The change was in this line ClientOptions: []option.ClientOption{option.WithGRPCConnectionPool(100)},
After that router was able to proceed and subscribe to all subscriptions.
Before this change as i understood pubsub client was using just 16 connections.
If each topic requires 1 live connection in the pool, can watermill google pubsub calculate that and and increase pool?
Looking at the source, i can't tell how it can be done easily on lib level.
The text was updated successfully, but these errors were encountered:
m110
changed the title
Google Pub/Sub subscription is hanging if topic count is big
[watermill-googlecloud] subscription is hanging if topic count is big
Jan 21, 2023
after upgrading to watermill-googlecloud v1.0.5 production system stopped to accept new messages, however it was working just fine. I decided to clean all topics/subscriptions from google pubsub and then app was hanging after subscribing to 10 topic, on 11. I tried to debug and made some things which i do not remember and app still was hanging, but already subscribing more then 10 subscriptions ~30-40 (i have ~80)
The issue was fixed when i allowed pubsub client to use pool of 100 connections
The change was in this line
ClientOptions: []option.ClientOption{option.WithGRPCConnectionPool(100)},
After that router was able to proceed and subscribe to all subscriptions.
Before this change as i understood pubsub client was using just 16 connections.
If each topic requires 1 live connection in the pool, can watermill google pubsub calculate that and and increase pool?
Looking at the source, i can't tell how it can be done easily on lib level.
The text was updated successfully, but these errors were encountered: