Limit User CPU Usage

Yasham

Verified User
Joined
Feb 3, 2018
Messages
36
We are in new shared hosting server.. one of our users start ads and send around 5000 visitor per hour.. this ads cause our CPU usage be more than 70% usually around 5 - 10 %...
how we can avoid this problem and limit this user or all users to avoid this problem in future..
what is the best way to do that and what shared hosting companies do in usual ?
---------
Our Server:
SSD 160GB
RAM 16GB
CPU 2.1 4 vCore
Users 39
---------
 
Hello,

If you want to limit CPU usage I'd suggest that you use CloudLinux with their cagefs.

Alternatively you can limit connections to their virtual hosts.
 
thanks for your response...
we cannot change to CloudLinux...
and can you give me more detail's about alternative method :)
and if I apply limits on virtual hosts what is the type of error will appear to visitors if user reach limit..
 
what is the different between mod_ratelimit and mod_bw.c .. and another question each wordpress page send about 150 request to show page how I can calculate it to limet connected users number ?
thanks :)
 
I don't use any of them with Apache for my own projects. Feel free to search in internet for the details.

Or probably somebody else on the forums will share their thoughts.
 
thanks for your response..
and another question if someone can answare..
what is the common way to manage shared hosting server base on directadmin cp .. to avoid server overload by some users ..
 
On Centos You can use Cgroups to control CPU, RAM, IO resources.
 
Help

Are you still facing the issue? If so, then ping me I have the better solution.
 
Back
Top