Forum Discussion

arch_184454's avatar
arch_184454
Icon for Nimbostratus rankNimbostratus
Sep 19, 2015

Load balance one application hosted on two servers using different URL's

Trying to load balance an application hosted on two servers and can be reached by and URL's. I have setup a DNS A record "Server" for the VIP and have created HTTP monitor added the server1 and server2 in pool. When I try to access the the request fails, I see the traffic handed over to pool members in f5 statistics. I am wondering what am I missing, if it is pointed to the pool members hosting the application why the page is not being displayed? Do I need any irules to accomplish this? This should be simple but I am new to F5 and need your guidance. Thank you.

 

2 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Arch, do u need the full uri too Have u tried fiddler to see what's happening or running a tcpdump on the bigip?

     

    What about routing? Will return traffic go back via the bigip or is it routed elsewhere? You many need to add snat automap to test.

     

    N

     

  • Hi Nathan, Sorry for the delayed response. I now have an irule to divert traffic to two servers, and it is working as round robin, and want to get some help to modify this rule so if one node is down the traffic flows to another... I am hoping that someone can provide guidance on how to achieve it.

     

    when RULE_INIT { set ::whichone 0 } when HTTP_REQUEST { switch $::whichone { 0 { HTTP::redirect "" } 1 { HTTP::redirect "" } } set ::whichone [expr ! $::whichone] }