Set QoS for Basic Resources

Basic resources refer to root volumes, data volumes, NICs, virtual IPs, and VPC vRouters. You can set QoS for these basic resources.


Set QoS for Root Volume

This topic describes how to set QoS for a VM root volume and check the setting.

Before you begin this practice, make sure that you have deployed a ZStack Cloud of the latest version.

To set QoS for a VM root volume, follow these steps:
  • Create an instance offering.
  • Create a VM instance.
  • Set QoS for the VM root volume.
  • Check the root volume QoS.
  1. Create an Instance Offering

    On the main menu of ZStack Cloud, choose Resource Center > Resource Pool > Compute Configuration > Instance Offering. On the Instance Offering page, click Create Instance Offering. Then, the Instance Offering page is displayed. On the displayed page, you can set QoS for the instance offering you are creating through the following parameters:

    • Set Disk IOPS: Optional. You can set the disk maximum reads/writes per second (IOPS).
      If you disable this parameter, the disk IOPS is unlimited. If you need to limit the disk IOPS, enable this parameter and choose either of the following methods:
      • By Total IOPS: Set a maximum reads & writes IOPS.
      • By Read/Write IOPS: Set a maximum read IOPS and a maximum write IOPS respectively.
        • Read IOPS: Set a maximum read IOPS.
        • Write IOPS: Set a maximum write IOPS.
    • Set Disk Bandwidth: Optional. Set the maximum I/O bandwidth. Unit: Kbps, Mbps, and Gbps.
      If you disable this parameter, the disk I/O bandwidth is unlimited. If you need to limit the disk I/O bandwidth, enable this parameter and choose either of the following methods:
      • By Total Speed: Set a maximum read & write speed.
      • By Read/Write Speed: Set a maximum read speed and a maximum write speed respectively.
        • Read Speed: Set a maximum read speed.
        • Write Speed: Set a maximum write speed.
  2. Create a VM Instance

    On the main menu of ZStack Cloud, choose Resource Center > Resource Pool > Virtual Resource > VM Instance. On the VM Instance page, click Create VM Instance and choose Standard Creation. Create a VM instance from the instance offering you created before. The VM instance QoS is consistent with the QoS you set for the instance offering.

  3. Modify VM root volume QoS.
    On the Configuration Info tab of the VM details page, modify the QoS of the VM root volume.
    Figure 1. Modify Root Volume QoS


  4. Check VM Root Volume QoS
    Assume that the disk bandwidth is 50 MB/s in this practice. Run fio commands to check the QoS of the VM root volume.
    1. Create a VM instance on ZStack Cloud. The QoS of the instance offering this VM based on is not limited.
    2. Run the following fio command to pressurize the disk I/O for 80 seconds. The IOPS of the VM root volume is 3198.
      fio -filename=/tmp/test -direct=1 -iodepth 1 -thread -rw=read -ioengine=psync -bs=16k -size=4G -numjobs=10 -runtime=80 -group_reporting -name=mytest
      Figure 2. IOPS of VM Root Volume With Unlimited QoS


    3. Change the VM root volume QoS to 5 MB/s. Run the following fio command to presurrize the disk I/O for 80 seconds. The IOPS of the VM root volume is 299.
      Figure 3. IOPS of VM Root Volume With Limited QoS


    4. As proved in the step b and c, the QoS you set takes effect and the root volume IOPS reduces to a QoS threshold level. You can also see the root volume IOPS trend in the Monitoring Data part on the VM details page.
      Figure 4. Monitoring Data of Root Volume


    Now, you have set a QoS for a VM root volume successfully. For more action information of VM root volume, see the VM-instance-relevant chapters in User Guide.


Set QoS for NIC

This topic describes how to set a QoS for an NIC and check the setting.

Before you begin the practice, make sure that you have deployed a ZStack Cloud of the latest version.

To set a QoS for an NIC, follow these steps:
  • Create an instance offering.
  • Create a VM instance.
  • Modify the NIC QoS.
  • Check the NIC QoS.
  1. Create an instance offering.

    On the main menu of ZStack Cloud, choose Resource Center > Resource Pool > Compute Configuration > Instance Offering. On the Instance Offering page, click Create Instance Offering. Then, the Instance Offering page is displayed. On the displayed page, you can set QoS for the instance offering you are creating through the following parameters:

    • Set Disk IOPS: Optional. You can set the disk maximum reads/writes per second (IOPS).
      If you disable this parameter, the disk IOPS is unlimited. If you need to limit the disk IOPS, enable this parameter and choose either of the following methods:
      • By Total IOPS: Set a maximum reads & writes IOPS.
      • By Read/Write IOPS: Set a maximum read IOPS and a maximum write IOPS respectively.
        • Read IOPS: Set a maximum read IOPS.
        • Write IOPS: Set a maximum write IOPS.
    • Set Disk Bandwidth: Optional. Set the maximum I/O bandwidth. Unit: Kbps, Mbps, and Gbps.
      If you disable this parameter, the disk I/O bandwidth is unlimited. If you need to limit the disk I/O bandwidth, enable this parameter and choose either of the following methods:
      • By Total Speed: Set a maximum read & write speed.
      • By Read/Write Speed: Set a maximum read speed and a maximum write speed respectively.
        • Read Speed: Set a maximum read speed.
        • Write Speed: Set a maximum write speed.
  2. Create a VM instance.

    On the main menu of ZStack Cloud, choose Resource Center > Resource Pool > Virtual Resource > VM Instance. On the VM Instance page, click Create VM Instance and choose Standard Creation. Create a VM instance based on the instance offering you created before. The VM instance QoS is consistent with the QoS you set for the instance offering.

  3. Modify the NIC QoS.
    On the Configuration Info tab of the VM details page, you can modify the VM NIC QoS.
    Figure 1. Modify NIC QoS


  4. Check the NIC QoS.
    Assume that the network bandwidth is 500 Mbps in this practice. Use the VM instance you create here as a sender and another VM instance or host as a receiver. Run iperf3 commands to check the NIC QoS.
    1. Create a VM instance on ZStack Cloud. The QoS of the instance offering the VM instance based on is not limited.
    2. Run iperf3 -s on the receiver and iperf3 -c x.x.x.x(the receiver IP) -i 1 -t 1000 on the sender to query the bandwidth speed.
      Figure 2. Upstream/Downstream Bandwidth of NIC With Unlimited QoS


    3. Set the NIC QoS to 50 MB/s and check the bandwidth speed.
      Figure 3. Upstream/Downstream Bandwidth of NIC With Limited QoS


    4. As proved in step b and c, the QoS you set takes effect and the NIC upstream/downstream bandwidth reduces to a threshold level. You can also see the bandwidth trend in the Monitoring Data on the VM details page.
      Figure 4. Monitoring Data of VM NIC


    Now, you have set a QoS for an NIC successfully. For more information about NIC, see VM-instance-relevant chapters in User Guide.






Back to Top

Download

Already filled the basic info?Click here.

Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

An email with a verification code will be sent to you. Make sure the address you provided is valid and correct.

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.
同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
ZStack Training and Certification
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io
Request Trial
Enter at least 2 characters.
Invalid mobile number.
Enter at least 4 characters.
Invalid email address.
Wrong code. Try again. Send Code Resend Code (60s)

同意 不同意

I have read and concur with the Site TermsPrivacy PolicyRules and Conventions on User Management of ZStack Cloud

Email Us

contact@zstack.io

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.

The download link is sent to your email address.

If you don't see it, check your spam folder, subscription folder, or AD folder.
Or click on the URL below. (For Internet Explorer, right-click the URL and save it.)

Thank you for using ZStack products and services.

Submit successfully.

We'll connect soon.

Thank you for using ZStack products and services.