Failover Virtual server Configuration

ar.65535ar.65535 Member
Can you please let me know if A10 allows to configuration failover VIP?
For Example:
If i have a Virtual server ABC with backends X1/X2/X3, when all of them goes down, the traffic should be forwarded to a failover site where a different virtual server XYZ. That means XYZ should be configured as a failover virtual server to ABC.

Thanks,
Abhi

Comments

  • aaydnalaaydnal Member
    edited April 2017
    Hi Abhi,

    Assuming that the back-end servers X1/X2/X3 are added under a service group.
    Using aFlex we can check for the active members of the service group and redirect to backup vip if all the servers are Down.

    Following is the aFlex:
    aflex create redirect_if_down
    when HTTP_REQUEST {
        if { [active_members example_service_group] < 1 } {
            HTTP::redirect "http://backup.example.com"
        }
    }
    .
    

    and then bind the aFlex to the vip as shown below:
    slb virtual-server abc 10.10.10.1
    port 80 http
    service-group example_service_group
    aflex redirect_if_down

    Hope this helps.

    Avinash A.
    A10 Professional Services Engineer
  • ar.65535ar.65535 Member
    edited April 2017
    Hello Avinash,

    Thank you for the reply, Can you please let me know if this can be done for udp ports?
    Both the vip's in question are udp-514.

    Thanks,
    Abhi
  • ar.65535ar.65535 Member
    edited April 2017
    Also, please provide me with the sample script to redirect udp traffic.
  • aaydnalaaydnal Member
    edited April 2017
    Redirect will not hold if it is a udp port.
    In that case i suggest may be add a back-up service-group/server instead of a back-up vip.

    aFlex:
    aflex create back_up_service-group
    when CLIENT_ACCEPTED {
        if { [active_members example_service_group] < 1 } {
            pool "back_up_service-group"
    		# node "server-ip"
        }
    }
    .
    


    slb virtual-server abc 10.10.10.1
    port 514 udp
    service-group example_service_group
    aflex back_up_service-group

    Let me know if this works. If you need more information , please open a A10 TAC case.
    https://www.a10networks.com/support

    Regards,
    Avinash A.
  • ar.65535ar.65535 Member
    edited April 2017
    Thank You Avinash!
Sign In or Register to comment.