Forum Discussion
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
Cirrocumulus
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
- arch_184454
Nimbostratus
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] }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com