简体   繁体   中英

IIS 7 replication of web site

有什么方法可以在不同的服务器上复制网站以实现负载平衡,以便某些请求由一台服务器提供,而其他请求由另一台服务器提供?

Did you at least Google for an answer? This subject is well documented all over the web. For a start, check out HTTP Load Balancing using Application Request Routing on iis.net (excellent source for anything related to IIS anyway). The blog post IIS7 Load Balancing & Routing Module Now Available! on MSDN also contains a lot of useful links. Instead of ARR you can also use pretty much any kind of load balancer (eg HAProxy ).

To make the same content available to all servers in your farm you can simply use a Windows based file server or any kind of NAS with SMB file sharing. IIS allows you to specify the credentials that will be used when connecting to the file share.

Yeah there are heaps of solutions for doing this. The one that Stackoverflow use is called HAProxy http://haproxy.1wt.eu/

Typically what you need is a form of reverse proxy that can pipe your requests to the various servers it knows about.

As an aside - Interesting link about SO architecture. http://highscalability.com/blog/2011/3/3/stack-overflow-architecture-update-now-at-95-million-page-vi.html

是的,有Web Farm Framework http://www.iis.net/download/WebFarmFramework

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM