简单的基于IIS7的web server NLB方案
时间有限,简单说:
1.用Microsoft Application Request Routing for IIS7.0,这东西是基于http headers和server variables把http请求打到内容服务器上,并且内置负载均衡算法。
2.这个东西需要Microsoft URL Rewrite Module for IIS7.0。这个东西做的还算微软能拿的出手的。URL Rewrite Module和ASP.NET Routing有区别,其实是干同一个活的两个东西而已,关于asp.net routing可以看这或者这。
这俩东西还真不是那么简单的就能用上的,但是也不复杂。摘一些links方便大家:
URL Rewrite Module Learning the basics
- Creating rewrite rules
- Using Failed Request Tracing to trace rewrite rules
- Using global and distributed rules
- Using rewrite maps
- Importing rewrite rules
- Enabling "Pretty Permalinks" in WordPress
- Rule templates
- Testing rule and condition patterns
URL Rewrite Module References and guidance
- URL Rewrite Module configuration reference
- URL Rewriting and ASP.NET routing
- URL Rewriting and Request Filtering
- URL Rewriting for ASP.NET Web Forms
- Developing rule templates for URL Rewrite module
Using the Application Request Routing Module
These articles explain how to configure and achieve the core scenarios using Application Request Routing. It is recommended that the articles are read in the following order as the scenarios get richer with each article:
- Install Application Request Routing
- Define and Configure an Application Request Routing Server Group
- HTTP Load Balancing using Application Request Routing
- Includes using health monitoring and client affinity
- Configure 3-tier deployment architecture using Application Request Routing
- Pilot Program Management using Application Request Routing
- Shared Hosting using Application Request Routing
- Using Failed Request Tracing Rules to Troubleshoot Application Request Routing
- High availability at ARR tier
最后,还有一个小东西:External Cache。
关于IIS7的配置。