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
Net::Server::Proto::UDP(3pm)				User Contributed Perl Documentation			      Net::Server::Proto::UDP(3pm)

NAME
Net::Server::Proto::UDP - Net::Server UDP protocol. SYNOPSIS
See Net::Server::Proto. DESCRIPTION
Protocol module for Net::Server. This module implements the SOCK_DGRAM socket type under INET (also known as UDP). See Net::Server::Proto. PARAMETERS
The following paramaters may be specified in addition to normal command line parameters for a Net::Server. See Net::Server for more information on reading arguments. udp_recv_len Specifies the number of bytes to read from the UDP connection handle. Data will be read into $self->{'server'}->{'udp_data'}. Default is 4096. See IO::Socket::INET and recv. udp_recv_flags See recv. Default is 0. udp_broadcast Default is undef. QUICK PARAMETER LIST
Key Value Default ## UDP protocol parameters udp_recv_len d+ 4096 udp_recv_flags d+ 0 udp_broadcast bool undef INTERNAL METHODS
"object" Returns an object with parameters suitable for eventual creation of a IO::Socket::INET object listining on UDP. "connect" Called when actually binding the port. Handles default parameters before calling parent method. LICENCE
Distributed under the same terms as Net::Server perl v5.14.2 2012-05-29 Net::Server::Proto::UDP(3pm)
All times are GMT -4. The time now is 07:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy