使用软件负载平衡与硬件负载平衡器的经验?

发布于 2024-07-06 19:24:08 字数 210 浏览 8 评论 0原文

我目前在日常工作中负责的 ASP.NET 应用程序在单个服务器内扩展的能力方面已达到极限。 显然,我们正在努力将会话移出进程,并且测试和希望部署日期即将到来。 我想借鉴人们使用 Windows 内置负载平衡与设备解决方案(例如 Baracudda、Coyote Point、F5 等的解决方案)的经验。您是否从其中一种开始,然后转向另一种,为什么?

提前感谢您的想法和建议...

The ASP.NET application that I am currently responsible for at my day job has hit its limit in terms of its ability to scale inside a single server. Obviously we are working toward moving session out of process and the test and hopefully deploy date draws near. I would like to draw on the experiencies of people using the built in load balancing in Windows vs. an appliance solution such as one by Baracudda, Coyote Point, F5 etc. Did you start with one and move to the other and why ?

thoughts and advice appreciated in advance...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

想念有你 2024-07-13 19:24:08

我在负载平衡解决方案方面有一些经验,但这实际上取决于您的网络和软件的设计方式,以决定哪种解决方案最适合您。

就我遇到的解决方案而言:

Windows 中内置的负载平衡在大多数情况下都能很好地工作,尽管您需要确保应用程序在不粘性的情况下可以正确处理会话。 我使用过 F5 产品,主要作为缓存解决方案,但

它们对我们来说过于复杂。
我们目前正在放弃它们,因为开发人员没有正确使用它们,因为它们太复杂了。 (请注意,这些是相当老的 F5 产品。)

我们目前正在试用 Foundry 的硬件负载平衡器,我们可能会使用它们,因为它们非常适合我们的网络架构。 (这相当复杂。)。

所以我想说,如果您想要一个简单的解决方案,请在 Windows 中使用负载平衡(如果您的应用程序能够正常工作)。

如果不使用更复杂的东西。

无论您使用哪种负载均衡器,都会使您的架构变得更加复杂。 因此,请仔细计划和测试。

I have some experience with load balanced solutions, however it really depends how your network and software are designed as to which is the best solution for you to go for.

In terms of solutions I've encountered:

Built in load balancing in windows works well for most cases, although you need to ensure your applications can handle sessions correctly if they're not sticky. etc.

I've used F5 products, mainly as a caching solution, however they were overly complex for us.
We are currently moving off them, as developers were not using them correctly as they were too complex. (Please note these were quite old F5 products.)

We're currently trialing hardware load balancers from Foundry, and we'll probably go with them as they will fit in well with our network architecture. (Which is quite complex.).

So I'd say, if you want a simple solution use load balancing in windows (If your applications will work correctly.).

If not use something more complex.

Regardless of which load balancer you go with, you're making your architecture more complex. So plan and test it carefully.

赠意 2024-07-13 19:24:08

一些想法

  • WLBS 通常“足够好”,可以帮助您开始使用 NLB。 然而,就像任何伟大的工程师一样 - 您需要“测量才能知道”,
  • 这不仅仅是扩大规模,还涉及软或硬冗余。 我们经常在虚拟机之间进行 NLB,只是为了提供软冗余。
  • NLB 同样适用于后端和前端网络,
  • 加强硬件加速会给您带来新的运营成本。 新的培训专门支持、升级等
  • 寻求硬件加速来为您提供比 NLB 更多的功能,例如 DDoS 保护、SSL、压缩、缓存、内容交换、连接聚合、缓冲。
  • 教育开发人员和开发人员 Ops SE 具有硬件加速优势,出色的设计可以融合网络运营和应用程序开发之间的界限。
  • 仅通过减少 GC 时间,硬件缓冲本身就使我们的 ASP.NET 速度提高了 30% 左右。
  • 内容切换可以让您透明地合并或迁移不同的系统。 我们合并了 MSDN 和 MSDN2 平台使用此技术进入单个 url 空间。
  • 会话粘性是一把双刃剑 - 谨慎使用 - 同样不能替代良好的工程 - 测量和测试一切

我们在网络中同时使用 WLBS 和 NLB - 成本通常会推动对话。 将两者视为工具箱中的工具,了解它们的细微差别、成本模型等。

some thoughts

  • WLBS is often "good enough" to get you started with NLB. However like any great engineer - you need to "measure to know"
  • its not just about scale-up its about soft or hard redundancy too. We often NLB between VMs just to give us soft redundancy.
  • NLB applies just as much to back-edge as well as front-edge networks
  • stepping up to hardware acceleration brings you a new degree of ops costs. New training specialized support, escalation etc.
  • look for hardware acceleration to give you a lot more than NLB e.g. DDoS protection, SSL, Compression, Caching, Content Switching, Connection Aggregation, Buffering.
  • educate both Devs & Ops SE's about hardware acceleration benefits,a great design can merge the line between network operations and application development.
  • hardware buffering on it's own made our ASP.NET around 30% quicker just by reducing our GC time.
  • content switching can enable you to transparently merge or migrate disparate systems. We merged MSDN & MSDN2 platforms into a single url space using this technique.
  • session stickyness is a dual edged sword - use sparingly - again no substitute for good engineering - measure and test everything

We use both WLBS and NLB within our network - cost often drives the conversation. Treat both as tools in the toolbox, learn their nuances, cost models etc.

忘你却要生生世世 2024-07-13 19:24:08

设置 apache mod_proxy 集群。
http://www.howtoforge.com/high_availability_loadbalanced_apache_cluster

比您想象的更容易,而且只需一小部分价格

setup a apache mod_proxy cluster.
http://www.howtoforge.com/high_availability_loadbalanced_apache_cluster

easier then you think, and at a fraction of the price

暮色兮凉城 2024-07-13 19:24:08

F5配备SSL加速芯片。
SSL 加密和 使用应用程序服务器进行解密(非常消耗 CPU 资源)会减慢实际请求的处理速度。
一般来说,SSL 流量在 F5 终止,正常的 http 流量发送到应用程序服务器。 这在负载均衡器上称为 SSL 卸载。
由于 F5 执行此 SSL 加密& 使用芯片(硬件)解密比普通加密快30至40倍 解密次数。

F5 comes with SSL Acceleration Chip.
SSL Encryption & Decryption (it's very CPU intensive) using the application servers makes them slow down the processing of actual requests.
In general SSL traffic is terminated at F5 and normal http traffic is sent to application servers. This is called SSL Offloading at the load balancer.
Sinces F5 does this SSL Encryption & Decryption using a chip(Hardware) it is 30 to 40 times faster than the normal encryption & decryption times.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文