Scenario Practice

This chapter mainly describes the scenario practice of two affinity group policies to better manage VM instances and hosts.
  • Anti-affinity group (soft) for VM instances and hosts
  • Anti-affinity group (hard) for VM instances and hosts

VM Instance | Host Anti-Affinity Group (Soft)

This topic mainly describes the scenario practice of the anti-affinity group (soft) to better manage VM instances and hosts.

Scenario: In a cluster environment, you have four business VM instances, and want to deploy these VM instances dispersedly on three different hosts.

Procedure
  1. Create an anti-affinity group (soft).
  2. Create four business VM instances by specifying this anti-affinity group.
  3. Verify that these four business VM instances are dispersedly deployed on three different hosts as much as possible.
  1. Create an anti-affinity group (soft).
    In the navigation pane of the ZStack Private Cloud UI, choose Resource Pool > Affinity Group. On the Affinity Group management page, click Create Affinity Group. On the displayed Create Affinity Group page, set the following parameters:
    • Name: Enter a name for the affinity group, such as anti-affinity group (soft).
    • Description: Optional. Enter a description for the affinity group.
    • Policy: Specify an affinity group policy: anti-affinity group (soft).
    Create an anti-affinity group (soft), as shown in Create Anti-Affinity Group (Soft).
    Figure 1. Create Anti-Affinity Group (Soft)


  2. Create four business VM instances by specifying this affinity group.
    In the navigation pane of the ZStack Private Cloud UI, choose Resource Pool > VM Instance. On the VM Instance management page, click Create VM Instance. On the displayed Create VM Instance page, set the following parameters:
    • Add Type: Select Multiple.
    • Create Count: Enter the number of VM instances to be created, for example, 4.
    • Name: Enter a name for the VM instance.
    • Description: Optional. Enter a description for the VM instance.
    • Instance Offering: Select an appropriate instance offering.
    • Image: Select an image for the VM instance.
    • Network: Select a network for the VM instance.
    • Advanced: Optional. Customize your advanced settings for the VM instance as needed. In this scenario practice, set the following parameters:
    Figure 2. Create VM Instance with Affinity Group




  3. Verify that these four business VM instances are dispersedly deployed on three different hosts as much as possible.

    On the VM Instance management page, view that four business VM instances are dispersedly deployed on three different hosts and the affinity group (soft) takes effect, as shown in Verify Anti-Affinity Group (Soft).

    Figure 3. Verify Anti-Affinity Group (Soft)



VM Instance | Host Anti-Affinity Group (Hard)

This topic mainly describes the scenario practice of the anti-affinity group (hard) to better manage VM instances and hosts.

Scenario: In a cluster environment, you have three business VM instances, and want to deploy these VM instances dispersedly on three different hosts.

Procedure
  1. Create an anti-affinity group (hard).
  2. Create three business VM instances by specifying this anti-affinity group.
  3. Verify that these three business VM instances are dispersedly deployed on three different hosts as much as possible.
  1. Create an anti-affinity group (hard).
    In the navigation pane of the ZStack Private Cloud UI, choose Resource Pool > Affinity Group. On the Affinity Group management page, click Create Affinity Group. On the displayed Create Affinity Group page, set the following parameters:
    • Name: Enter a name for the affinity group, such as anti-affinity group (hard).
    • Description: Optional. Enter a description for the affinity group.
    • Policy: Specify an affinity group policy: anti-affinity group (hard).
    Create an anti-affinity group (hard), as shown in Create Anti-Affinity Group (Hard).
    Figure 1. Create Anti-Affinity Group (Hard)


  2. Create three business VM instances by specifying this anti-affinity group.
    In the navigation pane of the ZStack Private Cloud UI, choose Resource Pool > VM Instance. On the VM Instance management page, click Create VM Instance. On the displayed Create VM Instance page, set the following parameters:
    • Add Type: Select Multiple.
    • Create Count: Enter the number of VM instances to be created, for example, 3.
    • Name: Enter a name for the VM instance.
    • Description: Optional. Enter a description for the VM instance.
    • Instance Offering: Select an appropriate instance offering.
    • Image: Select an image for the VM instance.
    • Network: Select a network for the VM instance.
    • Advanced: Optional. Customize your advanced settings for the VM instance as needed. In this scenario practice, set the following parameters:
    Figure 2. Create VM Instance with Affinity Group




  3. Verify that these three business VM instances are dispersedly deployed on three different hosts to the greatest extent.

    On the VM Instance management page, view that four business VM instances are dispersedly deployed on three different hosts and the affinity group (hard) takes effect, as shown in Verify Anti-Affinity Group (Hard)

    .
    Figure 3. Verify Anti-Affinity Group (Hard)


So far, we have introduced how to use these two affinity group policies for VM instances and hosts.

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.

Download

Not filled the basic info yet? Click here.

Invalid email address or mobile number.

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)

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)

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.