Re: Automatically moving forked processes in a different cgroup based on children's UID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 7, 2022 at 4:11 PM Michal Koutný <mkoutny@xxxxxxxx> wrote:
More viable way seems to me to modify the apache2-mpm-itk to put
children into respective cgroups.

I'm assuming that the resource usage primarily comes from something like webapps running via mod_php, rather than Apache itself, in which case a better approach would be to move the webapps out of apache entirely. At work we also looked into mpm-itk for a student "shared hosting" server, but instead ended up with a setup where each user automatically gets their own PHP-FPM pool (with each vhost configured to talk to their own PHP-FPM socket), so resource limits could be set either at PHP-FPM level, or if needed multiple php-fpm@.service instances could be run with their own cgroups.

--
Mantas Mikulėnas

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux