Issue
How to change the LVE limit for all users on the server?
Environment
- Any CloudLinux OS server with LVE limits and users
Solution
1. You can use this one-line script:
cagefsctl --list-enabled | grep -v enabled | grep -v "^$" > 1 && while read line; do lvectl set-user "$line" --iops=5120; done < 1 && rm 1
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.