Author Topic: Limit server resources (cgroups)  (Read 19252 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Limit server resources (cgroups)
« on: March 01, 2019, 09:02:18 PM »
Hi everyone, I wonder if someone have issues with Limit server resources (cgroups) (CWP-PRO). I've setup a new policy and I tried to restart the service, there are the logs:

-------------------------
Restarting service..
cgclear failed with Device or resource busy
-------------------------

Service Status
-------------------------
Check:
cgred.service loaded active running CGroups Rules Engine Daemon
● cgconfig.service loaded failed failed Control Group configuration service
Groups:
memory:/
memory:/system.slice
memory:/system.slice/cgred.service
cpu,cpuacct:/
cpu,cpuacct:/system.slice
cpu,cpuacct:/system.slice/cgred.service
blkio:/
blkio:/system.slice
blkio:/system.slice/cgred.service
Rules:
-------------------------

Journalctl
-------------------------
Mar 01 15:48:33 my.website.com systemd[1]: Starting Control Group configuration service...
-- Subject: Unit cgconfig.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cgconfig.service has begun starting up.
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-01.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-02.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-03.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-04.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-05.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-06.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-07.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-08.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-09.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-10.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-11.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-12.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-13.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-14.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: cannot mount cpu to /cgroup/cpu: Device or resource busy
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/01/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/01/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/02/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/02/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/03/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/03/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/04/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/04/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/05/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/05/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/06/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/06/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/07/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/07/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/08/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/08/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/09/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/09/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/10/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com systemd[1]: cgconfig.service: main process exited, code=exited, status=101/n/a
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/10/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/11/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/11/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/12/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/12/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/13/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/13/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/14/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/14/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com systemd[1]: Failed to start Control Group configuration service.
-- Subject: Unit cgconfig.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cgconfig.service has failed.
--
-- The result is failed.
-------------------------

Any fix or lead to fix, please let me know.

Offline
*
Re: Limit server resources (cgroups)
« Reply #1 on: July 06, 2019, 09:53:21 PM »
I have the same issue. Can't use this feature.

Offline
*
Re: Limit server resources (cgroups)
« Reply #2 on: July 08, 2019, 12:38:06 PM »
for vps servers you need to disabled disk io limits
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: Limit server resources (cgroups)
« Reply #3 on: July 09, 2019, 02:16:13 PM »
for vps servers you need to disabled disk io limits

Yes you are right. Support team told me that on VPS KVM, this limits must be disabled.

Thanks for your reply.

Offline
*
Re: Limit server resources (cgroups)
« Reply #4 on: July 09, 2019, 02:33:59 PM »
Still not working properly... For example, CPU limit is not working.

Offline
*
Re: Limit server resources (cgroups)
« Reply #5 on: June 29, 2020, 10:22:50 PM »
I came across your diary.
It looks like the Disk I/O section of your server is not working.
Common errors on virtual servers such as vmware or kvm.
You want to use the drive speed limiter.
You must fix Disk I/O errors on your system.

Where you still want to use cgroups.
In the installation of Cgroup, put a checkmark in the disk I/O section
Save and restart the service will work.

Offline
*
Re: Limit server resources (cgroups)
« Reply #6 on: October 10, 2021, 03:54:34 PM »
Hi, I am using dedicated server still it's not working if i don't disable I/O limit. Is there have any solutions for it?
Biswas Host Ltd

www.biswashost.com

Domain, Hosting, Cloud Hosting, VPS, Dedicated Server,

Web Design, SSL, VPN, Professional Email & More