You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mo...@polarisFT.com on 2013/09/23 08:54:51 UTC

worker.properties misconfiguration ?

Hi,
          I came across this worker.properties that has two workers to 
balance the load.

worker.list=node1,node2 loadbalancer,status

This particular line seems to be misconfigured. 'worker.list' has 
node1,node2  <space> loadbalancer,status

I think the line should be like this

worker.list=loadbalancer,status

Does anyone know if the incorrectly configured line is actually meaningful 
?

Thanks,
Mohan

worker.list=node1,node2 loadbalancer,status
worker.node1.port=8209
worker.node1.host=172.20.100.2
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node2.port=8209
worker.node2.host=172.20.100.3
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
worker.status.type=status


This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polarisFT.com

Re: worker.properties misconfiguration ?

Posted by mo...@polarisFT.com.
It does have an effect according to the netstat output.

I want to forget this configuration in a production bank server done by 
someone :-) It looks like the parser picked up node1, They have ignored 
the parser errors wherever it is logged.

node2 loadbalancer is not a node at all. A space is there instead of a 
comma. But node2's AJP port is connected to from the Apache machine and I 
don't
know if I have to suspect the 'status' worker or not.

I am changing everything.

Thanks.



From:   Christopher Schultz <ch...@christopherschultz.net>
To:     Tomcat Users List <us...@tomcat.apache.org>
Date:   09/23/2013 05:59 PM
Subject:        Re: worker.properties misconfiguration ?



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

André,

On 9/23/13 3:03 AM, André Warnier wrote:
> mohan.radhakrishnan@polarisFT.com wrote:
>> Hi, I came across this worker.properties that has two workers to 
>> balance the load.
>> 
>> worker.list=node1,node2 loadbalancer,status
>> 
>> This particular line seems to be misconfigured. 'worker.list'
>> has node1,node2  <space> loadbalancer,status
>> 
>> I think the line should be like this
>> 
>> worker.list=loadbalancer,status
> 
> Correct.
> 
>> 
>> Does anyone know if the incorrectly configured line is actually 
>> meaningful ?
> 
> No, it isn't.

Well, that line does have an effect... just not the likely intended
effect.

What you will probably end up with is three actually-active workers:
"node1", "node2 loadbanalcer" and "status".

Since you have configured a "status" worker, try navigating to
whatever URL has mounted that worker (or add a JkMount that does such
a thing) and looking at the effective configuration.

I'm surprised you didn't get an error on this line:

>> worker.loadbalancer.balance_workers=node1,node2

...since "node2" probably does not exist.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSQDNxAAoJEBzwKT+lPKRYLLMQAJLUsfkgYxkz08aRselRH6BD
XCYzrq3EUcCr7/YIEEpTyOk1L7p6vGyV14OTpUWiD5cwRT8hOLv1j4jaPEjRMDWP
03q3cSO0d33u7InX6t9x3Rvt2qaFDsNyc9UIRd+1H23SSnkVaghcBiUFJNdDE+K3
3xoH0RHuW2lgp382rYUQgRtHaQV/zFJcc6ubi/GejFyeCga07yHKDdk5N8VQN8X1
OaXrD6H4N4s6E97sbRYO3L9RtYrw/lxYvIrSuOrJN6pOGalqTPf27r5vyt7FmDpW
ln1Dct24r8+M7Etgnmg9MG1p3R8sagB5/k8jHvuv5lI7WcDuvmXBJsekvPp2bEiQ
H9LbVrl+DmDM/iiVH3cJfuq0RlCdmYNTJdZRtJZoDMgstx4ifh+PAmVAPWazjMm/
RwEpnxYgpkRvbM6opD35ot68+XFfTEw0FkyjhILAYiR90H6yEnkfc0uHG3DpHhAu
Kj12KcS8cOKzevlClB0ho+c66oP2P5aQb+afOq+FLoRXNBrtBd8v+/dftuCULtkx
qWVic/d9d+kVLuscijoeW7xbf8sADQca+9PhnyZmqhomDdhunfLxHT71kv7gbfUT
RCuzydi738qXFGpi+ok5Dxojo2LOa3byT8Q6ZyL5h/lb0xzlz1lP8XXupkz6UoU2
8Sqoty/6sV0VHsXAi5hg
=q03U
-----END PGP SIGNATURE-----

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





This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polarisFT.com

Re: worker.properties misconfiguration ?

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

André,

On 9/23/13 3:03 AM, André Warnier wrote:
> mohan.radhakrishnan@polarisFT.com wrote:
>> Hi, I came across this worker.properties that has two workers to 
>> balance the load.
>> 
>> worker.list=node1,node2 loadbalancer,status
>> 
>> This particular line seems to be misconfigured. 'worker.list'
>> has node1,node2  <space> loadbalancer,status
>> 
>> I think the line should be like this
>> 
>> worker.list=loadbalancer,status
> 
> Correct.
> 
>> 
>> Does anyone know if the incorrectly configured line is actually 
>> meaningful ?
> 
> No, it isn't.

Well, that line does have an effect... just not the likely intended
effect.

What you will probably end up with is three actually-active workers:
"node1", "node2 loadbanalcer" and "status".

Since you have configured a "status" worker, try navigating to
whatever URL has mounted that worker (or add a JkMount that does such
a thing) and looking at the effective configuration.

I'm surprised you didn't get an error on this line:

>> worker.loadbalancer.balance_workers=node1,node2

...since "node2" probably does not exist.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSQDNxAAoJEBzwKT+lPKRYLLMQAJLUsfkgYxkz08aRselRH6BD
XCYzrq3EUcCr7/YIEEpTyOk1L7p6vGyV14OTpUWiD5cwRT8hOLv1j4jaPEjRMDWP
03q3cSO0d33u7InX6t9x3Rvt2qaFDsNyc9UIRd+1H23SSnkVaghcBiUFJNdDE+K3
3xoH0RHuW2lgp382rYUQgRtHaQV/zFJcc6ubi/GejFyeCga07yHKDdk5N8VQN8X1
OaXrD6H4N4s6E97sbRYO3L9RtYrw/lxYvIrSuOrJN6pOGalqTPf27r5vyt7FmDpW
ln1Dct24r8+M7Etgnmg9MG1p3R8sagB5/k8jHvuv5lI7WcDuvmXBJsekvPp2bEiQ
H9LbVrl+DmDM/iiVH3cJfuq0RlCdmYNTJdZRtJZoDMgstx4ifh+PAmVAPWazjMm/
RwEpnxYgpkRvbM6opD35ot68+XFfTEw0FkyjhILAYiR90H6yEnkfc0uHG3DpHhAu
Kj12KcS8cOKzevlClB0ho+c66oP2P5aQb+afOq+FLoRXNBrtBd8v+/dftuCULtkx
qWVic/d9d+kVLuscijoeW7xbf8sADQca+9PhnyZmqhomDdhunfLxHT71kv7gbfUT
RCuzydi738qXFGpi+ok5Dxojo2LOa3byT8Q6ZyL5h/lb0xzlz1lP8XXupkz6UoU2
8Sqoty/6sV0VHsXAi5hg
=q03U
-----END PGP SIGNATURE-----

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


Re: worker.properties misconfiguration ?

Posted by André Warnier <aw...@ice-sa.com>.
mohan.radhakrishnan@polarisFT.com wrote:
> Hi,
>           I came across this worker.properties that has two workers to 
> balance the load.
> 
> worker.list=node1,node2 loadbalancer,status
> 
> This particular line seems to be misconfigured. 'worker.list' has 
> node1,node2  <space> loadbalancer,status
> 
> I think the line should be like this
> 
> worker.list=loadbalancer,status

Correct.

> 
> Does anyone know if the incorrectly configured line is actually meaningful 
> ?

No, it isn't.

> 
> Thanks,
> Mohan
> 
> worker.list=node1,node2 loadbalancer,status
> worker.node1.port=8209
> worker.node1.host=172.20.100.2
> worker.node1.type=ajp13
> worker.node1.lbfactor=1
> worker.node2.port=8209
> worker.node2.host=172.20.100.3
> worker.node2.type=ajp13
> worker.node2.lbfactor=1
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=node1,node2
> worker.status.type=status
> 
> 
> This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.
> 
> Visit us at http://www.polarisFT.com
> 


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