Artica Wiki

Use proxy.pac to provide load balancing and failover

If you have two or more Proxy servers in your organization, you can setup the proxy.pac script to provide simple load balancing and failover capabilities.

Overview

Artica provides load-balancing and failover capabiliteis to your proxy.pac script by retrinving the last byte of the IP Address and return the Modulo division (%) with the number of Proxy server.
Example:

var myip=myIpAddress();
var ipBits = myip.split(".");
// Retrieve the last byte of IP address
var mySeg = parseInt(ipBits[3]);
switch (mySeg % 2) {
  case 0: return "PROXY artica-postfix.articatech.lab:50877;PROXY 192.168.58.1:8080; DIRECT";
  case 1: return "PROXY 192.168.58.1:8080;PROXY artica-postfix.articatech.lab:50877; DIRECT";
}

In this example we have two Proxy servers, so:

This method can be used for any number of Proxy servers.

Enable Load-Balancer capabilities.

  1. On left menu go to Proxy.pac/WPAD services
  2. WPAD Rules
  3. Select the Rule
  4. Tab Settings
  5. Select the option Load-balancer
  6. Click Apply
  7. Click Apply Rules

proxy-pac-lbl.png
Read more about IE and Proxy PAC issues here