Mobile app version of vmapp.org
Login or Join
Tiffany637

: Can web applications running on IIS7 Windows Server 2008 R2 be forced to immediately detect changes to hosts file? We have several web applications running on several load-balanced servers. We

@Tiffany637

Posted in: #Dns #Iis7 #Windows

We have several web applications running on several load-balanced servers. We want to have our web applications communicate with each other without first traversing outside the load balancer.

For example:

appA.example.com is running on 192.0.2.1 and 192.0.2.2 appB.example.com is also running on 192.0.2.1 and 192.0.2.2
The load balancer's public IP address is 198.51.100.3
By default, when appA on 192.0.2.1 makes a call to a WCF service hosted in appB, the HTTP request is routed to 192.51.100.3; this establishes a new session and the load balancer will direct the call to either of the two servers
We want the call to be routed to the instance of appB running on the same server so we add 192.0.2.1 appB.example.com to the hosts file on 192.0.2.1.


This eventually works, but we either have to wait for the app pool to naturally recycle or do a manual reset before appA sees the new address.

Is there any way to have the change automatically detected without having to recycle the app pool?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Tiffany637

1 Comments

Sorted by latest first Latest Oldest Best

 

@Smith883

At Safeco, we used a DNS server for this purpose.. we made CNAME aliases.. all stored in one place.. when we made a change like this, it started working immediately. DNS server is basically like a hosts file, but a lot more capable.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme