负载均衡变得简单? [英] Load balancing made simple?

查看:54
本文介绍了负载均衡变得简单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我有两个相同的Web服务器运行Windows 2003 web

服务器。我有一个ASP.NET应用程序,它在

之一上运行得很好。专用的IP地址,在我们的防火墙后面等等。每个人都很高兴。

现在 - 我如何利用第二台电脑来支付
负载均衡网站?它真的会给我的用户带来明显的性能提升吗?你是如何做到这一点的?我读过很多这些MS文章,而且很复杂......告诉我使用负载

平衡硬件和什么不是。什么是最简单,最快捷的方式

通过多个网站获得良好的性能(和可靠性)提升?
服务器?或者,这比仅仅几分钟的

配置设置更复杂吗? :)

Okay, I have two identical web servers running Windows 2003 web
server. I have an ASP.NET application which runs great on one of
them. Dedicated IP address, behind our firewall, etc. Everyone''s
happy.
Now -- how do I take advantage of that second computer to
"load-balance" the web site? Will it really give my users a noticable
performance increase? How do you accomplish this? I''ve read many of
those MS articles and it''s complicated... telling me to use load
balancing hardware and what-not. What''s the easiest and quickest way
to get a nice performance (and reliability) boost with multiple web
server? Or, is this more complicated than just a few minutes of
configuration setup? :)

推荐答案

当你说相同的服务器时,你正在谈论的是群集,而不是

这是一个简单的活动。没有经验,特别是如果你在本地使用

asp.net会话,而不是通过另一台服务器上的数据库获得

的例子。


不幸的是,我不认为任何人都可以轻易地告诉你如何实现

聚类,你将需要做很多阅读和

试验。

我将从微软学术界提供的材料开始

联盟:
http://www.msdnaa.net/curriculum/?5925


......并阅读本文

http:// www。 microsoft.com/windowsserv...ring/default.m

spx


Yo但是你可以考虑以另一种方式提高性能。你有两台服务器,两台服务器都可以使用ASP.NET和IIS6的缓存

功能 - 非常好。您可以根据asp.net

应用程序拆分服务器,在最佳猜测和测试基础上测量使用和平衡

是否单个服务器可以应对您的预期最大值加载,以及

你需要拆分到另一个盒子。例如,您可以从一台服务器渲染所有的图像和文件,而所有的asp.net来自

另一种 - 所有提高性能的好方法,我如果你花时间回顾一下你的解决方案,我相信你可以考虑其他方式。


-

问候


John Timney

微软区域总监

Microsoft MVP

" GeekBoy" < GE ********* @ yahoo.com>在消息中写道

news:b0 ************************** @ posting.google.c om ...
When you say identical servers, you are talking about clustering and its not
an easy activity for the inexperienced, especailly if your making use of
asp.net sessions locally, rather than via a DB on another server for
example.

Unfortunately, I dont think anyone can easily tell you how implement
clustering, your going to have to do a lot of reading about and
experimenting.
I would start with the materials vailable at the Microsoft Academic
Alliance:
http://www.msdnaa.net/curriculum/?5925

......and read this

http://www.microsoft.com/windowsserv...ring/default.m
spx

You could however think about performance increases another way. You have
two servers, both capable of making use of ASP.NET and IIS6''s caching
features - which are very good. You could split your server based on asp.net
applications, gauging use and balancing on a best guess and testing basis on
whether an individual server can cope with your expected max load, and where
you need to split off to another box. You could for example render all of
your images and files from one server, and all of your asp.net from
another - all good ways of increasing the performance, I''m sure you can
think of other ways if you take the time to go over your solution.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"GeekBoy" <ge*********@yahoo.com> wrote in message
news:b0**************************@posting.google.c om...
好的,我有两个相同的Web服务器运行Windows 2003 web
服务器。我有一个ASP.NET应用程序,它在其中一个上运行得很好。专用的IP地址,在我们的防火墙后面等等。每个人都很高兴。
现在 - 我如何利用第二台计算机来实现负载均衡。网站?它真的会给我的用户带来明显的性能提升吗?你是如何做到这一点的?我读过很多那些MS文章而且很复杂......告诉我要使用负载平衡硬件和什么不是。使用多个Web服务器获得良好性能(和可靠性)的最简单,最快捷的方法是什么?或者,这比仅仅几分钟的配置设置更复杂吗? :)
Okay, I have two identical web servers running Windows 2003 web
server. I have an ASP.NET application which runs great on one of
them. Dedicated IP address, behind our firewall, etc. Everyone''s
happy.
Now -- how do I take advantage of that second computer to
"load-balance" the web site? Will it really give my users a noticable
performance increase? How do you accomplish this? I''ve read many of
those MS articles and it''s complicated... telling me to use load
balancing hardware and what-not. What''s the easiest and quickest way
to get a nice performance (and reliability) boost with multiple web
server? Or, is this more complicated than just a few minutes of
configuration setup? :)



我已经在另一台计算机上安装了StateServer,并且正在运行

罚款。

我想我正在谈论群集 - 能够嗅出

哪个服务器最适合处理当前请求,基于

cpu ,内存,负载,无论你想要什么叫它。这通常是由固件中的路由设备设置处理,还是全部

软件服务器设置?

关于你的其他评论关于速度增加,我理解

你在说什么...如果我有,比如,

网站的两个重要部分,我可以将一个部分推到另一台服务器并在那里托管了

应用程序,似乎将公司的一半推到另一台
计算机上,致力于这一项任务。我同意它可以增加

的性能,但我不太清楚我是否理解如何将所有

图像或网页本身移动到另一台服务器上可能会增加

表现?与代码隐藏的

DLL和它需要加载的ASPX页面相比,这些东西很小,更不用说SQL

命令,这些命令可能是呈现

页面所需的时间。

John Timney \(Microsoft MVP \) < TI ***** @ despammed.com>在消息新闻中写道:< u9 ************** @ tk2msftngp13.phx.gbl> ...
I already have the StateServer on another computer and that''s running
fine.
I guess I am talking about clustering -- the ability to "sniff out"
which server is best suited to handle the current request, based upon
cpu, memory, load, whatever you want to call it. Is this generally
handled by routing equipment setup in the firmware, or is it all
software server setup?
With regard to your other comment about speed increases, I understand
what you''re saying... if I have, say, two important sections of the
website, I could push one section to another server and host the
application there, seemingly pushing half the company to another
computer, dedicated to that one task. I agree it could increase
performance, but I''m not so sure I understand how, say, moving all
images or web pages themselves to another server could increase
performance? These things are tiny in comparison with the code-behind
DLL and the ASPX pages it needs to load, not to mention the SQL
commands, which are probably the bulk of the time it takes to render a
page.
"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message news:<u9**************@tk2msftngp13.phx.gbl>...
当你说相同的服务器时,你在谈论如果你在本地使用
asp.net会话,而不是通过另一台服务器上的数据库来实现,那么对于没有经验的人来说,集群并不是一项简单的活动。

不幸的是,我不认为任何人都可以轻易地告诉你如何实现集群,你需要做大量的阅读和实验。
我会从材料开始可以在Microsoft Academic
联盟中使用:
http:// www.msdnaa.net/curriculum/?5925

.....阅读本文

http://www.microsoft.com/windowsserv...ring/default.m
spx

你可以关于性能的变化是另一种方式。你有两台服务器,都能够利用ASP.NET和IIS6的缓存功能 - 非常好。您可以根据asp.net
应用程序拆分服务器,在最佳猜测和测试基础上衡量使用和平衡
单个服务器是否可以应对您预期的最大负载,以及
你需要拆分到另一个盒子。例如,您可以从一台服务器渲染所有图像和文件,并从另一台服务器渲染所有的asp.net - 所有提高性能的好方法,我相信你可以
-
问候

John Timney
微软区域总监<微软MVP

" GeekBoy" < GE ********* @ yahoo.com>在消息中写道
新闻:b0 ************************** @ posting.google.c om ...
When you say identical servers, you are talking about clustering and its not
an easy activity for the inexperienced, especailly if your making use of
asp.net sessions locally, rather than via a DB on another server for
example.

Unfortunately, I dont think anyone can easily tell you how implement
clustering, your going to have to do a lot of reading about and
experimenting.
I would start with the materials vailable at the Microsoft Academic
Alliance:
http://www.msdnaa.net/curriculum/?5925

.....and read this

http://www.microsoft.com/windowsserv...ring/default.m
spx

You could however think about performance increases another way. You have
two servers, both capable of making use of ASP.NET and IIS6''s caching
features - which are very good. You could split your server based on asp.net
applications, gauging use and balancing on a best guess and testing basis on
whether an individual server can cope with your expected max load, and where
you need to split off to another box. You could for example render all of
your images and files from one server, and all of your asp.net from
another - all good ways of increasing the performance, I''m sure you can
think of other ways if you take the time to go over your solution.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"GeekBoy" <ge*********@yahoo.com> wrote in message
news:b0**************************@posting.google.c om...
好的,我有两个相同的Web服务器运行Windows 2003 web
服务器。我有一个ASP.NET应用程序,它在其中一个上运行得很好。专用的IP地址,在我们的防火墙后面等等。每个人都很高兴。
现在 - 我如何利用第二台计算机来实现负载均衡。网站?它真的会给我的用户带来明显的性能提升吗?你是如何做到这一点的?我读过很多那些MS文章而且很复杂......告诉我要使用负载平衡硬件和什么不是。使用多个Web服务器获得良好性能(和可靠性)的最简单,最快捷的方法是什么?或者,这比仅仅几分钟的配置设置更复杂吗? :)
Okay, I have two identical web servers running Windows 2003 web
server. I have an ASP.NET application which runs great on one of
them. Dedicated IP address, behind our firewall, etc. Everyone''s
happy.
Now -- how do I take advantage of that second computer to
"load-balance" the web site? Will it really give my users a noticable
performance increase? How do you accomplish this? I''ve read many of
those MS articles and it''s complicated... telling me to use load
balancing hardware and what-not. What''s the easiest and quickest way
to get a nice performance (and reliability) boost with multiple web
server? Or, is this more complicated than just a few minutes of
configuration setup? :)



你的大多数答案都来自测试你的使用场景,

识别可能的模式失败或高峰使用。如果您有两台服务器执行相同的任务,您可以使用简单的循环DNS随机选择服务器

,或者配置您的路由器以选择基于服务器的服务器客户端IP。

它们主要是实现集群的网络问题。正如我所说,

不幸的是,这大部分只是一个长时间的阅读和学习练习。


关于动态图像和硬文件的评论(word docs等)到另一个

服务器意味着你的asp.net服务器不必处理这些请求。

你的asp.net页面交付速度更快,然后浏览器请求

以典型的

请求方式修复客户端另一台服务器上的图像,从而从asp.net服务器中删除CPU周期

primary目标是处理代码,DLL和aspx文件。这是BBC这样大量网站使用的技术。


-

问候


John Timney

微软区域总监

Microsoft MVP

" GeekBoy" < GE ********* @ yahoo.com>在消息中写道

news:b0 ************************** @ posting.google.c om ...
Most of your answers will come from testing your scenarios of use, to
identify likely patterns of failure or peak use. If you have two servers
doing the same task, you could use simple round robin DNS to choose a server
at random, or configure your routers to choose a server based on client IP.
They are mostly network issues for a implementing a cluster. As I said,
unfortunately most of this is simply a long reading and learning exercise.

The comment on moving images and hard files (word docs etc) to another
server means your asp.net severs dont have to process request for these.
Your asp.net pages are delivered faster and the browser thenrequest the
fixed things like images from another server at the client side in a typical
request fashion - thus you remove CPU cycles from the asp.net servers whos
primary goal is to process code behind, DLL''s and aspx files. This is a
technique used by very large volume sites like the BBC.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"GeekBoy" <ge*********@yahoo.com> wrote in message
news:b0**************************@posting.google.c om...
我已经在另一台计算机上安装了StateServer,并且运行状态良好。
我想我正在谈论集群 - 能够嗅出
哪个服务器最适合处理当前请求,基于cpu,内存,负载,以及你想要调用的任何内容。这通常是由固件中的路由设备设置处理,还是全部是软件服务器设置?
关于你对速度提升的其他评论,我明白了你的意思如果我有,比如说,
网站的两个重要部分,我可以将一个部分推到另一个服务器并在那里托管
应用程序,似乎将公司的一半推到另一个<计算机,致力于这一项任务。我同意它可以提高性能,但我不太清楚我是否理解如何将所有图像或网页本身移动到另一台服务器上可以提高性能?与代码隐藏的DLL和它需要加载的ASPX页面相比,这些东西很小,更不用说SQL
命令了,这可能是渲染<的大部分时间。 br />页。

" John Timney \(Microsoft MVP \)" < TI ***** @ despammed.com>在消息中写道
I already have the StateServer on another computer and that''s running
fine.
I guess I am talking about clustering -- the ability to "sniff out"
which server is best suited to handle the current request, based upon
cpu, memory, load, whatever you want to call it. Is this generally
handled by routing equipment setup in the firmware, or is it all
software server setup?
With regard to your other comment about speed increases, I understand
what you''re saying... if I have, say, two important sections of the
website, I could push one section to another server and host the
application there, seemingly pushing half the company to another
computer, dedicated to that one task. I agree it could increase
performance, but I''m not so sure I understand how, say, moving all
images or web pages themselves to another server could increase
performance? These things are tiny in comparison with the code-behind
DLL and the ASPX pages it needs to load, not to mention the SQL
commands, which are probably the bulk of the time it takes to render a
page.
"John Timney \(Microsoft MVP\)" <ti*****@despammed.com> wrote in message



news:< u9 ************** @ tk2msftngp13.phx.gbl> ...


news:<u9**************@tk2msftngp13.phx.gbl>...

当你说相同的服务器时,你正在谈论集群,而对于没有经验的人来说,它的
并不是一项简单的活动,特别是如果你在本地使用
asp.net会话而不是通过另一台服务器上的数据库来表示

不幸的是,我不认为任何人都可以轻易地告诉你如何实现集群,你将不得不做很多事情。阅读和试验。
我将从微软学术联盟的资料开始:
http://www.msdnaa.net/curriculum/?5925

.....阅读本文

http:// www。 microsoft.com/windowsserv...ring/ default.m spx

然而,您可以考虑以另一种方式提高性能。你
有两台服务器,都能够利用ASP.NET和IIS6的缓存功能 - 非常好。您可以根据
asp.net应用程序拆分服务器,根据最佳猜测来衡量使用和平衡,并根据单个服务器是否能够应对预期的最大负载测试
,以及
其中你需要拆分到另一个盒子。例如,您可以从一台服务器渲染所有
的图像和文件,从另一台服务器渲染所有的asp.net - 所有提高性能的好方法,我相信你可以
-
问候

John Timney
微软区域总监<微软MVP

" GeekBoy" < GE ********* @ yahoo.com>在消息中写道
新闻:b0 ************************** @ posting.google.c om ...
When you say identical servers, you are talking about clustering and its not an easy activity for the inexperienced, especailly if your making use of
asp.net sessions locally, rather than via a DB on another server for
example.

Unfortunately, I dont think anyone can easily tell you how implement
clustering, your going to have to do a lot of reading about and
experimenting.
I would start with the materials vailable at the Microsoft Academic
Alliance:
http://www.msdnaa.net/curriculum/?5925

.....and read this

http://www.microsoft.com/windowsserv...ring/default.m spx

You could however think about performance increases another way. You have two servers, both capable of making use of ASP.NET and IIS6''s caching
features - which are very good. You could split your server based on asp.net applications, gauging use and balancing on a best guess and testing basis on whether an individual server can cope with your expected max load, and where you need to split off to another box. You could for example render all of your images and files from one server, and all of your asp.net from
another - all good ways of increasing the performance, I''m sure you can
think of other ways if you take the time to go over your solution.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"GeekBoy" <ge*********@yahoo.com> wrote in message
news:b0**************************@posting.google.c om...
好的,我有两个相同的Web服务器运行Windows 2003 web
服务器。我有一个ASP.NET应用程序,它在其中一个上运行得很好。专用的IP地址,在我们的防火墙后面等等。每个人都很高兴。
现在 - 我如何利用第二台计算机来实现负载均衡。网站?它真的会给我的用户带来明显的性能提升吗?你是如何做到这一点的?我读过很多那些MS文章而且很复杂......告诉我要使用负载平衡硬件和什么不是。使用多个Web服务器获得良好性能(和可靠性)的最简单,最快捷的方法是什么?或者,这比仅仅几分钟的配置设置更复杂吗? :)
Okay, I have two identical web servers running Windows 2003 web
server. I have an ASP.NET application which runs great on one of
them. Dedicated IP address, behind our firewall, etc. Everyone''s
happy.
Now -- how do I take advantage of that second computer to
"load-balance" the web site? Will it really give my users a noticable
performance increase? How do you accomplish this? I''ve read many of
those MS articles and it''s complicated... telling me to use load
balancing hardware and what-not. What''s the easiest and quickest way
to get a nice performance (and reliability) boost with multiple web
server? Or, is this more complicated than just a few minutes of
configuration setup? :)



这篇关于负载均衡变得简单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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