如何创建ASP.NET Web场? [英] How to create an ASP.NET web farm?

查看:116
本文介绍了如何创建ASP.NET Web场?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找关于如何创建一个 ASP.NET Web场的信息 - 那就是如何使一个ASP.NET应用程序(最初设计为一个单一的Web服务器上)上工作2,3,10,等服务器?

我们创建了一个Web应用程序的时候,比如说有500个用户在同一时间,工作正常。但是,现在我们需要让10 000用户(在同一时间与Web应用程序的工作)工作。

因此​​,我们需要建立 20的web服务器,并在他们的网页浏览器中键入www.MyWebApp.ru做的东西,使10 000用户可以与Web应用程序的工作,但他们的请求将由20网络服务器来处理,没有他们知道。

1)是否有特殊的标准软件以创建一个 ASP.NET Web场

2)或应创建一个Web农场自己,通过不同的Web服务器之间传输的请求的手动(使用ASP.NET / C# )?

我在网上找到了ASP.NET的Web群和可伸缩性的信息非常少:在大多数情况下,可扩展性文章告诉如何优化和ASP.NET应用程序,并使其运行速度更快。但是,我发现了一个世界,你好般的ASP.NET Web应用程序 2的Web服务器上运行

无例子

将是巨大的,如果有人可以张贴一个链接到一篇文章,或者更好,讲述自己的经验在ASP.NET中的网络农业和解决可扩展性问题。

感谢您,
米哈伊尔。


解决方案

  

1)是否有特殊的标准软件
  创建ASP.NET Web场?


没有。


  

2)或者,我们应该创建一个Web农场
  我们自己,通过转让请求
  不同的Web服务器之间手动
  (使用ASP.NET / C#)?


没有。

要建立一个Web场,您将需要某种形式的负载平衡。在长达8台服务器左右,你可以使用网络负载平衡(NLB),它内置于Windows操作系统。对于超过8台服务器,你应该使用一个硬件负载平衡器。

然而,负载均衡是冰山真的只是冰山一角。还有许多其他问题,您应该解决,包括像:


  1. 国家管理(饼干,ViewState中,会话状态等)

  2. 缓存和缓存失效

  3. 数据库加载(管理的往返,分区,磁盘子系统等)

  4. 应用程序池管理器(WSRM,池复位,分区)

  5. 部署

  6. 监控

在情况下,它可能是有益的,我盖了许多在我的书中这些问题:超快ASP.NET:建立使用ASP.NET和SQL Server 超高速和超可扩展的网站

I am looking for information on how to create an ASP.NET web farm - that is, how to make an ASP.NET application (initially designed to work on a single web server) work on 2, 3, 10, etc. servers?

We created a web application which works fine when, say, there are 500 users at the same time. But now we need to make it work for 10 000 users (working with the web app at the same time).

So we need to set up 20 web servers and make something so that 10 000 users could work with the web app by typing "www.MyWebApp.ru" in their web browsers, though their requests would be handled by 20 web-servers, without their knowing that.

1) Is there special standard software to create an ASP.NET web farm?

2) Or should we create a web farm ourselves, by transferring requests between different web servers manually (using ASP.NET / C#)?

I found very little information on ASP.NET web farms and scalability on the web: in most cases, articles on scalability tell how to optimize and ASP.NET app and make it run faster. But I found no example of a "Hello world"-like ASP.NET web app running on 2 web servers.

Would be great if someone could post a link to an article or, better, tell about one's own experience in ASP.NET "web farming" and addressing scalability issues.

Thank you, Mikhail.

解决方案

1) Is there special standard software to create an ASP.NET web farm?

No.

2) Or should we create a web farm ourselves, by transferring requests between different web servers manually (using ASP.NET / C#)?

No.

To build a web farm, you will need some form of load balancing. For up to 8 servers or so, you can use Network Load Balancing (NLB), which is built in to Windows. For more than 8 servers, you should use a hardware load balancer.

However, load balancing is really just the tip of the iceberg. There are many other issues that you should address, including things like:

  1. State management (cookies, ViewState, session state, etc)
  2. Caching and cache invalidation
  3. Database loading (managing round-trips, partitioning, disk subsystem, etc)
  4. Application pool management (WSRM, pool resets, partitioning)
  5. Deployment
  6. Monitoring

In case it might be helpful, I cover many of these issues in my book: Ultra-Fast ASP.NET: Build Ultra-Fast and Ultra-Scalable web sites using ASP.NET and SQL Server.

这篇关于如何创建ASP.NET Web场?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆