LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 06-24-2008, 10:26 AM   #1
linux2man
Member
 
Registered: Oct 2006
Posts: 33

Rep: Reputation: 16
LoadBalancing to Jboos


Hi,
We have 3 servers:-
10.1.10.1 LoadBalncer RHEL.5
10.1.10.2 Jboos1 Solaris-8.0
10.1.10.3 Jboos2 Solaris-8.0

We ran Apache on both jboos servers as webservers to serve jboss.
Target is:- Load balance and HA on both Jobss servers via LoadBalncer server.

I tried mod_proxy_balncer but the problem is if jboss down requests still redirected to server because Apache still up.

Any ideas please?
 
Old 06-24-2008, 10:40 AM   #2
LiamFromLeeds
Member
 
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
The setup which I've seen to achieve this is a seperate apache server using mod_jk to load balance between the jboss servers. mod_jk looks after detecting that a jboss server is down and redirecting traffic accordingly.

[HTML]
Server A Apache ---mod_jk----> Server B Jboss
|
---mod_jk-----> Server C Jboss
[/HTML]

If you dont want a seperate apache server you could use mod_jk on both your Jboss servers and tell Apache about both your Jboss instamces ie


[HTML]
Server A Apache ---mod_jk----> Server A Jboss
|
---mod_jk-----> Server B Jboss


Server B Apache --mod_jk-----> Server A Jboss
|
---mod_jk-----> Server B Jboss
[/HTML]
 
Old 06-24-2008, 11:05 AM   #3
linux2man
Member
 
Registered: Oct 2006
Posts: 33

Original Poster
Rep: Reputation: 16
Quote:
The setup which I've seen to achieve this is a seperate apache server using mod_jk to load balance between the jboss servers
Thanks for quick reply LiamFromLeeds

Please let me more clarify.

If we will use seperate apache server:-
1- Install mod_jk on this server.
2- this mod_jk module will check health of Jboss and Apache webserver on
both of jboos server.
3- If Jboss OR Apache Down on one of Jboos servers; the module will redirect all requests to second server.

Am I right?

If yes please provide HowTO link to configure mod_jk to do it?

Many thanks again
 
Old 06-24-2008, 12:58 PM   #4
LiamFromLeeds
Member
 
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
The standalone Apache replaces the ones on your JBoss servers. You can have multiple Apache's if you want fault tolerance as well ie.
[HTML]
------> Server A Apache ----mod_jk -----> Server C JBoss
/ |
Load Balancer --- ----mod_jk -----> Server D JBoss
\
------> Server B Apache ----mod_jk -----> Server C JBoss
|
----mod_jk -----> Server D JBoss
[/HTML]

mod_jk only manages traffic from Apache to JBoss (not Apache to Apache). As I said, though, it does detect JBoss faults and will only forward traffic to the working JBoss instances.

This Howto look pretty good -> http://wiki.jboss.org/wiki/UsingMod_jk1.2WithJBoss.
 
Old 06-24-2008, 01:01 PM   #5
LiamFromLeeds
Member
 
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
My diagram got a bit messed uo in translation, but hopefully you can still make it out.

1) Load balancer balances across two standalone Apache's
2) Apaches load balance across both JBoss's using mod_jk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Box Router doing Dynamic routing like BGP, and loadbalancing Swakoo Linux - Networking 6 01-27-2007 01:04 AM
loadbalancing not working fine gvkp28 Linux - Networking 3 12-17-2005 05:50 AM
Bridging+LoadBalancing---is it possible??? kartheekpn Linux - Networking 0 04-14-2005 03:07 PM
dns loadbalancing tzkolinux Linux - Networking 1 12-21-2004 12:40 AM


All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration