Apache Httpd 在 Tomcat 前面以实现更快的 SSL 处理?
将 Apache httpd 放在 Tomcat 前面是否可以加快 SSL 处理速度?使用两台服务器时总体吞吐量是上升还是下降?
Does placing Apache httpd in front of Tomcat facilitate faster SSL processing? Does the overall throughput go up or down when using both servers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 Apache 安装到另一台机器上也会增加延迟(请求必须经过一台机器)和吞吐量(您有更多的 cpu)。 Apache JServ 协议 (AJP) (维基百科上的 AJP)对于将 Apache 链接到 Tomcat 并减少增加的延迟非常有用:
(如果你将它们安装在同一台机器上......说实话,我从来没有这样做过,但我不认为它们的 SSL 性能有很大差异。无论如何,如果它很重要,你应该测量它。Don不要错过Tomcat Wiki 中的常见问题解答。)
Installing Apache to an other machine will increase the latency (the request has to go through one more machine) and the throughput (you have more cpu) too. Apache JServ Protocol (AJP) (AJP on Wikipedia) is useful to link the Apache to the Tomcat and to reduce the increased latency:
(If you install them on the same machine... to be honest, I've never do that but I wouldn't think that there is a big difference in their SSL performance. Anyway, if it's important you should measure it. Don't miss the FAQ in the Tomcat Wiki.)