You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Arturo Martinez <am...@gmail.com> on 2007/05/10 10:30:19 UTC

2 apache with mod_jk and only one Jboss

Hello

Is this possible? We have configure 2 apache pointing to the same jboss
without modifying the jboss configuration and we find some strange problems.
Sometimes it does not work.
Where can I find more information about how to do that. We need this because
we have 2 applications in Jboss and one needs a client certificate and the
other doesn't. We have configure one apache to ask for the certificate.

Please give me some help

Thanks

Re: 2 apache with mod_jk and only one Jboss

Posted by Arturo Martinez <am...@gmail.com>.
Thanks

The problems are that the apache can not redirect to the jboss sometimes.
When I try to connect to one apache the other seems that stop working. After
sometime they start working again without doing nothing.

Where do I configure the number of connections?
How do I have to configure Jboss
jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\server.xml   ?

I only have both apache workers.properties like this:

worker.list=loadbalancer,status

# Define Node1
# modify the host as your host IP or DNS name.
#worker.node1.port=8009
#worker.node1.host=172.30.112.108
#worker.node1.type=ajp13
#worker.node1.lbfactor=1
# worker.node1.connection_pool_size=10 (1)

# Define Node2
# modify the host as your host IP or DNS name.
worker.node2.port=8009
worker.node2.host= 172.30.112.109
worker.node2.type=ajp13
worker.node2.lbfactor=1
# worker.node1.connection_pool_size=10 (1)

# Load-balancing behaviour
worker.loadbalancer.type=lb
#worker.loadbalancer.balance_workers=node1,node2
worker.loadbalancer.balance_workers=node2

# Status worker for managing load balancer
worker.status.type=status


Thanks

2007/5/10, Tim Funk <fu...@joedog.org>:
>
> This is possible. But "strange problems" doesn't really provide any
> details to how to solve the issue.
>
> Since you have 2 apache's and one tomcat - you need to ensure you have
> tomcat configured to accept the appropriate amount of connections from
> both apaches. For example - if each apache can create 100 connections to
> tomcat - then tomcat needs to be configured to accept 200 connections.
>
> -Tim
>
> Arturo Martinez wrote:
> > Hello
> >
> > Is this possible? We have configure 2 apache pointing to the same jboss
> > without modifying the jboss configuration and we find some strange
> > problems.
> > Sometimes it does not work.
> > Where can I find more information about how to do that. We need this
> > because
> > we have 2 applications in Jboss and one needs a client certificate and
> the
> > other doesn't. We have configure one apache to ask for the certificate.
> >
> > Please give me some help
> >
> > Thanks
> >
>
>
> ---------------------------------------------------------------------
> 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: 2 apache with mod_jk and only one Jboss

Posted by Tim Funk <fu...@joedog.org>.
This is possible. But "strange problems" doesn't really provide any 
details to how to solve the issue.

Since you have 2 apache's and one tomcat - you need to ensure you have 
tomcat configured to accept the appropriate amount of connections from 
both apaches. For example - if each apache can create 100 connections to 
tomcat - then tomcat needs to be configured to accept 200 connections.

-Tim

Arturo Martinez wrote:
> Hello
> 
> Is this possible? We have configure 2 apache pointing to the same jboss
> without modifying the jboss configuration and we find some strange 
> problems.
> Sometimes it does not work.
> Where can I find more information about how to do that. We need this 
> because
> we have 2 applications in Jboss and one needs a client certificate and the
> other doesn't. We have configure one apache to ask for the certificate.
> 
> Please give me some help
> 
> Thanks
> 


---------------------------------------------------------------------
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