Sponsored Content
Operating Systems Linux SuSE Network Load Balancing Server in OpenSuse 11.1 Post 302384780 by talmoran on Wednesday 6th of January 2010 09:39:48 AM
Old 01-06-2010
Network Load Balancing Server

Hi,
For this solution:
install two identical servers with Linux OpenSUSE
In both servers this daemons will install: Heartbeat (HA Linux), HAproxy, HTTPD

1. The heartbeat daemon will manage the virtual IP (VIP) and the HAproxy daemon. The entire requested package goes through the VIP and only one HAproxy daemon will be up.

2. The HAproxy will work in active standby mode. The Heartbeat daemon will manage the failover of the HAproxy between the servers.

3. HAproxy transfer the http request to one of the web servers, the balancer algorithm can be use is:
• leastconn - The server with the lowest number of connections receives the connection. This algorithm is recommended where very long sessions are expected. leastconn is not very well suited for protocols using short sessions such as HTTP.
• Roundrobin - Each server is used in turns, according to their weights. This is the smoothest and fairest algorithm when the server's processing time remains equally distributed. This algorithm is dynamic, which means that server weights may be adjusted on the fly for slow starts for instance.

4. HAproxy check if the HTTPD daemon are up, in case one of the HTTPD daemon is down all the http request will forward the available web server.

Link:
HAProxy: http://haproxy.1wt.eu/
Heartbeat: http://www.linux-ha.org/Heartbeat

hope this help you,
Tal.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How can I use DNS Server to Load Balancing my Web Servers ??

Anyone can give me some idea about DNS Server Configuration that I want to load balancing my Web Servers . (1 Reply)
Discussion started by: ottobian
1 Replies

2. 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

3. AIX

Load balancing across network cards

The title speaks for itself. I have never attempted this but understand there is a way to use two network cards (en0 and en1) with the same IP address so as to load balance the traffic flow through both cards. Anyone know the answer? (4 Replies)
Discussion started by: johnf
4 Replies

4. 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

5. 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 _http://server1.com 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 _http://server2.com]Server2.com. Also i... (2 Replies)
Discussion started by: Tuxidow
2 Replies

6. 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

7. 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

8. 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

9. Ubuntu

Load Balancing - LB Server & BackEnd1 & BackEnd2

Hello, What I wish to succeed is to setup loadbalancing between two dedicated servers. Here is my case: ======================================================================================================= LB IP (Just an IP address): Provided by hosting company (11.22.33.44) Hosting company... (1 Reply)
Discussion started by: baris35
1 Replies

10. 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
APPHBD(8)						  System administration utilitie						 APPHBD(8)

NAME
apphbd - Application Heartbeat Monitor for High-Availability Linux SYNOPSIS
apphbd [-srkdh] [-c file] DESCRIPTION
Warning apphbd is deprecated; its use is strongly discouraged. The functionality provided by apphbd has been replaced by resource-level monitoring in Pacemaker. /usr/lib/heartbeat/apphbd is a basic application heartbeat monitor daemon for Linux-HA. A group of Application Heartbeat APIs are defined for this heartbeat monitoring service. Applications may register with the daemon in order to be monitored. If an application fails to send a heartbeat within the specified interval, the daemon will log an event. apphbd may use a watchdog timer to monitor itself. apphbd extends its functionality by using plugins. A plugin, recmgr notifies the recovery manager daemon if certain events occur (e.g. an application fails to heartbeat). The Recovery Manager daemon (/usr/lib/heartbeat/recoverymgrd) receives notification from the recmgr plugin, then it tries to execute recovery scripts as configured. See the recoverymgrd default configuration file, recoverymgrd.conf for details. recoverymgrd registers itself with apphbd as a client application. apphbd should be started first with the recmgr plugin loaded. Then, recoverymgrd should be configured and started OPTIONS
The following options are supported: -s Show the status of apphbd, running or stopped. -k Stop (kill) the daemon. -r Restart the daemon. apphbd will reload its configuration file when restarted. -d level Set the debug level. -h Show a brief usage message. -c file Set an alternate configuration file. The default configuration file is ./apphbd.cf. For details on the file format and supported options, refer to the example apphbd.cf file found in the documentation directory. FILES
o /var/run/apphbd.pid - default PID file o apphbd.cf - Default configuration file for apphbd. apphbd searches the file in its working directory. o recoverymgrd.conf - default configuration file for recoverymgrd. recoverymgrd searches the file in its working directory. An alternative configuration file may be specified on the command line. o /usr/lib/heartbeat/plugins/AppHBNotification - directory containing plugins for apphbd. SEE ALSO
heartbeat(8) AUTHORS
Alan Robertson <alanr@unix.sh> apphbd Andrea Brugger <andrea.l.brugger@intel.com> man page Florian Haas <florian.haas@linbit.com> man page Heartbeat 3.0.5 November 26, 2009 APPHBD(8)
All times are GMT -4. The time now is 02:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy