Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Vmware Affinity Rules

Posted on 2016-10-29
10
Medium Priority
?
134 Views
Last Modified: 2016-11-15
When configuring Affinity rules so that 2 VMs will always stay on the same ESX host, then the host fails and the VMs will not find another ESX host that has enough resources for the 2 VMs together, what will happen ? and how do you ensure that there is always enough resources on other ESX hosts for the 2 VMs together?

Thank you
0
Comment
Question by:jskfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 124
ID: 41865195
When configuring Affinity rules so that 2 VMs will always stay on the same ESX host, then the host fails and the VMs will not find another ESX host that has enough resources for the 2 VMs together, what will happen ?

depends on how rigid you have Admission Control configured, if you have it configured such that it breaks the rule, the VMs will not be allowed to startup on other hosts, because it would break the rules.

and how do you ensure that there is always enough resources on other ESX hosts for the 2 VMs together?

Management and Checking Capacity.

see here

https://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.vsphere.resmgmt.doc/GUID-793013E2-0976-43B7-9A00-340FA76859D0.html
0
 

Author Comment

by:jskfan
ID: 41865217
If you reserve CPU/MEMORY  capacity: 25%
then will the Cluster be able to move around other VMs between ESX hosts to make room for the 2VMs together on one ESX host ?
0
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 41865243
Again it depends on your Admission Rules, and how they are set.

If you have Admission Rules set as default, it will not violate them, and VMs will not failover, so you will have to ensure, if you want VMs to startup on other hosts, to have them disabled.

You will need to ensure you have the resources available to fail over.

If you reserve CPU/MEMORY  capacity: 25%

How ?

Depends on your current loading, how many hosts do you currently have in your Cluster ?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:jskfan
ID: 41865262
To simplify the example:
Let's say I have 4 Hosts with 4GHZ and 4GB RAM each

I have 8 Vms  on the Cluster. each VM is allocated 2GB RAM and 2GHZ CPU
0
 
LVL 124
ID: 41865282
Okay, so you have 4 Hours, with 4GHz and 4GB RAM, RAM will always be the bottleneck.

You have 8 VMs, I assume, these are allocated as

Host 1 - 2 VMs with 2GB and 2GHz - Total 4GB and 4GHz
Host 2 - 2 VMs with 2GB and 2GHz -Total 4GB and 4GHz
Host 3 - 2 VMs with 2GB and 2GHz -Total 4GB and 4GHz
Host 4 - 2 VMs with 2GB and 2GHz - Total 4GB and 4GHz

If also the assumption is that ALL Host are 100% Utilised

So if a Host A was to fail, what do you think would happen ?

In a standard created HA Cluster with Default Settings ?
0
 

Author Comment

by:jskfan
ID: 41865528
I believe If you reserve 25% in admission control, resources will not use 100%
0
 
LVL 124
ID: 41865684
What was the answer to the question ?
0
 

Author Comment

by:jskfan
ID: 41867790
I meant with 25% reserved in Admission Control then,  that will guarantee the 2 VMs can stay on one host if they get vmotioned
0
 
LVL 124
ID: 41887244
do you require any further assistance to close this question?
0
 

Author Closing Comment

by:jskfan
ID: 41888508
Thank you
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question