TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

SSL session caching in nginx

76 点作者 brkcmd将近 14 年前

7 条评论

mentat将近 14 年前
Crypto hardware acceleration is commodity. I believe that Broadcom sold the chips for &#60;$5 over 5 years ago. To say they don't scale horizontally doesn't make sense either. If they're integrated with PCIe then you can get a lot of crypto processing in a single chasis. (Disclosure: Used to make crypto accelerators and load balancers)<p>There surely are reasons not to integrate at the load balancer, but they're not because the load balancer will melt down.
nwmcsween将近 14 年前
You'll usually run out of entropy before cpu usage becomes relevant with SSL processing, I've seen old versions of apache hang with little or no entropy to process SSL connections. I recommend some sort of RNG or a poor mans software version such as <a href="http://www.issihosts.com/haveged/" rel="nofollow">http://www.issihosts.com/haveged/</a>
评论 #2705247 未加载
thecoffman将近 14 年前
Very cool post - not only is it informative, but you've taken the "oh-so-rare" extra step of actually coding up a solution to what you're talking about - rather than taking the easier approach and just telling others what they're doing wrong but presenting no practical alternatives. Kudos!
sugarcode将近 14 年前
One downside of this approach (without some funky iptables/networking-fu) is that you loose the source IP from the original request. Adding headers like X-Forwarded-For only works after the request has been decrypted, so all the traffic will appear to source from the load balancer, which can present its own issues.<p>IMO (and I believe Google agrees - <a href="http://www.imperialviolet.org/2010/06/25/overclocking-ssl.html" rel="nofollow">http://www.imperialviolet.org/2010/06/25/overclocking-ssl.ht...</a>) the advantages of terminating SSL at the load balancer outweigh the horizontal scalability of this approach, at least in most cases.
评论 #2703533 未加载
thomas-st将近 14 年前
Why does session affinity not solve the problem of session caching? The author says it's "a whole other world of pain and suffering" but doesn't explain why.
评论 #2705347 未加载
评论 #2704152 未加载
mmaunder将近 14 年前
Matt this is awesome. Nginx is becoming the standard for front end load balancing for many high traffic sites and this helps. We only have one nginx front end load balancer (even though we do over 4000 http req/s) but we'll be migrating to a cluster soon so I'll give this a whirl.
tobylane将近 14 年前
I had to check several times I hadn't accidentally hit zoom a few times.<p>Sounds useful, but how many visitors do you need to have for this to be worth doing?
评论 #2703313 未加载