I am going explain how can you create a software load balancer with IIS Web Server.
This method is HTTP based load balancing.
Pre-requisites
- IIS 7 and above
- ARR (Application Request Routing) https://www.iis.net/downloads/microsoft/application-request-routing
- Minimum two application servers, preferably running on two different machines
Create ServerFarm
- After installing the ARR, you should be able to see "Server Farms" in your IIS Server
- Right click on "Server Farms" and select "Create Server Farm"
- Give a name to the ServerFarm
- You would be navigate to "Add Server" Page
- Enter the application server/ip address and click on "Add"
- Repeat again to add two or more servers
- Check the status of the servers in "Server Address and Status" box
- Click on "Ok"
Configure Load Balance
- Select the created ServerFarm
- Double click on the "Load Balance" item
- Choose the following based on your requirement.
- The default configuration as follows
- Load balance algorithm: Weighted round robin
- Load distribution: Even distribution
Based on the load balance algorithm, the load distribution options would be changed, if applicable.
Routing Rules Configuration
- Select the created ServerFarm
- Double click on the "Routing Rules" item
Monitor and Manage the servers
- Select the created ServerFarm
- Double click on the "Monitor and Management" item
Restart IIS
Once you have completed all the steps, perform the following to make sure everything is in sync.
- Open powershell in administrator mode
- Run the following commands
- net stop was /y
- net start w3svc
Please send your feedback and comments to psrdotcom@gmail.com
No comments:
Post a Comment