My company has F5. I have two app servers which I am accessing using a F5. App servers host same web site. I can access web site as appserver1.xxx.com, appserver2.xxx.com or lb.xxx.com. The last link, I will call as a load balancer link.
F5 provides following options when setting up load balancing: 1. Default (probably a random way of load balancing) 2. Round Robin (will send first message to app server 1, second to app server 2, 3rd message to app server 1…) 3. Least connections (whichever has least number of connections. Not sure what happens when an app server is down…) 4. Observed (a combination of least number of connections plus server performance; i.e., if a server responds faster, it may be sent traffic even if it has more connections???) I do not understand how observed works, but it seemed most sophisticated so I selected it.
Now I did some tests
1. Several users (5 of them) accessed my load balancer link; all of them went to app server 1, why? Why some were not sent to app server 2.
2. I shut down IIS (I have v7) on app server 1, then when users logged on, they went to app server 2. That makes sense.
3. I shut down IIS on app server 2 as well, now we get page found error, which also mak
es sense.
4. Now I started IIS on app server 2 (app server 1 IIS is still down). And when users access load balancer link, they do go to app server 2.That makes sense.
5. Now I brought up IIS on app server 1 so IIS on both servers is up. When Iaccess web site, it takes me to app server 1 which is also OK.
6. Now comes the troubling part, I rebooted app server 1, a Windows Server, reboot takes about 5 minutes. During this time I accessed load balanced web site link, I kept getting error, page not found because F5 was still sending to app server 1. After 5 minutes when app server 1 came up, I could access my web site through load balanced link. I do not understand at all why F5 observed mode behaves differently during reboot vs. when IIS is down. How does it really determine whether web site is down? Really really appreciate your insight to my questions: 1 and 6.