vSphere Availability

 View Only
  • 1.  Shutdown development VMs on HA failover to free up resources

    Posted Jul 15, 2010 09:11 AM

    Hi,

    we have a customer who wants a two node ha cluster but doesn’t want to waste 50% of the resources of the hardware. He plans an equal number of production and development VMs on the cluster. Further more he does not care about the availability of the development VMs.

    Is it possible to automatically shutdown the development VMs to free up resources for the failover of the production VMs on the remaining ESX host in case of a host failure?

    If this is possible, we can “overprovision” the two ESX servers with the development VMs and still failover the production VMs.

    The only solution I can think of at the moment is scripting.

    Thanks in advance,

    Sascha



  • 2.  RE: Shutdown development VMs on HA failover to free up resources

    Posted Jul 15, 2010 12:30 PM

    Actually not via standard HA functionality. You can not shut down VMs on HA event, but you can choose which VMs are to be restarted if host fails and which not.

    You can do what you requested via script. Connect to vCenter, check if all host are alive, and if not - shutdown VMs form specified list.


    ---

    MCSA, MCTS Hyper-V, VCP 3/4, VMware vExpert

    http://blog.vadmin.ru



  • 3.  RE: Shutdown development VMs on HA failover to free up resources

    Posted Jul 15, 2010 01:06 PM

    Thanks for your answer.

    How long does HA try to restart the VMs if there are insufficient resources? It will take some time to shut down all the development VMs after my script kicks in. I think I'll have to start the "left over" production VMs with the script, too.

    Sascha



  • 4.  RE: Shutdown development VMs on HA failover to free up resources

    Posted Jul 18, 2010 11:06 PM

    There is no time limit. If there are not enough resources in the cluster, HA will wait until more resources become available and then attempt the restarts.

    Elisha



  • 5.  RE: Shutdown development VMs on HA failover to free up resources

    Posted Jul 19, 2010 09:54 AM

    Elisha, how often HA will check if resources are available?


    ---

    MCSA, MCTS Hyper-V, VCP 3/4, VMware vExpert

    http://blog.vadmin.ru



  • 6.  RE: Shutdown development VMs on HA failover to free up resources

    Posted Jul 19, 2010 08:58 PM

    HA should discover the resource changes very quickly (it gets notified when they occur, as opposed to polling for them periodically) and then decide if there are enough resources to perform a failover.



  • 7.  RE: Shutdown development VMs on HA failover to free up resources

    Posted Jul 20, 2010 06:08 AM

    Thanks for your help. Scripting seems to be the only solution.