Hi all,
An interesting question came up today that had me thinking, which was how does the health manager decide the priority of instance to restore if a DEA drops off for one reason or another. Is it first come, first server? Or is there more involved?
To give a specific example, Say we have three apps, App1, App2 and App3. They each have 2 instances. We have 2 DEAs that has enough capacity to host 4 instances of applications. Now let's say the instances are distributed as so:
DEA 1
App1 #1
App1 #2
App2 #1
DEA 2
App2 #2
App3 #1
App3 #2
Now let's say DEA 2 goes offline (unexpectedly, so no evacuation done). On CFv1 when I last investigated this, I saw the following behavior:
DEA 1
App1 #1
App1 #2
App2 #1
App2 #2
Which left App3 completely down. Now the ideal (other than building this out with a proper amount of capacity so that there's barely any reserved) is that an instance of App3 would be brought up on DEA 1, not the second instance of App2. This way, both apps are up and online.
I realize this is a super, super simple example and real-world deployments arn't as straight forward, but it's more a question fueled by curiosity
- Brian