• Skip to site navigation
  • Skip to blog entries
  • Skip to archive page
  • Skip to right sidebar

Don’t add resource pools for fun, they’re dangerous

NTPRO.NL - Eric Sloof

  • NTPRO.NL
  • Online Training
  • VMworld
  • Videos
  • Tools
  • iTunes
  • About

Thursday, 3 June 2010

Don’t add resource pools for fun, they’re dangerous

In this article I will explain the hidden dangers when adding a resource pool with default settings to a DRS cluster, but first off all kudos to my famous virtualization friends Duncan Epping, Frank Denneman and Bouke Groenescheij. They already have written several great articles about resource pools, shares and reservations. You could ask yourself is there anymore to say about using resource pools? Well there is. I often see production environments where people have added two or three resource pools just for fun saying; there’s no reservation or limit on it so it doesn’t matter. Well they’re just plain wrong! On top of that, they even use resource pools as folders to group their virtual machines. Let’s look at an example.

In my home environment I’ve created two resource pools and one vApp. I didn’t adjust the settings and left everything default. I’ve added 8 virtual machines to recourse pool “test 1”. The two resource pools and the vApp are sibling with three virtual machines in the root resource pool. Take a close look at the ”% Shares” column in the “Resource allocation tab”. The sibling virtual machines will get 18% of the resources when there’s contention. The  vApp will get 26%, so that’s 13% for vCenter and 13% for SQL2008. The virtual machines within resource pool “test 1” will have to divide 26% among 8 virtual machines so that’s 3,25% per virtual machine. The sibling root resource pool virtual machines will get 6% each. So don’t use resource pools for cosmetic reasons, you better use virtual machine folders instead. As long as there’s no contention, there’s no problem. But as soon as you reach the max the resources might be divided in a way you didn’t expect.

Posted by
Eric Sloof
in vSphere at 22:29 | 4 Comments | 1 Trackback
Bookmark and Share
Trackbacks
Trackback specific URI for this entry
Video: VMware vCenter AppSpeed Demo2
YouTube user eitang8 from Israël has created a nice VMware AppSpeed demo. Thanks to Eric Sloof from NTPRO.NL for finding and sharing.
Weblog: VMblog.com - Virtualization Technology News and Information for Everyone
Tracked: Jun 04, 03:42
Comments
Display comments as (Linear | Threaded)
Questions: If a VM that is not running doesn't use resources, does the same apply to shares etc. For instance, if I have a lot of test VMs in my environment (which I do) is it better not to have them registered with vCenter until I need them? Do they occupy resources simply by being included in available machines? Is there a way to make them available to be turned on when needed, yet remain completely off the resource grid when not in use? Could you clarify that?
#1 HughBorg707 (Homepage) on 2010-06-04 00:22 (Reply)
Resource Pools have become a hot topic due to the vSphere 4 Design class. This class apparently was codesigned with some VCDXs. It became clear during the design that even VCDXs had misconceptions about how RPs actually worked. This misconception has actually led to the coursework explicitly calling out RPs as something to be careful of, or even just flat our avoid. The rec is to use shares on VMs. If you have High (8000), Normal (4000), and Low (2000) RPs for the purpose of controlling shares and they each have 4 VMs in them, then the RPs will work the way most of us thought they would work. However, if you move 4 of the VMs to the High then you have 8H, 2N, and 2L. When there is contention the shares will look like this: H - 8000 shares / 8 VMs = 1000 shares per VM N - 4000 shares / 2 VMs = 2000 shares per VM L - 2000 shares / 2 VMs = 1000 shares per VM In this scenario your High RP VMs are acutally getting less then the Normal VMs and equal to the L VMs. So basically the only way for the RPs to work the way that WE want them to is to maintain a balanced # of VMs per RP or if they are unbalanced make sure that the lower tiered RPs contain more VMs than the higher tiers. Remmember shares only come into play during times of resource contention. So if you have no contention then the RPs are used for anything but organization. -MattG
#2 MattG on 2010-06-05 20:42 (Reply)
Aren't shares set on individual VMs cleared after a vMotion? In my tests they get reset because the porportions change. If you give a VM 1000 shares on host 1, and it vmotions to host 2, the shares on the hosts may add up differently and you could go from 2:1 to 1:2 just based on the number of VMs. What I fail to understand about VMware's implementation of resource pools is why you MUST dictate a share count. This forces me to take into account the shares involved across the board and removes a lot of the "dynamic" ability of DRS and just general usage. If I move a VM to a different resource pool or even add a new VM I have to figure out how this changes the whole scheme. In fact if I used low shares numbers (like the default values) then the addition/subtraction of a single VM could make a big difference. So if I want to create resource pools it is in my best interest to create them with a very high share count so a single addition or subtraction doesn't change the overall intended ratios by very much. I think an additional option when creating a resource pool/vApp should be avaiable that allows the division of shares to be divied from the parent without needing to add the additional level of concern. That way I can use all the benefits of a vApp without worrying about my 4 VMs getting screwed because I only have 4000 shares in times of contention.
#2.1 brandon rice on 2010-09-08 23:25 (Reply)
So looking at that picture this issue will also happen with vApps? would we have any control over this? or am I reading this wrong
#3 Simon Wilmann on 2010-09-09 06:17 (Reply)
Add Comment
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

 
   
Submitted comments will be subject to moderation before being displayed.
 
 


Twitter RSS FeedLinkedIn

www.hetesambal.nl

Veeam Webinar with Doug Hazelman: 5 Steps to Successful Backup & Replication for Hyper-V! Watch it now >>

Recent Entries

Storage Design and Implementation in vSphere 5.0 - The Rough Cuts
Thursday, January 19 2012
Top 25 Free Tools for VMware vSphere presented by David Davis and Kendrick Coleman
Monday, January 16 2012
LG Android running VMware Horizon Mobile hands-on
Saturday, January 14 2012
Forbes Guthrie has released the vSphere 5 vReference Card
Thursday, January 12 2012
VMworld Session - VMware vMotion in VMware vSphere 5: Architecture, Performance & Best Practices
Wednesday, January 11 2012
Voice Over IP (VoIP) Performance Evaluation on VMware vSphere 5.0
Tuesday, January 10 2012
VMware vCloud Director 1.5 Performance and Best Practices
Monday, January 9 2012
VMware vCenter Site Recovery Manager 5.0 Performance and Best Practices
Sunday, January 8 2012
New Training - VMware vSphere 5 Design Workshop
Saturday, January 7 2012
New Training - VMware View 5 Install, Configure and Manage
Friday, January 6 2012

Archive

  • February 2012 (3)
  • January 2012 (23)
  • December 2011 (21)
  • November 2011 (24)
  • October 2011 (27)
  • September 2011 (26)
  • August 2011 (35)
  • July 2011 (26)
  • June 2011 (15)
  • May 2011 (20)
  • April 2011 (22)
  • March 2011 (22)
  • February 2011 (18)
  • January 2011 (13)
  • December 2010 (23)
  • November 2010 (18)
  • October 2010 (31)
  • September 2010 (22)
  • August 2010 (23)
  • July 2010 (19)
  • June 2010 (19)
  • May 2010 (19)
  • April 2010 (20)
  • March 2010 (23)
  • February 2010 (22)
  • January 2010 (30)
  • December 2009 (37)
  • November 2009 (29)
  • October 2009 (27)
  • September 2009 (36)
  • August 2009 (35)
  • July 2009 (35)
  • June 2009 (43)
  • May 2009 (35)
  • April 2009 (56)
  • March 2009 (51)
  • February 2009 (69)
  • January 2009 (69)
  • December 2008 (60)
  • November 2008 (56)
  • October 2008 (49)
  • September 2008 (63)
  • August 2008 (44)
  • July 2008 (54)
  • June 2008 (26)
  • May 2008 (34)
  • April 2008 (27)
  • March 2008 (38)
  • February 2008 (29)
  • January 2008 (35)
  • December 2007 (24)
  • November 2007 (23)
  • October 2007 (20)
  • September 2007 (54)
  • August 2007 (15)
  • July 2007 (22)
  • June 2007 (13)
  • May 2007 (8)
  • April 2007 (20)
  • March 2007 (10)
  • Recent...
  • Older...
Based on the s9y Bulletproof template framework
Powered by s9y – Template by Bulletproof development team.
  • NTPRO.NL
  • Online Training
  • VMworld
  • Videos
  • Tools
  • iTunes
  • About