Monday 4 May 2015

IIS Web Farm Load Balancing for websites and applications

1. Create a Server Farm with ARR
To create your server farm, you must enter the IP address of every web server in your farm.
To create a server farm with ARR
  1. Open IIS Manager.
  2. In the Connections pane, expand the server node, and select Server Farms.
  3. In the Actions pane, click Create Server Farm.
The Create Server Farm wizard opens to the Specify Server Farm Name page.
  1. In the Server farm name box, type a name for your server farm, and click Next.
The Add Server page is displayed.
  1. In the Server address box, type the IP address of the first server, and click Add.
  2. Continue typing IP addresses and clicking Add until all web servers are entered.
  3. Click Finish.
2. Configure Load Balancing with ARR
This procedure configures ARR load balancing with an algorithm that distributes incoming request evenly among the web servers. It then sets up the server-farm health test feature.
  1. Open IIS Manager.
  2. In the Connections pane, expend the server
  3. Under the server node, expand Server Farms, and then select the server farm that you created.
  4. In the Server Farm pane, double-click Load Balance.
  5. On the Load Balance page, select Weighted round robin from the Load balance algorithm list, and then click Apply.
  6. In the Connections pane, select the server farm that you created.
  7. In the Server Farm pane, double-click Health Test.
  8. On the Health Test page, in the URL box, enter a URL that you want ARR to test by sending a GET request to determine the health of the servers. Click Apply.
  9. To verify the health of your farm, click Verify URL Test.
Change Application Pool Settings
Because all HTTP requests and responses go through ARR, delays or errors occur if the application pool times out or recycles unexpectedly. Set the idle time-out and application pool recycle settings to zero to avoid problems.
To change application pool settings
  1. On one of the web servers in your farm, open IIS Manager.
  2. In the Connections pane, select Application Pools.
  3. In the Application Pools pane, select the application pool for you website, and then click Advanced Settings in the Actions pane.
  4. In the Advanced Settings dialog box, expand Process Model, and change the Idle Time-out (minutes) value to 0.
  5. Expand Recycling, and change the Regular time intervals (in minutes) value to 0.
  6. Click OK.