Articles in this section

How to limit CPU usage for KVM VPS in SolusVM 2 ?

Applicable to:

  • SolusVM 2 

Question

How to limit CPU usage for KVM VPS in SolusVM 2 ?

Answer

  1. Create a backup of Management node:
    How-to-backup-restore-SolusVM-2-Management-Node
  2. Access Management node via SSH
  3. Enter solus_api container:

    # docker exec -it $(docker ps -q -f name=solus_api | head -n1) sh

  4. Open the file resources/views/kvm-libvirt-xml.blade.php in any text editor: 

    # nano resources/views/kvm-libvirt-xml.blade.php

  5. Add the below part after the line <cpu mode='host-passthrough' /> 

    CONFIG_TEXT: <cputune>
    <period>1000000</period>
    <quota>250000</quota>
    </cputune>

  6. Save and exit the file
  7. Enter solus_workers container:

    # docker exec -it $(docker ps -q -f name=solus_workers | head -n1) sh

  8. Repeat steps 4-6
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.