You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Kotla, Satya S (Contractor)" <sa...@fanniemae.com> on 2007/05/21 16:47:15 UTC

Mod_jk question

Hi,
 
We are running JBoss 4.2.0/Apache 2.2.3/Mod_jk 1.2.22 on Suse Linux 10.
We are trying to implement an Apache Farm with three Apache instances
reverse-proxying to multiple JBoss cluster nodes using mod_jk connector
with load-balancing and sticky session configuration.
 
As per the Tomcat connector documentatiob, there can be only one
"JkWorkersFile" pointed to workers.properties. But it would be extremely
cumbersome to maintain a single workers.properties file, which will
become so huge with lot of workers defined. To be able to add/remove
easily worker nodes, it would be useful to have the possibility to
specify multiple JkWorkersFile.
 
Is there a way to specify multiple JkWorkersFile for mod_jk
configuration. Please let me know.
 
Thanks,
Satya S Kotla
 
This e-mail and its attachments are confidential and solely for the
intended addressee(s). Do not share or use them without Fannie Mae's
approval. If received in error, contact the sender and delete them.
 

Re: Mod_jk question

Posted by Rainer Jung <ra...@kippdata.de>.
Only 1 worker file is possible and it must be defined in the global 
section of the httpd configuration.

You can think about using three things to make configs easier to 
maintain (depending on your taste)

- Using the "reference" feature (see jk reference guide for 
workers.properties), which allows to inherit properties between workers. 
You can use this to configure the attributes, that are mostly the same 
for all workers (timeouts etc.) on a template worker and then inherit 
those from the template worker(s) to the actual workers.

- Using JkWorkerProperty Apache httpd directive (see jk reference guide 
for apache httpd) you can inline all workers.properties lines into 
httpd.conf, which of course can be structured hierarchical. This 
directive is only allowed in the global parts, so you can include parts, 
but you can not make them local to vhosts.

- Using variables in workers.properties. You can set variables in 
workers.properties like

x=value

and then use them like

y=something$(x)otherthing

Regards,

Rainer

Kotla, Satya S (Contractor) wrote:
> Hi,
>  
> We are running JBoss 4.2.0/Apache 2.2.3/Mod_jk 1.2.22 on Suse Linux 10.
> We are trying to implement an Apache Farm with three Apache instances
> reverse-proxying to multiple JBoss cluster nodes using mod_jk connector
> with load-balancing and sticky session configuration.
>  
> As per the Tomcat connector documentatiob, there can be only one
> "JkWorkersFile" pointed to workers.properties. But it would be extremely
> cumbersome to maintain a single workers.properties file, which will
> become so huge with lot of workers defined. To be able to add/remove
> easily worker nodes, it would be useful to have the possibility to
> specify multiple JkWorkersFile.
>  
> Is there a way to specify multiple JkWorkersFile for mod_jk
> configuration. Please let me know.
>  
> Thanks,
> Satya S Kotla

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


Re: Mod_jk question

Posted by Rainer Jung <ra...@kippdata.de>.
And another comment:

you can add/remove nodes also by simply switching their activation 
attribute to disabled (no new sessions) or stopped (no more requests at 
all).

Again you can't factor those out (onyl by mixing workers.properties and 
JkWorkerProperty), but the status is concentrated in only one line per 
worker, it's activation and doesn't have to be reflected by deleting all 
config lines related to the worker.

Kotla, Satya S (Contractor) wrote:
> Hi,
>  
> We are running JBoss 4.2.0/Apache 2.2.3/Mod_jk 1.2.22 on Suse Linux 10.
> We are trying to implement an Apache Farm with three Apache instances
> reverse-proxying to multiple JBoss cluster nodes using mod_jk connector
> with load-balancing and sticky session configuration.
>  
> As per the Tomcat connector documentatiob, there can be only one
> "JkWorkersFile" pointed to workers.properties. But it would be extremely
> cumbersome to maintain a single workers.properties file, which will
> become so huge with lot of workers defined. To be able to add/remove
> easily worker nodes, it would be useful to have the possibility to
> specify multiple JkWorkersFile.
>  
> Is there a way to specify multiple JkWorkersFile for mod_jk
> configuration. Please let me know.
>  
> Thanks,
> Satya S Kotla
>  
> This e-mail and its attachments are confidential and solely for the
> intended addressee(s). Do not share or use them without Fannie Mae's
> approval. If received in error, contact the sender and delete them.

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