Issue
How to change the LVE limit for all users on the server?
Environment
- Any CloudLinux OS server with LVE limits and users
Solution
You can use this one-line script:
cagefsctl --list-enabled | grep -v enabled | grep -v "^$" | while read user; do lvectl set-user "$user" --iops=5120; done
Where IOPS can be replaced with any other limit, like CPU, IOPS, PMEM, e.t.c.
Useful links
https://docs.cloudlinux.com/command-line_tools/#lvectl
https://docs.cloudlinux.com/command-line_tools/#cagefs
Comments
0 comments
Please sign in to leave a comment.