将TLS与apache一起使用对性能有何影响?
时间:2020-03-06 14:49:28 来源:igfitidea点击:
通过TLS运行所有内容会对服务器产生多少性能影响?我认为这在当今时代是完全可以忽略的吗?我曾经听说今天的服务器可以每秒加密数千兆字节的数据,对吗?如果是这样,它是否具有线性可扩展性,因此如果最高速度为10GB /秒,则加密1GB将花费0.1秒?
我对此还没有和任何管理员一起泡菜。我很好奇,如果我几乎可以忽略所有热门歌曲,为什么不加密所有内容呢?
解决方案
赖斯大学(Rice University)撰写的TLS Web服务器的性能分析(pdf)早在2002年就涵盖了这一主题,他们得出了以下结论:
Apache TLS without the AXL300 served between 149 hits/sec and 259 hits/sec for the CS trace, and between 147 hits/sec and 261 hits/sec for the Amazon trace. This confirms that TLS incurs a substantial cost and reduces the throughput by 70 to 89% relative to the insecure Apache.
因此,如果没有AXL300板来卸载加密功能,则在PIII-933MHz上吞吐量可降低70-89%。但是,他们在下一节中指出,随着CPU速度的提高,吞吐量有望相应提高。因此,自2002年以来,我们可能会发现工作量没有明显的区别。