Open chintus777 opened 1 year ago
Hello Chintu,
Thank you for your message and your revelant comment. I like your proposal.
I confirm that user doesn't receive a message if an application is killed by an OOM event.
To do that, we must add the new feature in pyos python source code.
We can catch the kubernetes event in kuberneteswatcher thread and then call notify_user to notify the desktop using orchestrator.notify_user( desktop, method, json_data )
The main branch is the old 2.9 version. Please use the 3.0 branch ( this is the current branch ).
See you Alexandre
Hello Chintu,
I've fixed this issue, let me know if it's ok for you.
The pyos image with OOMKilled
embedded notification is
abcdesktopio/oc.pyos:3.0 40a70c94294d0 387MB
If a pod application gets an OOMKilled
event, pyos
send a notification to the desktop pod.
The desktop pod forwards using an unicast message, the message to the web browser.
For example, inside a executeclass bronze, with low memory limits
'bronze':{
'nodeSelector':None,
'resources':{
'requests':{'memory':"64Mi",'cpu':"100m"},
'limits': {'memory':"100Mi",'cpu':"500m"}
}
I run inside a pod application (konsole based on alpine), the stress-ng
command
stress-ng --cpu 8 --io 4 --vm 2 --vm-bytes 128M --fork 4 --timeout 10s
The notification OOMKilled
appears on the upper left side, with the name of the application pod.
The pod is also removed in the namespace abcdesktop.
Feel free to share with me some feedback about this issue. Thank you for this feedback and this great idea for a better user experience.
See you
Alexandre
Hello Alexandre , Thanks a lot for your solution , it helped me a lot. Actually I am still facing some issues -
Please implement the alert on CPU consumption as well as it can prevent the system resources.
Please can u look into these .
Thanks Chintu
Hello Alexandre ,
Thanks for this amazing project. Actually I have created my apps such as chrome and phpstorm , I have added executeclass parameter and running my applications as a pod to achieve ram and cpu restriction .While using this I have achieved the restriction , but user does not get any alert , like in case of chrome tabs get crashed when limit is reached , but how would user know that ram or cpu limit is reached. I think every user should get a warning or alert about ram limit and cpu limit in the VDI itself so that user can manage accordingly . I have gone through the various extensions of chrome , but those tell usage of RAM of the server on which abcdesktop is deployed , not the podapplication of chrome. Can you please suggest me how should I proceed forward about this problem.
Thanks Again Chintu