Search K
Appearance
Appearance
With the release of DirectAdmin 1.61.6, we now support per-user resource throttling.
The following OS are supported:
session optional pam_systemd.so line to be added to /etc/pam.d/cron)loginctl enable-linger $USER)You may control the following options in user package/settings:
DirectAdmin shows current resource usage of the user under user-level. Any faults can be also seen on user or admin levels.
DirectAdmin offers user isolation and resource throttling. CloudLinux offers additional tools like:
These steps are required for installs of DirectAdmin 1.61.5 and older. Newer versions should have this all done automatically.
It is required to have systemd.unified_cgroup_hierarchy=1 kernel parameter enabled.
If you run OpenVZ/LXC container, you'd need to ask your provider to enable this kernel option for you. Otherwise, just run:
cd /usr/local/directadmin/custombuild
./build grub_confIf you run debian/ubuntu, we also suggest executing the following, as we've noticed some systems not assigning CPU/IO controllers for user slices:
mkdir -p "/etc/systemd/system/user@.service.d"
echo "[Service]" > "/etc/systemd/system/user@.service.d/delegate.conf"
echo "Delegate=pids memory cpu io" >> "/etc/systemd/system/user@.service.d/delegate.conf"If it requires to reboot the server after execution grub_conf command - please do.
If you run PHP as FastCGI, Apache needs to be re-installed:
cd /usr/local/directadmin/custombuild
./build apacheIf you run PHP as PHP-FPM or lsphp, PHP needs to be re-installed:
cd /usr/local/directadmin/custombuild
./build phpResource throttling should work successfully now.