Note about how to achive Failover and High Availability with IIS.
We will have two idependent virtual machines, both of them installed IIS. And we will have a shared folder from another virtual machine for these IIS Servers.This shared folder has html, asp, images and etc files.
First, we set up the new site in web server1, and then we set up another site in web server2. Both web server1 & web server 2 location point to the shared folder.
The Application pool must have permissions to access files from shared folder.
then, we add two DNS record like:
A demo.sdwh.local 192.168.100.101 A demo.sdwh.local 188.8.131.52
When client request demo.sdwh.local, DNS will reply all of its record. Then client side browser try one, and keep using the worked server ip.
Once the web server fail (IIS stop or Windows Server stop), then client side will get no response, and user will press Refresh, the browser will try to use another record until it works.
- Check Which Server Response by ASP script
- Check Failover by Server Crash
- Check Failover by IIS Crash
- Cehck Failover by Application Pool Crash