Applicable to:
- SolusVM 2
Question
How to limit CPU usage for KVM VPS in SolusVM 2 ?
Answer
- Create a backup of Management node:
How-to-backup-restore-SolusVM-2-Management-Node - Access Management node via SSH
-
Enter
solus_apicontainer:# docker exec -it $(docker ps -q -f name=solus_api | head -n1) sh
-
Open the file
resources/views/kvm-libvirt-xml.blade.phpin any text editor:# nano resources/views/kvm-libvirt-xml.blade.php
-
Add the below part after the line
<cpu mode='host-passthrough' />CONFIG_TEXT: <cputune>
<period>1000000</period>
<quota>250000</quota>
</cputune> - Save and exit the file
-
Enter solus_workers container:
# docker exec -it $(docker ps -q -f name=solus_workers | head -n1) sh
- Repeat steps 4-6
Comments
Please sign in to leave a comment.