Python script that monitors resources and sends signal to flask microservice. you may find a way to monitor something like the output of "top" command. If CPU/mem of the Python process running [login to view URL] is constantly high exceeding a threshold, your monitoring process sends a signal to that Python process. When the Python process receives the signal, it should restart the Flask app gracefully and log the errors/exceptions. If possible, recover the states and rerun the last handlers, so there is no interruption to the services.
When we start the Flask app, need a separate process to monitor CPU, memory and other important parameters. Basically there are two processes running, one is our regular Flask app, the other one is the monitoring process which checks on the Flask app and usage of system resources, and send a signal to the Flask app when something is deemed wrong so the Flask app can gracefully restart instead of hanging or getting killed silently.
2 freelanceri licitează în medie 25$ pentru acest proiect
***Needed python/Flask fix*** Hi there, I am the best match for this project as I have strong experience with Python, Flask, etc. I have some questions regarding your project, can we discuss them over a chat. As a s Mai multe
Would like to use a cython module to launch the application, but further investigation into the code is required to check if possible.