Does anyone know how often IE refreshes the autoconfig info? Is it with each link or browser session?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Coles Sent: Sunday, November 24, 2002 9:40 AM To: [EMAIL PROTECTED] Subject: RE: Load Balancing SquidGurad Servers > Chris, > Yes we have been doing it for some time now to my understanding but we get > weird problems. Mark mentioned that Windows caches the DNS entries at which > my other reply about the proxy auto config would more than likely work. I > have used it before but never with 2 proxies. > Thanks, > Bill > > function FindProxyForURL(url, host) { > return "PROXY 1.2.3.4:8080; PROXY 1.2.3.5:8080"; > } > > Putting that in your proxy autoconfig file would perform your failover. But > load balance is not performed. > > One way to perform load balance is also through this script but you would > have to divide your network: > > if isInNet(host, "1.2.3.0", "255.255.255.0") { > return "PROXY 1.2.3.4:8080; PROXY 1.2.3.5:8080"; > } > if isInNet (host, "1.2.4.0", "255.255.255.0" { > return "PROXY 1.2.3.5:8080; PROXY 1.2.3.4:8080"; > } > Why not make it time sensitive or random. Not proficient in javascript so here's some pseudo-code. If even(time.second) { proxy 1.2.3.4:3128; proxy 1.2.3.5:3128} else { proxy 1.2.3.5; proxy 1.2.3.4:3128} Or based on a random number if even(random()) ...... You could divide the random numbers up into different groups if your had more than 2 servers Mike coles 'bluelip' ********************************************************** This message was virus scanned at siliconjunkie.net and any known viruses were removed. For a current virus list see http://www.siliconjunkie.net/antivirus/list.html ********************************************************** This message was virus scanned at siliconjunkie.net and any known viruses were removed. For a current virus list see http://www.siliconjunkie.net/antivirus/list.html
