WordOps: Feat: make WordOps more resilient by adding `Restart=on-failure RestartSec=5s`
Hi, love WordOps and what is does! I think it can be a bit more resilient.
I had some problems with my VPS, causing MariaDB to go OOM. A few weeks later my php8.3-fpm went also OOM. No worries, can happen. But when I dove into the settings I saw these services would not auto recover. Would it be possible to add these auto recover configs?
For MariaDB I added to /lib/systemd/system/mariadb.service:
Restart=on-failure
RestartSec=5s
For php8.3-fpm I added through sudo systemctl edit php8.3-fpm.service:
[Service]
Restart=on-failure
RestartSec=5s
Think these settings might be nice to include in a future release.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 16 (3 by maintainers)
After testing it on few servers with OOM Kill issues, it’s working properly. I’m going to add this feature in WordOps as soon as possible.
Don’t know if stale is the right word…
MariaDB was not on
on-failure. I’ve now set it toalways. Haven’t seen the memory problems since.Hello @Ethical-Cronos, I’m sorry for the delay. I’m still looking for more information about the impact of this change. I will get back to you as soon as possible.
@ajohnclark, my comment was directed at the action that was taken by the GitHub actions bot:
As for the code, please read the main issue.
Hello @KeesCBakker, I will take a look on this.