minilauta / miniboard

Minimalistic oldschool imageboard software
MIT License
7 stars 5 forks source link

Set RAM requests and limits for service pods (k8s) #46

Closed Anonyymi closed 1 year ago

Anonyymi commented 1 year ago

Set both RAM requests and limits for service pods. This is to make sure they get the memory they deserve and not less and no more.

https://home.robusta.dev/blog/stop-using-cpu-limits

Anonyymi commented 1 year ago

Currently running on 2GB RAM with Microk8s and php-fpm can consume all OS memory eventually crashing the server.

Anonyymi commented 1 year ago

Adapt PHP-FPM pool configuration from here: https://github.com/Anonyymi/minilauta-ansible/blob/master/roles/php/files/pool.d/www.conf

This config is tested in action and has worked on low memory server for a whole year with no issues.

Anonyymi commented 1 year ago

Done.