MassProspecting / docs

Public documentation, roadmap and issue tracker of MassProspecting
http://doc.massprospecting.com/
0 stars 0 forks source link

Subaccount nodes daily reboot #203

Open leandrosardi opened 2 weeks ago

leandrosardi commented 2 weeks ago

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

grep -ai oom /var/log/syslog
grep -ai watchdon /var/log/syslog

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