-
Notifications
You must be signed in to change notification settings - Fork 27
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
🎨 Enhances setup to remediate accumulation of messages in socketio exchange #5341
🎨 Enhances setup to remediate accumulation of messages in socketio exchange #5341
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5341 +/- ##
=========================================
- Coverage 87.3% 80.3% -7.0%
=========================================
Files 1321 542 -779
Lines 54147 27179 -26968
Branches 1172 202 -970
=========================================
- Hits 47290 21851 -25439
+ Misses 6607 5278 -1329
+ Partials 250 50 -200
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice thanks!
...eb/server/src/simcore_service_webserver/notifications/_rabbitmq_exclusive_queue_consumers.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/projects_api.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/socketio/messages.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! let observe how this behaves in master 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 looking forward to this. drop me a ping when it's merged and deployed to master and I will verify how ti works
services/web/server/src/simcore_service_webserver/socketio/server.py
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
What do these changes do?
The problem reported in incident 48 (see related issues) indicate that the
socketio
exchange is overloaded with messages that are not attended. Those seem to be produced by those queued from the web-server'semit
call. Most of those calls do not actually need to be queued because the client is directly connected to that server!socketio
exchange with messages going to and back to the servergathering
theemit
coroutines since the latter is not designed to run concurrently. Signature now only excepts one message at a time._safe_emit
Related issue/s
How to test
Dev Checklist
DevOps Checklist