HTTP load balancing.

Thread Tools Search this Thread
Operating Systems Linux HTTP load balancing.
# 1  
Old 07-25-2011
HTTP load balancing.


We have 2 pools of servers. Lets call them A and B and they would contain 2 servers each. Pool A will be hosting and pool B will be hosting Clients will be requesting right url (/v1 or /v2) but will be hitting just one IP.

I'd like to:
1) send traffic to the right pool.
2) load balance it across servers in that pool

So what are my options? Any examples please? Is it possible to do that with just one box acting as a proxy/load balancer?

Many thanks

Last edited by DukeNuke2; 07-26-2011 at 09:40 PM..
# 2  
Old 07-26-2011
If you are just serving out different applications or static data, then you don't really need 2 pools of servers, just a load balancer. You can then set them up as virtual servers.

The load balancer IP is the only one you would expose and it would tag a session to whichever server it decides to go on based on whatever load balancing algorithm it uses.

take a look at this:
# 3  
Old 07-27-2011
Hi Mark54g,

Thank you for your time. I've managed to do what I wanted yesterday but didn't have time to post back. Unfortunately I needed 2 pools - some servers are migrated to VM, some need to stay physical for time being. 2 different apps as well (luckily stateless so no need for stickiness). End of the day, very easy config.

For future reference, simplified config from apache:

<Proxy *>
    Order deny,allow
    Deny from all
    Allow from

<Proxy balancer://app1>
BalancerMember ping=1
BalancerMember ping=1

<Proxy balancer://app2>
BalancerMember ping=1
BalancerMember ping=1

ProxyPass /v1 balancer://app1
ProxyPass /v2 balancer://app2

Hope that helps!
# 4  
Old 07-27-2011
You still really don't need 2 pools, but if it works, sure, use it.

Don't forget proxypassreverse
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Load Balancing in UNIX

Dear All, Can any one help me for this request? There is a case. I have 20 files which I need to FTP to 5 servers. I want to know if there is any possibility to make a load balancer which transfers files in round robin manner to 5 servers. As per theoretical algorithm, what I think, flow can... (9 Replies)
Discussion started by: Zaib
9 Replies

2. UNIX for Advanced & Expert Users

Load balancing in Autosys

Hi, I am working on development project where I have to migrate many jobs from Tidal to Autosys R11. During this project we came across the following requirements. 1. There are 3 real machines. There could be many jobs activated simultaneously, but only one job should execute at a time and... (0 Replies)
Discussion started by: sujeetp
0 Replies

3. UNIX for Advanced & Expert Users

Help in MQ load balancing

Hi, Currently we have 3 old and 3 new servers catering to Live traffic. As my component move from legacy interfaces to MQ one, we want to have load balancing of old interfaces available on MQ interface as well. For this, we want to send only 30% of all MQ traffic on 3 OLD Live servers, and want... (1 Reply)
Discussion started by: senkerth
1 Replies

4. IP Networking

Load Balancing ppp

Hello everybody How can i Load Balance two slow ppp(gprs) connections with iptables . (4 Replies)
Discussion started by: rink
4 Replies

5. Web Development

Resource based http load balancing

Hi all, I am looking for a solution to the following issue. Basically, we are going to be implementing a series of front end splunk search heads (basically IO intensive web servers). And wish to automatically redirect a new connection to the search head from the pool with most available... (0 Replies)
Discussion started by: STOIE
0 Replies

6. IP Networking

SFTP Software Load Balancing

All, I am running some RHEL 5 SFTP servers and I need to load balance them. I am most likely having to do a software load balance. I tried it with Piranha, but I get a connection refused response after setting it up. Anyone have any experience with trying to load balance SSH/SFTP and... (0 Replies)
Discussion started by: markdjones82
0 Replies

7. Web Development

Load Balancing in Apache

Hi All, I have one webserver which has an application for a set of internal users can be accessed by _ I am planning to load balance this application. For that I have cloned this server and build a new one which can be accessed using _] Also i... (2 Replies)
Discussion started by: Tuxidow
2 Replies

8. Solaris

Load balancing with IPMP

Is it possible to do a load balancing ( incoming and outgoing )with with IPMP in solaris 10 like sun trunking ? If yes what are the steps involved in it , i know how to do the failover IPMP both link based and probe based but i 'm looking for possible load balancing (3 Replies)
Discussion started by: fugitive
3 Replies

9. Ubuntu

perlbal and load balancing

Hi guys, I wonder if someone would be able to assist with my problem. I have just set up a load balancer for a company I am working for. HTTP redirection is working fine, however they also want to load balance SSH and FTP too. At the moment the perlbal config looks like; CREATE POOL webhttp ... (1 Reply)
Discussion started by: JayC89
1 Replies

10. UNIX for Dummies Questions & Answers

Question about load balancing

If you have two or more servers load balancing, are the servers mirroring one another? If images, etc., are uploaded, will they be stored on all the servers so that if one server goes down, the images will be served up by another server? (1 Reply)
Discussion started by: wvmlt
1 Replies
Login or Register to Ask a Question