Application instance reassignment in DEA's on deleting DEA

50 views
Skip to first unread message

Wahaj Ali

unread,
Jun 2, 2014, 9:10:44 AM6/2/14
to vcap...@cloudfoundry.org
When removing a DEA via BOSH, what exactly is the process for reassigning the applications instances that were running on this DEA to some other DEAs. Is that handled completely separately via the Cloud Foundry health monitor (for example once it detects the application instances that are down) or is there some other process? 

Thanks
Wahaj

James Bayer

unread,
Jun 2, 2014, 9:54:24 AM6/2/14
to vcap...@cloudfoundry.org
when a DEA is being shut-down, if it is BOSH deployed, there is a hook to call the deterministic drain script [1].

even if a DEA is shut down harshly, the health manager should take over and coordinate with the cloud controller to restore all app instances that were running on that DEA on available DEA's, it just may not be as smooth/fast if it's not done with the drain script, which sends signal USR2 to the PID of the DEA.


--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/c7db603c-fc60-4537-9e5d-7d31fb3349b2%40cloudfoundry.org.

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Thank you,

James Bayer

wulo...@huawei.com

unread,
Jun 2, 2014, 10:01:44 PM6/2/14
to vcap...@cloudfoundry.org
Hi James,

The drain script just kills the process of DEA, I don't understand why it can restart app on another DEA?

--
Regards
Tim

Ferran Rodenas

unread,
Jun 3, 2014, 12:15:08 AM6/3/14
to vcap...@cloudfoundry.org
It's the CF health manager who detects that there're missing apps (because the DEA has been stopped), and then sends a message to the cloud controller, who deploys again the apps on another available DEA.

This blog post by Cornellia explains all the available HA mechanisms: http://blog.gopivotal.com/cloud-foundry-pivotal/products/the-four-levels-of-ha-in-pivotal-cf

- Ferdy


Reply all
Reply to author
Forward
0 new messages