Comment on How to auto-reboot if CPU load too high?
possiblylinux127@lemmy.zip 7 months ago
Here’s a better suggestion. Why don’t you see if you can find out what’s causing the issue? It sounds a like a problem occurring in userspace. Try running htop
PlutoniumAcid@lemmy.world 7 months ago
You know you are right, and I’ve tried. I can manually monitor but it doesn’t happen just then. I don’t know yet what causes it, I can only assume it’s one of the Docker containers because the machine is doing nothing else.
I am doing this to find out how often it happens, how quickly it happens, and what’s at the top when it happens.
vegetaaaaaaa@lemmy.world 7 months ago
Setup proper monitoring with history. That way yo don’t have to babysit the server, you can just look at the charts after a crash. I usually go with netdata
possiblylinux127@lemmy.zip 7 months ago
Maybe try capping the resource usage of each container. At least then the machine won’t completely lock up
PlutoniumAcid@lemmy.world 7 months ago
That’s a good idea, didn’t know Docker had such capability. I will read up on that - could you give me some keywords to start on?
wreckedcarzz@lemmy.world 7 months ago
I very recently spun up a vps and wanted to limit resources; I use docker-compose so this was the info I needed docs.docker.com/compose/…/compose-file-v3/#resour…