You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marco Sarti <ma...@plangroup.it> on 2011/04/01 16:11:34 UTC

mod_jk workers contact 'localhost' instead of the configured host

Hi,

I'm working with mod_jk 1.2.31 for Apache 2.2.3 under RedHat Linux and I'm trying to configure a simple two JBoss nodes load balancer.
No virtualhost are used.
Workers are configured as follow:
-------------
worker.lnxstagjboss1_staging3.port=8009
worker.lnxstagjboss1_staging3.host=172.16.133.117
worker.lnxstagjboss1_staging3.type=ajp13
worker.lnxstagjboss1_staging3.lbfactor=1

worker.lnxstagjboss2_staging3.port=8009
worker.lnxstagjboss2_staging3.host=172.16.133.118
worker.lnxstagjboss2_staging3.type=ajp13
worker.lnxstagjboss2_staging3.lbfactor=1

worker.loadbalancer3.type=lb
worker.loadbalancer3.sticky_session=1
worker.loadbalancer3.balance_workers=lnxstagjboss1_partition3,lnxstagjboss2_partition3
------------

The two JBoss bind to the addresses 172.16.133.117 and 172.16.133.118, not localhost.
When running Apache, the worker try to connect to localhost instead of the two hosts and obviously does not work. This is the relevant part of log:

[Fri Apr 01 15:14:29 2011][6809:4864] [debug] ajp_validate::jk_ajp_common.c (1996): worker lnxstagjboss1_partition3 contact is 'localhost:8009'
...
[Fri Apr 01 15:14:29 2011][6809:4864] [debug] ajp_validate::jk_ajp_common.c (1996): worker lnxstagjboss2_partition3 contact is 'localhost:8009'



Marco Sarti 




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


Re: mod_jk workers contact 'localhost' instead of the configured host

Posted by Marco Sarti <ma...@plangroup.it>.
My apologies to all the list for this stupid mistake... you are right.
Thank you.

Marco Sarti 
Plansoft Srl - via Rosellini, 25 Firenze 
Cell: (+39)3489932833 
Skype: msarti66 




----- Messaggio originale ----- 
Da: "Konstantin Kolinko" <kn...@gmail.com> 
A: "Tomcat Users List" <us...@tomcat.apache.org> 
Inviato: Venerdì, 1 aprile 2011 16:45:43 
Oggetto: Re: mod_jk workers contact 'localhost' instead of the configured host 

2011/4/1 Marco Sarti <ma...@plangroup.it>: 
> Hi, 
> 
> I'm working with mod_jk 1.2.31 for Apache 2.2.3 under RedHat Linux and I'm trying to configure a simple two JBoss nodes load balancer. 
> No virtualhost are used. 
> Workers are configured as follow: 
> ------------- 
> worker.lnxstagjboss1_staging3.port=8009 
> worker.lnxstagjboss1_staging3.host=172.16.133.117 
> worker.lnxstagjboss1_staging3.type=ajp13 
> worker.lnxstagjboss1_staging3.lbfactor=1 
> 
> worker.lnxstagjboss2_staging3.port=8009 
> worker.lnxstagjboss2_staging3.host=172.16.133.118 
> worker.lnxstagjboss2_staging3.type=ajp13 
> worker.lnxstagjboss2_staging3.lbfactor=1 

How the above names (with "staging" in them) match to the ones below 
(with "partition" in them)? 


> 
> worker.loadbalancer3.type=lb 
> worker.loadbalancer3.sticky_session=1 
> worker.loadbalancer3.balance_workers=lnxstagjboss1_partition3,lnxstagjboss2_partition3 
> ------------ 
> 
> The two JBoss bind to the addresses 172.16.133.117 and 172.16.133.118, not localhost. 
> When running Apache, the worker try to connect to localhost instead of the two hosts and obviously does not work. This is the relevant part of log: 
> 
> [Fri Apr 01 15:14:29 2011][6809:4864] [debug] ajp_validate::jk_ajp_common.c (1996): worker lnxstagjboss1_partition3 contact is 'localhost:8009' 
> ... 
> [Fri Apr 01 15:14:29 2011][6809:4864] [debug] ajp_validate::jk_ajp_common.c (1996): worker lnxstagjboss2_partition3 contact is 'localhost:8009' 
> 

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


Re: mod_jk workers contact 'localhost' instead of the configured host

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/4/1 Marco Sarti <ma...@plangroup.it>:
> Hi,
>
> I'm working with mod_jk 1.2.31 for Apache 2.2.3 under RedHat Linux and I'm trying to configure a simple two JBoss nodes load balancer.
> No virtualhost are used.
> Workers are configured as follow:
> -------------
> worker.lnxstagjboss1_staging3.port=8009
> worker.lnxstagjboss1_staging3.host=172.16.133.117
> worker.lnxstagjboss1_staging3.type=ajp13
> worker.lnxstagjboss1_staging3.lbfactor=1
>
> worker.lnxstagjboss2_staging3.port=8009
> worker.lnxstagjboss2_staging3.host=172.16.133.118
> worker.lnxstagjboss2_staging3.type=ajp13
> worker.lnxstagjboss2_staging3.lbfactor=1

How the above names (with "staging" in them) match to the ones below
(with "partition" in them)?


>
> worker.loadbalancer3.type=lb
> worker.loadbalancer3.sticky_session=1
> worker.loadbalancer3.balance_workers=lnxstagjboss1_partition3,lnxstagjboss2_partition3
> ------------
>
> The two JBoss bind to the addresses 172.16.133.117 and 172.16.133.118, not localhost.
> When running Apache, the worker try to connect to localhost instead of the two hosts and obviously does not work. This is the relevant part of log:
>
> [Fri Apr 01 15:14:29 2011][6809:4864] [debug] ajp_validate::jk_ajp_common.c (1996): worker lnxstagjboss1_partition3 contact is 'localhost:8009'
> ...
> [Fri Apr 01 15:14:29 2011][6809:4864] [debug] ajp_validate::jk_ajp_common.c (1996): worker lnxstagjboss2_partition3 contact is 'localhost:8009'
>

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