Solved

Suse 10, Apache2 load balance

Posted on 2008-10-23
13
746 Views
Last Modified: 2013-12-16
Hi all,

I have two standalone webservers. I would like to confgiure for load balance without the use of additional hardware.

Is this possible? After searching i have found that is possible with HAproxy. Is it stable?
Any tutorial how can be done on Suse? Is any rpm available for Suse ?


Thanks
0
Comment
Question by:ampranti
  • 7
  • 4
  • 2
13 Comments
 
LVL 10

Assisted Solution

by:MadShiva
MadShiva earned 50 total points
ID: 22795889
Hi !

Yes.

Like you have say it's possible.

It's seem stable and there are support for bug fix.

I don't have find one tutorial with suse.

Maybe you can use the rpm of opensuse.

Best Regards
0
 
LVL 29

Assisted Solution

by:Michael Worsham
Michael Worsham earned 450 total points
ID: 22798284
In a perfect world, you will need a 3rd system to act as a front-end server to delegate the round-robin or distributed load technique between the two servers.

There are a couple of options, however, if budgeting resources are not available...

You can use an Apache module called 'backhand' which allows seamless redirection of HTTP requests from one web server to another. This redirection can be used to target machines with under-utilized resources, thus providing fine-grained, per-request load balancing of web requests.

http://www.backhand.org/mod_backhand/

---

Another option is via an Apache module called 'Proxy Balancer'...
http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html
0
 
LVL 10

Author Comment

by:ampranti
ID: 22829626
Finally it will be implemented with Round Robin DNS....

Even if i install HAproxy on one of two WebServers if it fails the Load Balance and FailOver will fail...
So i need at leat an extra server....
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 10

Author Comment

by:ampranti
ID: 22865618
Unfortunatelly RoundRobin will loose the half users when one server goes down.

What other solutions are out there?
0
 
LVL 10

Expert Comment

by:MadShiva
ID: 22865676
Hi !

Maybe to do one sync between the two server.
0
 
LVL 10

Author Comment

by:ampranti
ID: 22865703
No! Applications servers are behind the web server
I want to share the clients
0
 
LVL 29

Expert Comment

by:Michael Worsham
ID: 22879315
I recommend that you read over this article to see what solution you are looking for...

http://en.wikipedia.org/wiki/Load_balancing_(computing)


0
 
LVL 10

Author Comment

by:ampranti
ID: 22880640
Microsoft Windows can achieve this by using a proprietary protocol between the two servers. A virtual IP addres is assigned to them and an algorithm decides how to load balance the requests

Anything similar exist to linux world?
0
 
LVL 10

Author Comment

by:ampranti
ID: 22926724
Anyone implemented using heartbeat?? VFS?
0
 
LVL 29

Expert Comment

by:Michael Worsham
ID: 22946618
We architected a full-scale webserver and database infrastructure that uses a heartbeat network. We aren't using SUSE, but RHEL 5 with Global File System (GFS), twin NICs (one for network, other in seperate VLAN for heartbeat/fencing needs).

We have found that Xen (as well as other virtual environments) have problems with 'virtual' network cards in different VLANs, thus a limitation in itself -- especially when web serving and heartbeat networks are concerned.
0
 
LVL 10

Author Comment

by:ampranti
ID: 22947547
Is any guide for heartbeat?
0
 
LVL 29

Accepted Solution

by:
Michael Worsham earned 450 total points
ID: 22948998
0
 
LVL 10

Author Closing Comment

by:ampranti
ID: 31509391
HA is the solution
please give a glance here:
http://www.experts-exchange.com/OS/Linux/Administration/Q_23909547.html
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux script delete files 3 47
What is linux 4.8.22? Is it the same as ubuntu 16.10 ?? 2 54
AWS EC2 HTTP & HTTPS 2 44
Redhat upgrade 1 23
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question