Clustering Jboss using Apache load balancer.

Clustering Jboss using Apache load balancer.

am 24.04.2008 08:25:09 von Ch Praveena

------=_Part_20272_4275982.1209018309054
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

I want to cluster nodes belonging to two different machines each of which
have different jboss servers running seperately on different ports. For
this, I have copied the Jboss home directory and named seperately as Jboss1,
Jboss2, Jboss3,.. I have also changed different port numbers where
necessary, like bind address. Now, I have used the httpd 2.0.63 apache load
balancer for clustering all these nodes. Initially, all the nodes seeming
working well. But, when one node drops, I found the browser displaying the
"Session expiry". sometimes, I am even experiencing "Service unavailable 503
" error with load balancer.

This is my workers.properties file I have attached. (Please check the AJP
1.3 Connector port values too.)
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
#
worker.list=loadbalancer,status

# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=18009
worker.node1.host=10.20.220.3
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=28009
worker.node2.host= 10.20.220.3
worker.node2.type=ajp13
worker.node2.lbfactor=1
# worker.node2.connection_pool_size=10 (1)

# Define Node3
# modify the host as your host IP or DNS name.
worker.node3.port=38009
worker.node3.host=10.20.220.3
worker.node3.type=ajp13
worker.node3.lbfactor=1
# worker.node3.connection_pool_size=10 (1)

# Define Node4
# modify the host as your host IP or DNS name.
worker.node4.port=48009
worker.node4.host=10.20.220.3
worker.node4.type=ajp13
worker.node4.lbfactor=1
# worker.node4.connection_pool_size=10 (1)

# Define Node5
# modify the host as your host IP or DNS name.
worker.node5.port=58009
worker.node5.host=10.20.220.15
worker.node5.type=ajp13
worker.node5.lbfactor=1
# worker.node5.connection_pool_size=10 (1)

# Define Node6
# modify the host as your host IP or DNS name.
worker.node6.port=68009
worker.node6.host=10.20.220.15
worker.node6.type=ajp13
worker.node6.lbfactor=1
# worker.node6.connection_pool_size=10 (1)


# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2,node3,node4, node5,node6
worker.loadbalancer.sticky_session=1
#worker.list=loadbalancer

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



My uriworkermap.properties file.
# Simple worker configuration file
#

# Mount the Servlet context to the ajp13 worker

/casper-2.1=loadbalancer

/casper-2.1**/*=loadbalancer

/web-console=loadbalancer
/web-console/*=loadbalancer


Please let me know where I might have gone wrong.
I have followed the document,
http://www.jboss.org/file-access/default/members/jbossas/fre ezone/docs/Clustering_Guide/beta422/pdf/Clustering_Guide.pdf

--
Regards,

Praveena Chalamcharla,
Securview....

------=_Part_20272_4275982.1209018309054
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

I want to cluster nodes belonging to two
different machines each of which have different jboss servers running
seperately on different ports. For this, I have copied the Jboss home
directory and named seperately as Jboss1, Jboss2, Jboss3,.. I have also
changed different port numbers where necessary, like bind address. Now,
I have used the httpd 2.0.63 apache load balancer for clustering all
these nodes. Initially, all the nodes seeming working well. But, when
one node drops, I found the browser displaying the "Session expiry".
sometimes, I am even experiencing "Service unavailable 503 " error with
load balancer.


This is my workers.properties file I have attached. (Please check the AJP 1.3 Connector port values too.)


# Define list of workers that will be used

# for mapping requests

# The configuration directives are valid

# for the mod_jk version 1.2.18 and later

#

worker.list=loadbalancer,status



# Define Node1

# modify the host as your host IP or DNS name.

worker.node1.port=18009

worker.node1.host=

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

worker.node2.host=

worker.node2.type=ajp13

worker.node2.lbfactor=1

# worker.node2.connection_pool_size=10 (1)



# Define Node3

# modify the host as your host IP or DNS name.

worker.node3.port=38009

worker.node3.host=

worker.node3.type=ajp13

worker.node3.lbfactor=1

# worker.node3.connection_pool_size=10 (1)



# Define Node4

# modify the host as your host IP or DNS name.

worker.node4.port=48009

worker.node4.host=

worker.node4.type=ajp13

worker.node4.lbfactor=1

# worker.node4.connection_pool_size=10 (1)



# Define Node5

# modify the host as your host IP or DNS name.

worker.node5.port=58009

worker.node5.host=

worker.node5.type=ajp13

worker.node5.lbfactor=1

# worker.node5.connection_pool_size=10 (1)



# Define Node6

# modify the host as your host IP or DNS name.

worker.node6.port=68009

worker.node6.host=

worker.node6.type=ajp13

worker.node6.lbfactor=1

# worker.node6.connection_pool_size=10 (1)





# Load-balancing behaviour

worker.loadbalancer.type=lb

worker.loadbalancer.balance_workers=node1,node2,node3,node4, node5,node6

worker.loadbalancer.sticky_session=1

#worker.list=loadbalancer



# Status worker for managing load balancer

worker.status.type=status








My uriworkermap.properties file.


# Simple worker configuration file

#



# Mount the Servlet context to the ajp13 worker



/casper-2.1=loadbalancer



/casper-2.1**/*=loadbalancer



/web-console=loadbalancer

/web-console/*=loadbalancer






Please let me know where I might have gone wrong.

I have followed the document,


--
Regards,

Praveena Chalamcharla,
Securview....

------=_Part_20272_4275982.1209018309054--

RE: Clustering Jboss using Apache load balancer.

am 24.04.2008 12:56:51 von Narendra Verma

--_000_33018C5018AA3042A227BBB6D9BF4A5C016ADD0Email1impetusc oi_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,
You wrote that "Initially, all the nodes seeming working well" that means y=
our environment is working well for loadbalancing....
Ensure that there must be setup among jboss servers for clustering support =
(session replication). If yes then you have to configure like

worker.loadbalancer.sticky_session=3D0 (for clustering or sessio=
n replication)

Supporting for load balancing with Clustering.

Thanks
Narendra
Impetus

-----Original Message-----
From: Ch Praveena [mailto:ps050202@gmail.com]
Sent: Thursday, April 24, 2008 11:55 AM
To: users@httpd.apache.org
Subject: [users@httpd] Clustering Jboss using Apache load balancer.

Hi all,

I want to cluster nodes belonging to two different machines each of which h=
ave different jboss servers running seperately on different ports. For this=
, I have copied the Jboss home directory and named seperately as Jboss1, Jb=
oss2, Jboss3,.. I have also changed different port numbers where necessary,=
like bind address. Now, I have used the httpd 2.0.63 apache load balancer =
for clustering all these nodes. Initially, all the nodes seeming working we=
ll. But, when one node drops, I found the browser displaying the "Session e=
xpiry". sometimes, I am even experiencing "Service unavailable 503 " error =
with load balancer.

This is my workers.properties file I have attached. (Please check the AJP 1=
..3 Connector port values too.)
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
#
worker.list=3Dloadbalancer,status

# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=3D18009
worker.node1.host=3D10.20.220.3
worker.node1.type=3Dajp13
worker.node1.lbfactor=3D1
# worker.node1.connection_pool_size=3D10 (1)

# Define Node2
# modify the host as your host IP or DNS name.
worker.node2.port=3D28009
worker.node2.host=3D 10.20.220.3
worker.node2.type=3Dajp13
worker.node2.lbfactor=3D1
# worker.node2.connection_pool_size=3D10 (1)

# Define Node3
# modify the host as your host IP or DNS name.
worker.node3.port=3D38009
worker.node3.host=3D10.20.220.3
worker.node3.type=3Dajp13
worker.node3.lbfactor=3D1
# worker.node3.connection_pool_size=3D10 (1)

# Define Node4
# modify the host as your host IP or DNS name.
worker.node4.port=3D48009
worker.node4.host=3D10.20.220.3
worker.node4.type=3Dajp13
worker.node4.lbfactor=3D1
# worker.node4.connection_pool_size=3D10 (1)

# Define Node5
# modify the host as your host IP or DNS name.
worker.node5.port=3D58009
worker.node5.host=3D10.20.220.15
worker.node5.type=3Dajp13
worker.node5.lbfactor=3D1
# worker.node5.connection_pool_size=3D10 (1)

# Define Node6
# modify the host as your host IP or DNS name.
worker.node6.port=3D68009
worker.node6.host=3D10.20.220.15
worker.node6.type=3Dajp13
worker.node6.lbfactor=3D1
# worker.node6.connection_pool_size=3D10 (1)


# Load-balancing behaviour
worker.loadbalancer.type=3Dlb
worker.loadbalancer.balance_workers=3Dnode1,node2,node3,node 4,node5,node6
worker.loadbalancer.sticky_session=3D1
#worker.list=3Dloadbalancer

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



My uriworkermap.properties file.
# Simple worker configuration file
#

# Mount the Servlet context to the ajp13 worker

/casper-2.1=3Dloadbalancer

/casper-2.1**/*=3Dloadbalancer

/web-console=3Dloadbalancer
/web-console/*=3Dloadbalancer


Please let me know where I might have gone wrong.
I have followed the document, http://www.jboss.org/file-access/default/memb=
ers/jbossas/freezone/docs/Clustering_Guide/beta422/pdf/Clust ering_Guide.pdf

--
Regards,

Praveena Chalamcharla,
Securview....

--_000_33018C5018AA3042A227BBB6D9BF4A5C016ADD0Email1impetusc oi_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable















w Roman"> style=3D'font-size:12.0pt'>Hi,



w Roman"> style=3D'font-size:12.0pt'>You wrote that “Initially, all the nodes s=
eeming
working well” that means your environment is working well for loadbal=
ancing….



w Roman"> style=3D'font-size:12.0pt'>Ensure that there must be setup among jboss serv=
ers for
clustering support (session replication). If yes then you have to configure=
like



w Roman"> style=3D'font-size:12.0pt'> 



w Roman"> style=3D'font-size:12.0pt'>        =
 
 worker.loadbalancer.sticky_sessio=
n=3D0 (for
clustering or session replication)



w Roman"> style=3D'font-size:12.0pt'> 



w Roman"> style=3D'font-size:12.0pt'>Supporting for load balancing with Clustering. span>



=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks



=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Narendra



=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Impetus



=3D'font-size:
10.0pt;font-family:Arial;color:navy'> 



a> style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message----- >
From: Ch Praveena
[mailto:ps050202@gmail.com]

Sent:
ze=3D2 face=3DTahoma>Th=
ursday, April
24, 2008
e:10.0pt;
font-family:Tahoma'>
style=3D'font-size:10.0pt;font-family:Tahoma'>11:55 AM size=3D2 face=3DTahoma>=


To: users@httpd.apache.org r>
Subject: [users@httpd] Clust=
ering
Jboss using Apache load balancer.



s New Roman"> style=3D'font-size:12.0pt'> 



s New Roman"> style=3D'font-size:12.0pt'>Hi all,



I want to cluster nodes belonging to two different
machines each of which have different jboss servers running seperately on
different ports. For this, I have copied the Jboss home directory and named
seperately as Jboss1, Jboss2, Jboss3,.. I have also changed different port
numbers where necessary, like bind address. Now, I have used the httpd 2.0.=
63
apache load balancer for clustering all these nodes. Initially, all the nod=
es
seeming working well. But, when one node drops, I found the browser display=
ing
the "Session expiry". sometimes, I am even experiencing "Ser=
vice
unavailable 503 " error with load balancer.




This is my workers.properties file I have attached.
(Please check the AJP 1.3 Connector port values too.)


# Define list of=
workers
that will be used
>
# for mapping requests

# The configuration directives are valid

# for the mod_jk version 1.2.18 and later >
#

worker.list=3Dloadbalancer,status



# Define Node1

# modify the host as your host IP or DNS name. n>

worker.node1.port=3D18009

worker.node1.host=3D1=
0.20.220.3



worker.node1.type=3Dajp13

worker.node1.lbfactor=3D1

# worker.node1.connection_pool_size=3D10 (1) =




# Define Node2

# modify the host as your host IP or DNS name. n>

worker.node2.port=3D28009

worker.node2.host=3D =
10.20.220.3



worker.node2.type=3Dajp13

worker.node2.lbfactor=3D1

# worker.node2.connection_pool_size=3D10 (1) =




# Define Node3

# modify the host as your host IP or DNS name. n>

worker.node3.port=3D38009

worker.node3.host=3D1=
0.20.220.3



worker.node3.type=3Dajp13

worker.node3.lbfactor=3D1

# worker.node3.connection_pool_size=3D10 (1) =




# Define Node4

# modify the host as your host IP or DNS name. n>

worker.node4.port=3D48009

worker.node4.host=3D1=
0.20.220.3



worker.node4.type=3Dajp13

worker.node4.lbfactor=3D1

# worker.node4.connection_pool_size=3D10 (1) =




# Define Node5

# modify the host as your host IP or DNS name. n>

worker.node5.port=3D58009

worker.node5.host=3D=
10.20.220.15



worker.node5.type=3Dajp13

worker.node5.lbfactor=3D1

# worker.node5.connection_pool_size=3D10 (1) =




# Define Node6

# modify the host as your host IP or DNS name. n>

worker.node6.port=3D68009

worker.node6.host=3D=
10.20.220.15



worker.node6.type=3Dajp13

worker.node6.lbfactor=3D1

# worker.node6.connection_pool_size=3D10 (1) =






# Load-balancing behaviour

worker.loadbalancer.type=3Dlb

worker.loadbalancer.balance_workers=3Dnode1,node2,no=
de3,node4,node5,node6


worker.loadbalancer.sticky_session=3D1

#worker.list=3Dloadbalancer



# Status worker for managing load balancer r>
worker.status.type=3Dstatus







My uriworkermap.properties file.

# Simple worker
configuration file
r>
#



# Mount the Servlet context to the ajp13 worker an>



/casper-2.1=3Dloadbalancer



/casper-2.1**/*=3Dloadbalancer



/web-console=3Dloadbalancer

/web-console/*=3Dloadbalancer





Please let me know where I might have gone wrong. span>

I have followed the document, href=3D"http://www.jboss.org/file-access/default/members/jbo ssas/freezone/d=
ocs/Clustering_Guide/beta422/pdf/Clustering_Guide.pdf">http: //www.jboss.org=
/file-access/default/members/jbossas/freezone/docs/Clusterin g_Guide/beta422=
/pdf/Clustering_Guide.pdf clear=3Dall>


--

Regards,



Praveena Chalamcharla,

Securview....









--_000_33018C5018AA3042A227BBB6D9BF4A5C016ADD0Email1impetusc oi_--