gpt4 book ai didi

apache - 世界上非 Twitter 的低延迟网络服务器/负载平衡器

转载 作者:行者123 更新时间:2023-12-04 06:03:25 26 4
gpt4 key购买 nike

Apache httpd 多年来一直在我身上做得很好,在我一直在维护的传统自定义 LAMP 堆栈应用程序中,它坚如磐石且性能卓越(阅读:试图逃避)

我的 LAMP 堆栈天数现在已经屈指可数,我正在进入多语言的美妙世界:

1) Scala REST framework on Jetty 8 (on the fence between Spray & Scalatra)
2) Load balancer/Static file server: Apache Httpd, Nginx, or ?
3) MySQL via ScalaQuery
4) Client-side: jQuery, Backbone, 320 & up or Twitter Bootstrap

选项#2 是这个问题的重点。我所看到的基准测试表明,Nginx、Lighthttpd、G-WAN(特别是)和 friend 在性能方面比 Apache 更胜一筹,但在 Web 服务器正在处理许多同时连接的高负载场景中,这种优势似乎更加明显.鉴于我们的服务器每月最大 100GB 带宽,平均负载约为 0.10,高负载情况显然没有发挥作用。

基本上,我需要与应用程序服务器 (Jetty) 的连接和 Web 服务器的静态文件传递既可靠又快速。最后,Web 服务器应该兼作应用服务器的负载平衡器(不需要 SSL,服务器位于 ASA 后面)。我不确定 Apache Httpd 与其他替代品相比有多快,但它已经过证明,经过公路战士测试的软件。

那么,如果我使用 Nginx 或其他 Apache 替代品,在可见性能方面会有什么不同吗?我认为不是,但为了实现近乎即时的页面加载,将问题提出来;-)

最佳答案

if I roll with Nginx or other Apache alternative, will there be any difference whatsoever in terms of visible performance?



是的,主要是在延迟方面。

根据谷歌(他可能对延迟有所了解)的说法,延迟对于用户体验、高搜索引擎排名以及在高负载(成功、脚本小子、真实攻击等)中的生存都很重要。

但是在多核上扩展和/或使用更少的 RAM 和 CPU 资源不会受到伤害——这就是这些 Web 服务器替代方案的目的。

The benchmarks I have seen indicate that Nginx, Lighthttpd, G-WAN (in particular) and friends blow away Apache in terms of performance, but this blowing away appears to manifest more in high-load scenarios where the web server is handling many simultaneous connections



基准测试表明 即使客户数量很少 ,有些服务器比其他服务器更快: here are compared Apache 2.4, Nginx, Lighttpd, Varnish, Litespeed, Cherokee and G-WAN .

由于此测试是由独立于这些服务器作者的人员进行的,因此这些测试(使用虚拟化和 1、2、4、8 个 CPU 内核进行)具有明显的值(value)。

关于apache - 世界上非 Twitter 的低延迟网络服务器/负载平衡器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8671159/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com