-
Notifications
You must be signed in to change notification settings - Fork 150
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
Lagoon API Error: No channels left to allocate #1344
Comments
check the rabbitmq broker, the channels are probably full, we can solve this with restarting the API pods which then will remove all existing channels. |
Ya, I requested this issue specifically to improve things on the API side. We should be able to 1) handle the failure more gracefully and 2) manage channels better. Some light reading/googling suggests we maybe don't need a new channel for every user/websocket connection? And/or close channels when disconnected? |
Spotted this on a high volume cluster, had to scale the API pods from 2 to 5 to get it to calm down. |
I think just restarting all api pods solves this issue as well, as the issue is that the api creates a new channel for every GraphQL Subscription that is created, if you restart the api, all channels are closed and the cycle starts again. |
I was just playing around locally with pages that use subscriptions and was wondering why in the API logs I was seeing repeated requests to something that I was performing once against the API. I'm not quite sure how to debug this so I added some I don't know how you could even fix this? Can we just disable subscriptions? I don't really see them as super useful, I often just refresh the page cause some subscription things don't work properly |
lets address subscriptions |
Describe the bug
Watching at
api
logs, today I got this error several times:The text was updated successfully, but these errors were encountered: