tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@thepenguin.org
Subject Re: Communication flow with different connectors
Date Wed, 09 Jan 2013 15:49:41 GMT
About the mail client, I am just unable to add a > or anything to the line automatically,
so it gets confusing quickly if I post as I normally would. Now back to the issue:

My confusion was that I was unsure how have a mount allowed it to communicate. I hadn't really
considered that the mount was associated with a worker and that the communication was handled
that way. I understand a socket based communication like in mod_ajp, but I was missing how
the mount was used. That is where I was coming from. 

Thanks guys. I appreciate your responses.

CaptainVic
-----Original Message-----
From: "Christopher Schultz" <chris@christopherschultz.net>
Sent: Wednesday, January 9, 2013 10:30am
To: "Tomcat Users List" <users@tomcat.apache.org>
Subject: Re: Communication flow with different connectors

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Vicky,

On 1/9/13 9:06 AM, vicki@thepenguin.org wrote:
> I appreciate your reply and apologize for the top post (am using a 
> stupid mail client from work).

You can't just press the /down/ arrow key a few times? *shrug*

> Your answer gets me part way there, but what is the most confusing
> to me is the use of JkMount. How does that fit into the picture
> from a communication perspective.

It's all configuration, not communication. Once configured, mod_jk and
mod_proxy_ajp work in exactly the same way (at least, the wire
protocol is the same -- the modules are obviously working somewhat
differently, internally).

Basically:

worker.foo.host=tomcat
worker.foo.port=8009
+
JkMount /myapp/* foo

is the same thing as this:

ProxyPass        /myapp/ ajp://tomcat:8009/myapp/
ProxyReversePass /myapp/ ajp://tomcat:8009/myapp/

mod_jk's older configuration uses a separate file to configure the
workers, then JkMount directives in httpd.conf in order to map URLs to
those workers. mod_proxy_ajp's configuration is done all in httpd.conf
and matches the configuration of all mod_proxy_* modules.

The configuration becomes more complex for both modules when using
load-balancing. mod_jk uses a single worker of type "lb" with other
workers actually connecting to Tomcat instances, then you use JkMount
as usual with the "lb" worker, so httpd.conf need not change at all to
introduce load-balancing. mod_proxy uses a <Proxy> directive to define
a balancer with various BalancerMember directives and then uses a
ProxyPass directive to map a URL space to that balancer, so httpd.conf
becomes more complicated when load-balancing is introduced.

Note that you can configure mod_jk entirely within httpd.conf if you
want, using JkWorkerProperty. I don't believe you can configure mod_jk
using such compact syntax as mod_proxy supports, yet mod_jk does
support "template" workers which can significantly simplify your
deployment if you have many workers to track.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDtjQMACgkQ9CaO5/Lv0PC8xACfaXUc/Xl7sGU+Rh/eURxxChtd
lR4AnjejrpdNTeExDevJ3eAkuTUN0m7g
=nFLK
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message