I have seen other customers who use their proxy.pac to do an active-active load balancing. What they basically do is they generate a Hash for the Source IP and depending on the Source IP they send back one of the MWGs that are in place. Besides that they send multiple MWGs addresses to the Client, so that the Client can Fail-Over in case a proxy os down.
Assuming you have two Proxies, it would look like this:
ClientA = 192.168.0.1
ClientB = 192.168.0.2
Due to the Hash Algorithm, when ClientA uses the proxy.pac it would receive:
and ClientB would receive:
So the load is distributed across ProxyA and ProxyB, and if one of the Proxies fails the browser automatically picks the next one from the comma-separated list.
This proxy.pac is in use at a pretty big installation and is running pretty good.
Unfortunately the URL that explains all the stuff below is down, but you may access it using archive.org:
The page is pretty old and ugly, but the idea is still recent. If this would suite your needs you may want to have a look at that URL, it also contains some example scripts.
Let me know if you have additional questions or if this does not suite your needs.
I just found what a good PAC File site with the load balancing solution I was looking for
The Practical Proxy PAC File Guide
The URL changed... It is now http://www.proxypacfiles.com/proxypac/
And some good references of references
Ce message a été modifié par: DBO on 10/05/10 19:38:35 CDT