apache 到 tomcat:mod_jk 与 mod_proxy [英] apache to tomcat: mod_jk vs mod_proxy
本文介绍了apache 到 tomcat:mod_jk 与 mod_proxy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 mod_jk
和 mod_proxy
将 apache 前置 tomcat 实例的优缺点是什么?
What are the advantages and disadvantages of using mod_jk
and mod_proxy
for fronting a tomcat instance with apache?
多年来我一直在生产中使用 mod_jk,但我听说这是面向 tomcat 的老方法".我应该考虑改变吗?会有什么好处吗?
I've been using mod_jk in production for years but I've heard that it's "the old way" of fronting tomcat. Should I consider changing? Would there be any benefits?
推荐答案
mod_proxy
* Pros:
o No need for a separate module compilation and maintenance. mod_proxy,
mod_proxy_http, mod_proxy_ajp and mod_proxy_balancer comes as part of
standard Apache 2.2+ distribution
o Ability to use http https or AJP protocols, even within the same
balancer.
* Cons:
o mod_proxy_ajp does not support large 8K+ packet sizes.
o Basic load balancer
o Does not support Domain model clustering
mod_jk
* Pros:
o Advanced load balancer
o Advanced node failure detection
o Support for large AJP packet sizes
* Cons:
o Need to build and maintain a separate module
这篇关于apache 到 tomcat:mod_jk 与 mod_proxy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文