javascript:void(0)

Thursday, July 21, 2011

New vSphere 5 HA, DRS and SDRS Advanced/Hidden Options

While testing the new HA (FDM) in vSphere 5 during the beta, I had noticed a new warning message on one of the ESXi 5.0 hosts "The number of heartbeat datastores for host is 1, which is less than required: 2"
I wondered if this was something that could be disabled as long as the user was aware of this. Looking at the new availability guide, I found that two new advaned HA have been introduced relating to datastore heartbeat which is a secondary means of determining whether or not a host has been partitioned, isolated or has failed.
das.ignoreinsufficienthbdatastore - Disables configuration issues created if the host does not
have sufficient heartbeat datastores for vSphere HA. Default
value is false.
das.heartbeatdsperhost - Changes the number of heartbeat datastores required. Valid
values can range from 2-5 and the default is 2.
To disable the message, you will need to add this new advanced setting under the "vSphere HA" Advanced Options second and set the value to be true.
You then need to perform a reconfiguration of vSphere HA for this to take into effect. One method is to just disable/re-enable vSphere HA and the message is now gone. If you know you will have less than the minimal 2 datastores for heartbeating, you can configure this option when you first enable vSphere HA.

I was curious (obviously) to see if there were other advanced options and searching through the vpxd binary, I located some old and new advanced options that maybe applicable to vSphere DRS, DPM and SDRS.

Disclaimer: These options may or may not have been properly documented from my research/digging and it is most likely not supported by VMware. Please take caution if you decide to play with this advanced settings.

SettingDescription
AvgStatPeriodStatistical sampling period in minutes
CapRpReservationAtDemandCaps the RP entitled reservation at demand during reservation divvying
CompressDrmdumpFilesSet to 1 to compress drmdump files & to 0 to not compress them
CostBenefitEnable/disable the use of cost benefit metric for filtering moves
CpuActivePctThreshActive percentage threshold above which the VM's CPU entitlement cap is increased to cluster maximum Mhz. Set it to 125 to disable this feature
DefaultDownTimeDown time (millisecs) to use for VMs w/o history (-1 -> unspecified)
DefaultMigrationTimeMigration time (secs) to use for VMs w/o history (-1 -> unspecified)
DefaultSioCapacityInIOPSDefault peak IOPS to be used for datastore with zero slope
DefaultSioDeviceInterceptDefault intercept parameter in device model for SDRS in x1000
DemandCapacityRatioTargetunknown
DemandCapacityRatioToleranceHostDPM/DRS: Consider recent demand history over this period for DPM power performance & DRS cost performance decisions
DumpSpaceDisk space limit in megabytes for dumping module and domain state, set to 0 to disable dumping, set to -1 for unlimited space
EnableMinimalDumpingEnable or Disable minimal dumping in release builds
EnableVmActiveAdjustEnable Adjustment of VM Cpu Active
EwmaWeightWeight for newer samples in exponential weighted moving averagein 1/100's
FairnessCacheInvalSecMaximum age of the fairness cache
GoodnessMetricGoodness metric for evaluating migration decisions
GoodnessPerStarMaximum goodness in 1/1000 required for a 1-star recommendation
IdleTaxIdle tax percentage
IgnoreAffinityRulesForMaintenanceIgnore affinity rules for datastore maintenance mode
IgnoreDownTimeLessThanIgnore down time less than this value in seconds
IoLoadBalancingAlwaysUseCurrentAlways use current stats for IO load balancing
IoLoadBalancingMaxMovesPerHostMaximum number of moves from or to a datastore per round
IoLoadBalancingMinHistSecsMinimum number of seconds that should have passed before using current stats
IoLoadBalancingPercentileIO Load balancing default percentile to use
LogVerboseTurn on more verbose logging
MinGoodnessMinimum goodness in 1/1000 required for any balance recommendation; if <=0, min set to abs value; if >0, min set to lessor of option & value set proportionate to running VMs, hosts, & rebal resources
MinImbalanceMinimum cluster imbalance in 1/1000 required for any recommendations
MinStarsForMandMovesMinimum star rating for mandatory recommendations
NumUnreservedSlotsNumber of unreserved capacity slots to maintain
PowerOnFakeActiveCpuPctFake active CPU percentage to use for initial share allocation
PowerOnFakeActiveMemPctFake active memory percentage to use for initial share allocation
PowerPerformanceHistorySecsunknown
PowerPerformancePercentileMultiplierDPM: Set percentile for stable time for power performance
PowerPerformanceRatioDPM: Set Power Performance ratio
PowerPerformanceVmDemandHistoryNumStdDevDPM: Compute demand for history period as mean plus this many standard deviations, capped at maximum demand observed
RawCapDiffPercentPercent by which RawCapacity values need to differ to be signicant
RelocateThreshThreshold in stars for relocation
RequireMinCapOnStrictHaAdmitMake Vm power on depend on minimum capacity becoming powered on and on any recommendations triggered by spare Vms
ResourceChangeThreshMinimum percent of resource setting change for a recommendation
SecondaryMetricWeightWeight for secondary metric in overall metric
SecondaryMetricWeightMultWeight multiplier for secondary metric in overall metric
SetBaseGoodnessForSpaceViolation-1*Goodness value added for a move exceeding space threshold on destination
SetSpaceLoadToDatastoreUsedMBIf 0, set space load to sum of vmdk entitlements [default]; if 1, set space load to datastore used MB if higher
SpaceGrowthSecsThe length of time to consider in the space growth risk analysis. Should be an order of magnitude longer than the typical storage vmotion time.
UseDownTimeEnable/disable the use of downtime in cost benefit metric
UseIoSharesForEntitlementUse vmdk IO shares for entitlement computation
UsePeakIOPSCapacityUse peak IOPS as the capacity of a datastore
VmDemandHistorySecsHostOnunknown
VmDemandHistorySecsSoftRulesConsider recent demand history over this period in making decisions to drop soft rules
VmMaxDownTimeReject the moves if the predicted downTime will exceed the max (in secs) for non-FT VM
VmMaxDownTimeFTReject the moves if the predicted downTime will exceed the max (in Secs) for FT VM
VmRelocationSecsAmount of time it takes to relocate a VM

As you can see the advanced/hidden options in the above table can be potentially applicable to DRS, DPM and SDRS and I have not personally tested all of the settings. There might be some interesting and possibly useful settings, one such setting is SDRS IgnoreAffinityRulesForMaintenance which ignores the affinity rules for datastore maintenance mode. To configure SDRS Advanced Options, you will need to navigate over to the "Datastore" view and edit a Storage Pod under "SDRS Automation" and selecting "Advanced Option"

5 comments:

  1. Good post but I would like to stress that unless VMware Support specifically requests to modify the advanced SDRS/DRS/DPM settings these should not be modified!

    ReplyDelete
  2. @depping,

    Agreed! Hence the disclaimer before the goodies :) Per the Beta release, IgnoreAffinityRulesForMaintenance is actually set by default with 0 ... curious if that'll be the case in GA

    ReplyDelete
  3. Great Post William. Clearing up warnings in my lab today and the Datastore Heartbeat setting was just what I needed.

    Thanks.
    CARLO.

    ReplyDelete
  4. I build the vsphere5 test enviroment,

    but can`t see the HA Advanced Options in VC

    really strange

    this is the similar discuss

    http://communities.vmware.com/message/2001984#2001984

    ReplyDelete

 
/*http://blog.cartercole.com/2009/10/awesome-syntax-highlighting-made-easy.html*/