You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jehan Badshah <je...@nu.edu.pk> on 2011/01/27 10:34:09 UTC

[users@httpd] problem in Loadbalancing using mod_jk (configuration of worker.properties attached)

Dear all

Following is the configuration of *worker.properties* file,
using that configuration my browser (or apache) goes in endless loop.

please help.


---------------------------------------------
--------*worker.properties* --------
--------------------------------------------


worker.list=loadbalancer,status

# Define Node1
worker.node1.port=8009
worker.node1.host=172.16.100.122
worker.node1.type=ajp13
*worker.node1.lbfactor=1*
worker.node1.socket_timeout=100
worker.node1.local_worker=*0*

# Define Node2
worker.node2.port=8009
worker.node2.host=172.16.100.121
worker.node2.type=ajp13
*worker.node2.lbfactor=1*
worker.node2.socket_timeout=100
worker.node2.local_worker=*0*

# Define Node3
worker.node3.port=8009
worker.node3.host=localhost
worker.node3.type=ajp13
*worker.node3.lbfactor=1*
worker.node3.socket_timeout=100
worker.node3.local_worker=*0*

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

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2,node3
worker.loadbalancer.sticky_session=1
*worker.loadbalancer.local_worker_only=1*


 -----------------------
--------end--------
-----------------------


Regards
----------------------------------------------------
Jehan Badshah | Software Engineer
MS (Computer Science)
FAST - National University of Computer and Emerging Sciences
A.K. Brohi Road, H-11/4, Islamabad
UAN: +92 (0)51 - 111 128 128 ext 263
Cell: 0300-5847471

RE: [users@httpd] problem in Loadbalancing using mod_jk (configuration of worker.properties attached)

Posted by Lukas Sklenar <Lu...@detica.com>.
To my unexperienced eye you need node1, node2 and node3 in your
worker.list property as well as the loadbalance and status workers.

 

Hth,

 

Lukas

______________________________________________

Lukas Sklenar 

________________________________

From: Jehan Badshah [mailto:jehan.badshah@nu.edu.pk] 
Sent: 27 January 2011 09:51
To: users@httpd.apache.org
Subject: [users@httpd] problem in Loadbalancing using mod_jk
(configuration of worker.properties attached)

 

 

Dear all

 

Following is the configuration of worker.properties file,

using that configuration my browser (or apache) goes in endless loop.

 

please help.


 

---------------------------------------------

--------worker.properties --------

--------------------------------------------

 


worker.list=loadbalancer,status


# Define Node1
worker.node1.port=8009
worker.node1.host=172.16.100.122
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.socket_timeout=100
worker.node1.local_worker=1 


# Define Node2
worker.node2.port=8009
worker.node2.host=172.16.100.121
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.socket_timeout=100
worker.node2.local_worker=1

 

# Define Node3
worker.node3.port=8009
worker.node3.host=localhost
worker.node3.type=ajp13
worker.node3.lbfactor=1
worker.node3.socket_timeout=100
worker.node3.local_worker=1


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


# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2,node3
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=1

 

 

-----------------------

--------end--------

-----------------------

 


Regards
----------------------------------------------------
Jehan Badshah | Software Engineer
MS (Computer Science)
FAST - National University of Computer and Emerging Sciences
A.K. Brohi Road, H-11/4, Islamabad
UAN: +92 (0)51 - 111 128 128 ext 263
Cell: 0300-5847471


Please consider the environment before printing this email.

This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately.
Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory.  The contents of this email may relate to dealings with other companies within the Detica Limited group of companies.

Detica Limited is registered in England under No: 1337451.

Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.


Re: [users@httpd] problem in Loadbalancing using mod_jk (configuration of worker.properties attached)

Posted by Igor Cicimov <ic...@gmail.com>.
Whats the URI that is not working? What is your jk_module configuration in
the httpd.conf file? Do you have the appropriate JkMount statements in it?
Post it here please the code between these two

<IfModule jk_module>

</IfModule>

On Fri, Jan 28, 2011 at 4:52 PM, Jehan Badshah <je...@nu.edu.pk>wrote:

>
> Yes! to tomcat/conf/server.xml
>
>  I have already added
>
>
> <Engine name="*Catalina*" defaultHost="*localhost*" jvmRoute="*node1*">
> to 172.16.100.122
>
>
> <Engine name="*Catalina*" defaultHost="*localhost*" jvmRoute="*node2*">
> to 172.16.100.121
>
>
> <Engine name="*Catalina*" defaultHost="*localhost*" jvmRoute="*node3*">
> to localhost
>
>
> On Fri, Jan 28, 2011 at 10:40 AM, Igor Cicimov <ic...@gmail.com> wrote:
>
>> Did you configure the Tomcats though? Make sure that jvmRoute attribute is
>> set at your Engine so for the first one you need to have
>>
>> <Engine name="Catalina" jvmRoute="node1">
>>
>> for second one
>>
>> <Engine name="Catalina" jvmRoute="node2">
>>
>> etc.
>>
>>
>> On Fri, Jan 28, 2011 at 3:20 PM, Jehan Badshah <je...@nu.edu.pk>wrote:
>>
>>>
>>>  Dear all
>>>
>>> Following is the configuration of *worker.properties* file,
>>> using that configuration my browser (or apache) goes in endless loop.
>>>
>>> please help.
>>>
>>>
>>> ---------------------------------------------
>>> --------*worker.properties* --------
>>> --------------------------------------------
>>>
>>>
>>> worker.list=loadbalancer,status
>>>
>>> # Define Node1
>>> worker.node1.port=8009
>>> worker.node1.host=172.16.100.122
>>> worker.node1.type=ajp13
>>> *worker.node1.lbfactor=1*
>>> worker.node1.socket_timeout=100
>>> worker.node1.local_worker=*1*
>>>
>>> # Define Node2
>>> worker.node2.port=8009
>>> worker.node2.host=172.16.100.121
>>> worker.node2.type=ajp13
>>> *worker.node2.lbfactor=1*
>>> worker.node2.socket_timeout=100
>>> worker.node2.local_worker=*1*
>>>
>>>  # Define Node3
>>> worker.node3.port=8009
>>> worker.node3.host=localhost
>>> worker.node3.type=ajp13
>>> *worker.node3.lbfactor=1*
>>> worker.node3.socket_timeout=100
>>> worker.node3.local_worker=*1*
>>>
>>> # Status worker for managing load balancer
>>> worker.status.type=status
>>>
>>> # Load-balancing behaviour
>>> worker.loadbalancer.type=lb
>>> worker.loadbalancer.balance_workers=node1,node2,node3
>>> worker.loadbalancer.sticky_session=1
>>> *worker.loadbalancer.local_worker_only=1*
>>>
>>>
>>>  -----------------------
>>> --------end--------
>>> -----------------------
>>>
>>>
>>> Regards
>>> ----------------------------------------------------
>>> Jehan Badshah | Software Engineer
>>> MS (Computer Science)
>>> FAST - National University of Computer and Emerging Sciences
>>> A.K. Brohi Road, H-11/4, Islamabad
>>> UAN: +92 (0)51 - 111 128 128 ext 263
>>> Cell: 0300-5847471
>>>
>>>
>>>
>>>
>>
>
>
> --
>
> Regards
> ----------------------------------------------------
> Jehan Badshah | Software Engineer
> MS (Computer Science)
> FAST - National University of Computer and Emerging Sciences
> A.K. Brohi Road, H-11/4, Islamabad
> UAN: +92 (0)51 - 111 128 128 ext 263
> Cell: 0300-5847471
>
>

Re: [users@httpd] problem in Loadbalancing using mod_jk (configuration of worker.properties attached)

Posted by Jehan Badshah <je...@nu.edu.pk>.
Yes! to tomcat/conf/server.xml

 I have already added


<Engine name="*Catalina*" defaultHost="*localhost*" jvmRoute="*node1*">
to 172.16.100.122


<Engine name="*Catalina*" defaultHost="*localhost*" jvmRoute="*node2*">
to 172.16.100.121


<Engine name="*Catalina*" defaultHost="*localhost*" jvmRoute="*node3*">
to localhost


On Fri, Jan 28, 2011 at 10:40 AM, Igor Cicimov <ic...@gmail.com> wrote:

> Did you configure the Tomcats though? Make sure that jvmRoute attribute is
> set at your Engine so for the first one you need to have
>
> <Engine name="Catalina" jvmRoute="node1">
>
> for second one
>
> <Engine name="Catalina" jvmRoute="node2">
>
> etc.
>
>
> On Fri, Jan 28, 2011 at 3:20 PM, Jehan Badshah <je...@nu.edu.pk>wrote:
>
>>
>>  Dear all
>>
>> Following is the configuration of *worker.properties* file,
>> using that configuration my browser (or apache) goes in endless loop.
>>
>> please help.
>>
>>
>> ---------------------------------------------
>> --------*worker.properties* --------
>> --------------------------------------------
>>
>>
>> worker.list=loadbalancer,status
>>
>> # Define Node1
>> worker.node1.port=8009
>> worker.node1.host=172.16.100.122
>> worker.node1.type=ajp13
>> *worker.node1.lbfactor=1*
>> worker.node1.socket_timeout=100
>> worker.node1.local_worker=*1*
>>
>> # Define Node2
>> worker.node2.port=8009
>> worker.node2.host=172.16.100.121
>> worker.node2.type=ajp13
>> *worker.node2.lbfactor=1*
>> worker.node2.socket_timeout=100
>> worker.node2.local_worker=*1*
>>
>>  # Define Node3
>> worker.node3.port=8009
>> worker.node3.host=localhost
>> worker.node3.type=ajp13
>> *worker.node3.lbfactor=1*
>> worker.node3.socket_timeout=100
>> worker.node3.local_worker=*1*
>>
>> # Status worker for managing load balancer
>> worker.status.type=status
>>
>> # Load-balancing behaviour
>> worker.loadbalancer.type=lb
>> worker.loadbalancer.balance_workers=node1,node2,node3
>> worker.loadbalancer.sticky_session=1
>> *worker.loadbalancer.local_worker_only=1*
>>
>>
>>  -----------------------
>> --------end--------
>> -----------------------
>>
>>
>> Regards
>> ----------------------------------------------------
>> Jehan Badshah | Software Engineer
>> MS (Computer Science)
>> FAST - National University of Computer and Emerging Sciences
>> A.K. Brohi Road, H-11/4, Islamabad
>> UAN: +92 (0)51 - 111 128 128 ext 263
>> Cell: 0300-5847471
>>
>>
>>
>>
>


-- 

Regards
----------------------------------------------------
Jehan Badshah | Software Engineer
MS (Computer Science)
FAST - National University of Computer and Emerging Sciences
A.K. Brohi Road, H-11/4, Islamabad
UAN: +92 (0)51 - 111 128 128 ext 263
Cell: 0300-5847471

Re: [users@httpd] problem in Loadbalancing using mod_jk (configuration of worker.properties attached)

Posted by Igor Cicimov <ic...@gmail.com>.
Did you configure the Tomcats though? Make sure that jvmRoute attribute is
set at your Engine so for the first one you need to have

<Engine name="Catalina" jvmRoute="node1">

for second one

<Engine name="Catalina" jvmRoute="node2">

etc.

On Fri, Jan 28, 2011 at 3:20 PM, Jehan Badshah <je...@nu.edu.pk>wrote:

>
>  Dear all
>
> Following is the configuration of *worker.properties* file,
> using that configuration my browser (or apache) goes in endless loop.
>
> please help.
>
>
> ---------------------------------------------
> --------*worker.properties* --------
> --------------------------------------------
>
>
> worker.list=loadbalancer,status
>
> # Define Node1
> worker.node1.port=8009
> worker.node1.host=172.16.100.122
> worker.node1.type=ajp13
> *worker.node1.lbfactor=1*
> worker.node1.socket_timeout=100
> worker.node1.local_worker=*1*
>
> # Define Node2
> worker.node2.port=8009
> worker.node2.host=172.16.100.121
> worker.node2.type=ajp13
> *worker.node2.lbfactor=1*
> worker.node2.socket_timeout=100
> worker.node2.local_worker=*1*
>
>  # Define Node3
> worker.node3.port=8009
> worker.node3.host=localhost
> worker.node3.type=ajp13
> *worker.node3.lbfactor=1*
> worker.node3.socket_timeout=100
> worker.node3.local_worker=*1*
>
> # Status worker for managing load balancer
> worker.status.type=status
>
> # Load-balancing behaviour
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=node1,node2,node3
> worker.loadbalancer.sticky_session=1
> *worker.loadbalancer.local_worker_only=1*
>
>
>  -----------------------
> --------end--------
> -----------------------
>
>
> Regards
> ----------------------------------------------------
> Jehan Badshah | Software Engineer
> MS (Computer Science)
> FAST - National University of Computer and Emerging Sciences
> A.K. Brohi Road, H-11/4, Islamabad
> UAN: +92 (0)51 - 111 128 128 ext 263
> Cell: 0300-5847471
>
>
>
>

Re: [users@httpd] problem in Loadbalancing using mod_jk (configuration of worker.properties attached)

Posted by Igor Galić <i....@brainsware.org>.
----- "Jehan Badshah" <je...@nu.edu.pk> wrote:

> Dear all

Hi,

> Following is the configuration of worker.properties file,

mod_jk questions should go to users@tomcat.apache.org

If you ask them here, you'll generally hear: Use mod_proxy_(ajp|http)

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] problem in Loadbalancing using mod_jk (configuration of worker.properties attached)

Posted by Jehan Badshah <je...@nu.edu.pk>.
 Dear all

Following is the configuration of *worker.properties* file,
using that configuration my browser (or apache) goes in endless loop.

please help.


---------------------------------------------
--------*worker.properties* --------
--------------------------------------------


worker.list=loadbalancer,status

# Define Node1
worker.node1.port=8009
worker.node1.host=172.16.100.122
worker.node1.type=ajp13
*worker.node1.lbfactor=1*
worker.node1.socket_timeout=100
worker.node1.local_worker=*1*

# Define Node2
worker.node2.port=8009
worker.node2.host=172.16.100.121
worker.node2.type=ajp13
*worker.node2.lbfactor=1*
worker.node2.socket_timeout=100
worker.node2.local_worker=*1*

 # Define Node3
worker.node3.port=8009
worker.node3.host=localhost
worker.node3.type=ajp13
*worker.node3.lbfactor=1*
worker.node3.socket_timeout=100
worker.node3.local_worker=*1*

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

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2,node3
worker.loadbalancer.sticky_session=1
*worker.loadbalancer.local_worker_only=1*


 -----------------------
--------end--------
-----------------------


Regards
----------------------------------------------------
Jehan Badshah | Software Engineer
MS (Computer Science)
FAST - National University of Computer and Emerging Sciences
A.K. Brohi Road, H-11/4, Islamabad
UAN: +92 (0)51 - 111 128 128 ext 263
Cell: 0300-5847471

[users@httpd] problem in Loadbalancing using mod_jk (configuration of worker.properties attached)

Posted by Jehan Badshah <je...@nu.edu.pk>.
 Dear all

Following is the configuration of *worker.properties* file,
using that configuration my browser (or apache) goes in endless loop.

please help.


---------------------------------------------
--------*worker.properties* --------
--------------------------------------------


worker.list=loadbalancer,status

# Define Node1
worker.node1.port=8009
worker.node1.host=172.16.100.122
worker.node1.type=ajp13
*worker.node1.lbfactor=1*
worker.node1.socket_timeout=100
worker.node1.local_worker=*1*

# Define Node2
worker.node2.port=8009
worker.node2.host=172.16.100.121
worker.node2.type=ajp13
*worker.node2.lbfactor=1*
worker.node2.socket_timeout=100
worker.node2.local_worker=*1*

# Define Node3
worker.node3.port=8009
worker.node3.host=localhost
worker.node3.type=ajp13
*worker.node3.lbfactor=1*
worker.node3.socket_timeout=100
worker.node3.local_worker=*1*

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

# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2,node3
worker.loadbalancer.sticky_session=1
*worker.loadbalancer.local_worker_only=1*


 -----------------------
--------end--------
-----------------------


Regards
----------------------------------------------------
Jehan Badshah | Software Engineer
MS (Computer Science)
FAST - National University of Computer and Emerging Sciences
A.K. Brohi Road, H-11/4, Islamabad
UAN: +92 (0)51 - 111 128 128 ext 263
Cell: 0300-5847471