Professional Documents
Culture Documents
DRSmanagestheallocationofresourcestoasetofvirtualmachinesrunningonaclusterofESXhostswiththe goaloffairandeffectiveuseofresources.DRSmakesvirtualmachineplacementandmigration recommendationsthatservetoenforceresourcebasedservicelevelagreements,honorsystemand userspecifiedconstraints,andmaintainloadbalancingacrosstheclusterevenasworkloadschange.Thebest practicespaperResourceManagementwithVMwareDRS(seeResourcesonpage 12foralink)provides materialonDRSusageandbestpractices. VMwareDPMsavespowerbydynamicallyrightsizingclustercapacityaccordingtoworkloaddemands. VMwareDPMrecommendstheevacuationandpoweringoffofESXhostswhenbothCPUandmemory resourcesarelightlyutilized.VMwareDPMrecommendspoweringESXhostsbackonwheneitherCPUor memoryresourceutilizationincreasesappropriatelyoradditionalhostresourcesareneededtomeetHAor userspecifiedconstraints.VMwareDPMexecutesDRSinawhatifmodetoensureitshostpower recommendationsareconsistentwiththeclusterconstraintsandobjectivesbeingmanagedbyDRS.VMware DPMwasintroducedasanexperimentalfeatureintheVMwareInfrastructurereleasethatincludesvCenter Server2.5andESX3.5.SeeResourcesonpage 12foralinktotheVMwareexperimentalsupportstatement.
YoucanthenenableVMwareDPMontheDRScluster.InthesameClusterSettingsdialogbox,selectPower ManagementintheleftpaneasshowninFigure 1.VMwareDPMisdisabled(settoOff)bydefault.Enable VMwareDPMbyselectingeitherManualorAutomatic.Inmanualmode,executionofVMwareDPM recommendationsrequiresconfirmationbytheuser.Inautomaticmode,VMwareDPMrecommendationsare executedwithoutuserconfirmation.BydefaultthisVMwareDPMautomationsettingappliestoallhostsin theclusterasindicatedbytheUseClusterDefaultsettingforeachhost,butyoucanoverridethesettingona perhostbasis.Forexample,youshouldsetanyhostsintheclusterthatcannotbepoweredonviaWoLto Disabled.YoushouldalsosettoDisabledanyotherhoststhatyouneverwantVMwareDPMtopoweroff. OtherpossibleoverridesettingsareAlwaysManualandAlwaysAutomatic.Theseperhostoverridesettings aremeaningfulonlywhenVMwareDPMisenabledfortheclusterasawhole. Figure 1. Enabling VMware DPM
Evaluating Utilization
VMwareDPMevaluatestheCPUandmemoryresourceutilizationofeachESXhostandaimstokeepthe hostsresourceutilizationwithinatargetutilizationrange.VMwareDPMmaytakeappropriateactionwhen thehostsutilizationfallsoutsidethetargetrange.Thetargetutilizationrangeisdefinedas:
Target resource utilization range = DemandCapacityRatioTarget DemandCapacityRatioToleranceHost
VMwareDPMcalculatesanESXhostsresourcedemandastheaggregatedemandoverallthevirtual machinesrunningonthathost.Itcalculatesavirtualmachinesdemandasitsaveragedemandoverahistorical periodoftimeplustwostandarddeviations(cappedatthevirtualmachinesmaximumdemandobserved overthatperiod).Usingavirtualmachinesaveragedemandoveraperiodoftime,ratherthansimplyits currentdemand,isintendedtoensurethatthedemandusedinthecalculationisnotanomalous.This approachalsosmoothsoutanyintermediatedemandspikesthatmightleadtopoweringhostsonandofftoo frequently.ThedefaultperiodoftimeVMwareDPMevaluateswhenitcalculatesaveragedemandthatmay leadtohostpoweronrecommendationsisthepast300seconds(fiveminutes).Whenitcalculatesaverage demandforhostpoweroffrecommendations,thedefaultperiodoftimeVMwareDPMevaluatesisthepast 2400seconds(40minutes).Thedefaulttimeperiodforevaluatinghostpoweronrecommendationsisshorter becauserapidreactionstopoweronhostsareconsideredmoreimportantthanrapidreactionstopoweroff hosts.Inotherwords,providingthenecessaryresourcesforworkloaddemandshasahigherprioritythan savingpower. IfanyhostsCPUormemoryresourceutilizationduringtheperiodevaluatedforhostpoweron recommendationsisabovethetargetutilizationrange,VMwareDPMevaluatespoweringhostson.Ifany hostsCPUandanyhostsmemoryresourceutilizationovertheperiodevaluatedforhostpoweroff recommendationsisbelowthetargetutilizationrangeandtherearenorecommendationstopowerhostson, VMwareDPMevaluatespoweringhostsoff.
Inthiscalculation,RESOURCEisCPUormemory.Thesameformulaisusedforevaluatingbothresources. VMwareDPMcomparesthelowscorevaluesfortheclusterwithoutthecandidatehostpoweredofftothelow scorevaluesifthecandidatehostispoweredoff.IfeitherthecpuLowScorevalueorthememLowScorevalue isimprovedfortheclusterwiththecandidatehostpoweredoffandifthevaluesofcpuHighScoreand memHighScore(seeHostPoweronRecommendationsonpage 7)fortheresultingclusterarenotworsethan thatwiththehostkeptpoweredon,VMwareDPMgeneratesarecommendationtopoweroffthehost.This includesrecommendationstofirstmigratevirtualmachinesoffthathost.VMwareDPMcontinuestoiterate throughthepoweredoncandidatehostsforpoweroffevaluationaslongastheclustercontainsanyhosts belowthetargetutilizationrangeforCPUandmemoryresources. VMwareDPMalsoevaluatesthreeadditionalfactorsthataffectplacingahostinstandbymode. VMwareDPMdoesnotrecommendanyhostpoweroffoperations(henceVMwareDPMiseffectively disabled)iftheDRSmigrationrecommendationthresholdissettofivestars.Withthissetting,DRS generatesVMotionrecommendationsonlytoaddressconstraintviolationsandnottorebalancevirtual machinesacrosshostsinthecluster,meaningthatwhenVMwareDPMrunsDRSinwhatifmodeto evaluatetheimpactofpoweringonastandbyhost,DRSdoesnotproduceanynonmandatory recommendationstomovevirtualmachinestothosehosts. VMwareDPMrejectspoweringdownahostifit,byenteringstandbymode,wouldtakethepoweredon capacityoftheclusterbelowthespecifiedminimum,MinPoweredOnCpuCapacityand MinPoweredOnMemCapacity(seePoweredonCapacityOptionsonpage 9).
Inotherwords,StableOffTimeistheestimatedtimethatthevirtualmachinesutilizationwillremainstable (ClusterStableTime),minusthetimeneededtopoweroffthecandidatehost(HostEvacuationTime + HostPowerOffTime).Thetimetopoweroffahostincludesthetimetoevacuateitsvirtualmachinesaswell asconductanorderlyshutdown.ClusterStableTimeistheVMwareDPMcalculationofwhenthecluster willrequireoneormorehoststobepoweredontosatisfyincreasingresourceutilization.StableOffTimecan beequaltoorlessthanzerowhenClusterStableTimeisespeciallylow.Inthatcase,VMwareDPMdoesnot evaluatethecandidatehostforapoweroffrecommendationbecausenobenefitwouldberealized. Thepoweroffcostiscalculatedasthesummationofthefollowingestimatedresourcecosts: Migrationofvirtualmachinesoffofthehostbeforepoweringitoff UnsatisfiedresourcedemandduringhostpoweronattheendofClusterStableTime Migrationofvirtualmachinesbackontohostsafterthehostsarepoweredon Toestimatethelasttwopointsabove,VMwareDPMcomputesthenumberofhoststhatneedtobepowered onattheendofClusterStableTimeusingaconservativeprojectionthatthedemandofeachvirtualmachine willrisetoahighlevel.Specifically,thisprojectionisthemeanofeachvirtualmachinesactualutilizationover theprevious3600seconds(60minutes)plusthreestandarddeviations.
Utilization Options
TheutilizationoptionsshowninTable 1settheCPUandmemoryresourceutilizationtargetsforeachESX hostoveraperiodoftime. Table 1. Utilization Options and Settings
Option Name DemandCapacityRatioTarget Description:UtilizationtargetforeachESXhost. DemandCapacityRatioToleranceHost Description:TolerancearoundtheutilizationtargetforeachESXhost. Usedtocalculatetheutilizationrange. 18% Note:Defaultutilization rangeis6318. 10to40 Default Value 63% Value Range 40to90
DrsExitedStandbyModeEvent
10
11
G3MechanicalOff
Realtimeclock batteryonly
No
Yes
Resources
AdvancedConfigurationandPowerInterfaceSpecification http://www.acpi.info/DOWNLOADS/ACPIspec30b.pdf ResourceManagementGuide http://www.vmware.com/pdf/vi3_35/esx_3/r35u2/vi3_35_25_u2_resource_mgmt.pdf ResourceManagementwithVMwareDRS http://www.vmware.com/resources/techresources/401 VMwareAPIsandSDKsDocumentation http://www.vmware.com/support/pubs/sdk_pubs.html VMwareDistributedPowerMgmt(DPM)video http://www.youtube.com/watch?v=7CbRS0GGuNc VMwareexperimentalsupportstatement http://www.vmware.com/support/policies/experimental.html VMwareHighAvailability:Concepts,Implementation,andBestPractices http://www.vmware.com/resources/techresources/402 VMwareInfrastructure(VI)APIReferenceDocumentation http://www.vmware.com/support/developer/vcsdk/visdk25pubs/ReferenceGuide/ WakeOnLANCompatibilityasaPrerequisiteforDistributedPowerManagement http://kb.vmware.com/kb/1003373
If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com VMware, Inc. 3401 Hillview Ave., Palo Alto, CA 94304 www.vmware.com Copyright 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware, the VMware boxes logo and design, Virtual SMP, and VMotion are registered trademarks or trademarks of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Revision: 20090120 Item: IN-073-PRD-01-01
12