PDA

View Full Version : Load-balancing web (and CGI) servers


ScratchMonkey
09-09-2002, 06:31
I want to set up two web servers that have the same name (ie. two A records in DNS to two different addresses).

When TSS2 or TSS post to a form, will they recognize a Location response redirecting them to a different server?

How do people handle combining CGI and load-balancing?

N. Werensteijn
10-09-2002, 03:44
If i remeber correctly, ts servers will do a dns request every time before they post.

ScratchMonkey
10-09-2002, 06:10
I think what I'll have to do is just run CGI on one of the two web servers, and give it a 2nd name for that purpose. So I'll have two servers answering to "www" and one of them will also answer to "cgi". The PostURL will point at "cgi", and HTML on both web servers will refer to "cgi" for the generated content.

If you connect to "www", you randomly get one of the two web servers. The stats page on both servers will have a frame containing the stats served only from the "cgi" server.