Control Web Panel

Developers => New Modules => Topic started by: developdesk on January 04, 2021, 01:44:26 PM

Title: Add mysql to cgroups
Post by: developdesk on January 04, 2021, 01:44:26 PM
Hello,

Is there a way to add user "mysql" to cgroups (Limit server resources)? Because I can see only users listed in "User Accounts > List Accounts"....

If yes, how?

Basically, I want to limit CPU for mysql.

Thanks!
Title: Re: Add mysql to cgroups
Post by: studio4host on January 12, 2021, 10:40:34 AM
limiting mysql would cause only issues on the server as lowering resource usage on it would increase execution time and cause many other issues....you should first check what is the exact cause of the issue you have with MySQL and who and how is causing it, also MySQL has some own limits which can be defined per MySQL user...but for that, you first need to know all mentioned before.