I have a VPS running a postgres and app that gets rebooted daily.
If you fix it, please share the bash script that I should run on every new server from now on.
If the VPS gets rebooted by Contabo and it is not possible to fix, please write a bash script to add some commands to execute automatically on every reboot.
Reply from Alp
Seeing a lot of soft CPU lockup messages and OOM (out of memory) messages. OOM is related to ruby processes. I think the server is running out of resources and rebooting.
When OOM happens the process consuming most RAM is killed
You need to monitor the resources as well.
Like connect the system to some monitoring tool like Zabbix and get alerts when memory or CPU usage is too high
Message to Alp
I have a VPS running a postgres and app that gets rebooted daily.
If you fix it, please share the bash script that I should run on every new server from now on.
If the VPS gets rebooted by Contabo and it is not possible to fix, please write a bash script to add some commands to execute automatically on every reboot.
Reply from Alp
Seeing a lot of soft CPU lockup messages and OOM (out of memory) messages. OOM is related to ruby processes. I think the server is running out of resources and rebooting.
When OOM happens the process consuming most RAM is killed
You need to monitor the resources as well. Like connect the system to some monitoring tool like Zabbix and get alerts when memory or CPU usage is too high