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
Properly handle situations when a ws agent is killed by OOM #1988
Comments
it is same issue as #1817 |
@vparfonov Please assign this to yourself. Thanks. |
We can't detect properly OOM but we can in some check that ws-agent process still alive and notify if it killed by OS |
We found other solution without additional process on dev machine side. |
This sounds reasonable - thanks Vitalii |
Workaround #2369 |
When a workspace agent stop responding for whatever reason, projects disappear from project tree, and page refresh results in Cannot get project types error.
Reproduction Steps:
Expected behavior:
Build is a success and the IDE remains functional
Observed behavior:
When OOM happens in a workspace container, kernel may kill WS agent or the WS agent becomes unreachable for some reason. The IDE keeps trying to reach ws agent and fails to do so. As a result, projects disappear from project tree. Page refresh results in Cannot load project type error which is caused by the client trying to reach API deployed with a workspace agent.
Proposed solution
A user should be at least notified that the workspace is malfunctioning probably because of OOM. It may also be a good idea to try to restart a workspace agent, however warn a user that this situation is likely to happen again with this kind of workspace and more RAM may be required.
The text was updated successfully, but these errors were encountered: