This discussion is archived
6 Replies Latest reply: Aug 24, 2012 12:49 PM by user157995 RSS

Automatically stop development VM in case of HA event

28686 Newbie
Currently Being Moderated
Hello,

Can we create a policy/anti-affinity group somehow so that in the case of a failure, production VMs fail over to another server and some specific VM are stopped automatically ?

Thank you for your hints...

Best Regards,

Gregory
  • 1. Re: Automatically stop development VM in case of HA event
    user411446 Newbie
    Currently Being Moderated
    Hello,

    I'm sorry if my answer is obvious or not helpful, but if I have correctly understood your problem you basically need to enable HighAvailability on production VMs, this means that in case of server failure these VMs will be automatically restarted on another VM server.

    For Virtual Machines that are NOT in production you could just disable HA so in case of server failure they will not be started automatically.

    Hope this could help.

    Greets!!
  • 2. Re: Automatically stop development VM in case of HA event
    28686 Newbie
    Currently Being Moderated
    Hello,

    I'd like to push it a bit further (and that's actually my question). I'm fine with the production VM to be restarted by the HA feature. What I would like to get is "some of the development VM to be STOPPED automatically in the event we loose a server. This is to make sure those production VM that should fail over can be actually be restarted, even if the development server is over provisioned".

    This would allow us (1) to provision one server for dev AND (2) rely on the HA feature, not only to failover the VM but also to reclaim memory/cpu of the dev server, in this case. If it doesn't exist, could we hook a script in the HA process somehow ? Or maybe, the anti-affinity groups could somehow be useful. Any idea ?

    Best Regards,

    Gregory
  • 3. Re: Automatically stop development VM in case of HA event
    BjornNaessens Newbie
    Currently Being Moderated
    You could script this with the OVM_UTILs package.

    Check every 5 minutes ( or faster ), if there is a server down.
    If it is
    - Stop the dev vms

    - Check if Production vm's that have HA were not able to failover
    - If there were
    Start those
    - else nothing
    else nothing

    ovm_utils is very powerfull ( search for it on metalink ).
  • 4. Re: Automatically stop development VM in case of HA event
    28686 Newbie
    Currently Being Moderated
    Hello,

    I wish it could really be out-of-the-box or at least hooked into the failover process. Any other idea if its somehow feasible and supported other than by polling VM state ?

    Best Regards

    Gregory
  • 5. Re: Automatically stop development VM in case of HA event
    BjornNaessens Newbie
    Currently Being Moderated
    As far as I know, there is no way in the current version to have the ovm behave as you described. I hope it's in the roadmap. Hopefully we'll know more after openworld ;)
  • 6. Re: Automatically stop development VM in case of HA event
    user157995 Explorer
    Currently Being Moderated
    Your scenario is very specific to your use case, so finding a supported out-of-box solution isn't going to happen. This is why the brains at oracle created ovm_utils, so it allows you to make your own processes.

    Most shops would size their environment accordingly, so there's enough capacity to absorb a HA event, and completely avoid the "HA shuffle" procedure. Obviously that's the right way to do it, but can be more costly.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points