I develop a web application that needs to be load balanced across 4 webservers. My company is purchasing the load balancer hardware (Cisco). There is confusion on how to tell the load balancer that a webserver should be in the rotation.
The IT Hardware support team wants me to create a one page web application that will sit next to the main web application. I was told that this small one page app should call the database and do an INSERT, UPDATE, and DELETE on a table. Then the app should return a status code, which in turn the load balancer will be able to read and determine whether to keep this webserver in the rotation. This app will have to reside on all of the load balanced servers. The one page app would then be polled every 5 seconds by the load balancer.
I think that this sounds like an absolute HACK. It sounds like unnecessary work and overhead on the database. The hardware team is trying to convince me that this is the right way to go. I completely DISAGREE! My argument is that the load balancer should not care about the database connection. We are only trying to distribute the load across the 4 webservers. One thing to note is that the Main Web Application is useless without its database connection.
Does the load balancer itself have a way to determine if a server should be in the rotation? What is the correct way to do this?