Author Topic: How it Limit Per user ? its look like cloudlinux do ?  (Read 13475 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How it Limit Per user ? its look like cloudlinux do ?
« on: September 25, 2014, 06:38:08 PM »
Can you guys help me to limit resouces per user ? as i just saw you guys have fuction to do that without cloudlinux .. please guild me to do tha .... its bit complex look like limits.conf  :o 

Offline
*
Re: How it Limit Per user ? its look like cloudlinux do ?
« Reply #1 on: September 27, 2014, 05:53:55 PM »
what kind of limits do you want to limit ?
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How it Limit Per user ? its look like cloudlinux do ?
« Reply #2 on: February 02, 2016, 09:52:51 PM »
Hi Guys,
I need apply CPU limits for my users in CWP, but i know that its double-edged sword, then i think I got an intermediary solution, that the accounts must have 50% ok CPU limit usage. The server will not be overloaded and the user will not be penalized.

Researching on how to apply this limit i checked this page:
http://linux.die.net/man/5/limits.conf

Then according to the instructions, i should modify the limits.conf file and add this line, assuming the user is xxxyz:
Code: [Select]
@xxxyz          soft    cpu             50000
this limits the CPU usage by 50% to xxxyz user?
Is correct that?

Offline
*****
Re: How it Limit Per user ? its look like cloudlinux do ?
« Reply #3 on: February 05, 2016, 07:30:52 AM »
Hi, yes that is correct. Also you can set a hard limit instead soft limit.

Hi Guys,

Researching on how to apply this limit i checked this page:
http://linux.die.net/man/5/limits.conf
this limits the CPU usage by 50% to xxxyz user?
Is correct that?
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How it Limit Per user ? its look like cloudlinux do ?
« Reply #4 on: March 22, 2016, 05:13:41 PM »
Hello everyone,
The limit imposed by the settings in limits.conf not work.
I need a solution where I can limit the use of maximum CPU to ensure the responsiveness of the system. This is essential for the growth of hardware configurations that this entails greater number of customers.
Please if you have any idea how to do this advise at all believe that this is of interest to everyone here.

Thank you.

Offline
*
Re: How it Limit Per user ? its look like cloudlinux do ?
« Reply #5 on: March 23, 2016, 02:39:01 PM »
you can't do any custom limits without custom kernel like cloudlinux or betterlinux

But in most cases overload i caused by higher number of php process, so limiting number of process can help you.
Some middle value for nproc would be 25.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: How it Limit Per user ? its look like cloudlinux do ?
« Reply #6 on: April 16, 2016, 04:31:19 AM »
First thank you for answering my questions Admin.

About this:
Quote
Some middle value for nproc would be 25.
1 process can consume 99% of CPU, then i guess that the quantity of process dont be the better solution to limit CPU usage, then i will insist on this because I believe it is of utmost importance in an environment with multiple accounts.
My purpose is to limit just to keep the system responsiveness (about 50%).

Checking the contents of the file /etc/security/limits.conf could check the options "nice" and "priority" as follow:
Code: [Select]
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - a user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open file descriptors
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority

On the internet some articles teaching how to set up using these options like this:
http://linux.die.net/man/5/limits.conf

I tried to set up under these articles but the command "top" the nice values are not changed, remaining always 0.
these options only works in a custom kernel? or, if not,
How to configure nice and priority options properly?

Im using Centos 6.5 + CWP 0.9.8.12 (Apache 2.2.2.7 & Nginx Reverse Proxy)

Thanks for your time!
« Last Edit: April 16, 2016, 08:53:38 PM by Hackaust »