Posted by kberton
I have 3 primary app servers and 3 backup servers in a SLB Service Group. Let’s call them A1/B1/C1 and A2/B2/C2. In normal operations, all traffic will be LB’d to A1/B1/C1 and A2/B2/C2 are backup servers that will only receive live traffic when there is a failure on any of the 3 primary servers. Service Group Priorities and Min Active Members can help out a great deal here, but there is a twist that I believe requires an aFlex. The requirement is that if A1 fails, it must be replaced by A2; if B1 fails, it must be replaced by B2; and so on.
What would the aFlex script to accomplish this look like?