Load Balancing - LB Server & BackEnd1 & BackEnd2


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Load Balancing - LB Server & BackEnd1 & BackEnd2
# 1  
Load Balancing - LB Server & BackEnd1 & BackEnd2

Hello,
What I wish to succeed is to setup loadbalancing between two dedicated servers. Here is my case:

Code:
=======================================================================================================
LB IP (Just an IP address): Provided by hosting company (11.22.33.44) Hosting company supports only port 80 for LB service which is not good for me.
=======================================================================================================
LB Server (VPS): Ubuntu 14.04,Mysql,php5,apache2 installed VPS from the same hosting company, location of server is database center A... IP: 55.66.77.88
=======================================================================================================
BackEnd1- Dedicated server (DS1): Ubuntu 14.04,Mysql,php5,apache2 installed & from the same company in the same data center with the IP address of: 99.00.11.22 Application port is 21000
=======================================================================================================
BackEnd2- Dedicated server (DS2): Ubuntu 14.04,Mysql,php5,apache2 installed & from the same company in the same data center with IP address of : 66.77.88.99
Application port is: 21000
=======================================================================================================

What I accomplished is only HTTP balancing for port 80. I setup LBIP as loadbalance ip for DS1 and DS2 servers. When I try to open webpage in LB server, it redirects me to DS1 page or DS2 webpage in comply with weight parameter. As long as I refresh the webpage, my pc goes to DS1 or DS2.


My main aim: When a php request sent to port, for example 21000, not to 80, LB server will redirect the user to DS1 or DS2 at port 21000 and communicate mysql databases from LB server to DS1 and DS2

I have searched on the net about possible solutions:
1) HAProxy, i found a tutorial which is supporting port 80. No good for me
2) ZenLoadBalancer which is not free of charge and very expensive.

Could you please redirect me to a new keyword to examine on it?
PS: If I had known how to setup my LB IP into my LB server (VPS), maybe I could have been running it. But could not found an answer on the net.

Thanks in advance
Boris
Moderator's Comments:
Mod Comment First: Please use CODE tags when posting sample input, sample output (including file contents), and code segments.

Second: Rather than changing the thread title to show that your problem has been solved, please just add the "solved" keyword to the keywords associated with the thread.

Last edited by Don Cragun; 01-09-2016 at 07:43 PM.. Reason: [solved]
# 2  
Sorted out with pound.
I replaced http by tcp and it worked out!

B.regards
Boris
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #952
Difficulty: Medium
The Creeper virus was first detected on ARPANET in the early 1960s.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies

2. UNIX for Advanced & Expert Users

ssh & load custom profile

i've created a custom profile that contains custom functions and alias' etc... it's called .jason_profile currently we ssh to the server then load the profile manually from the cmd line i.e . /home/jack/.jack_profile we want to be able to ssh and source the profile automatically but... (4 Replies)
Discussion started by: jack.bauer
4 Replies

3. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

4. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

5. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

6. SuSE

Network Load Balancing Server in OpenSuse 11.1

Hi, How i can build Network Load Balancing (NLB) Server between two openSuse Server (for example Web Server)? thanks. (1 Reply)
Discussion started by: skynet_boy
1 Replies

7. Shell Programming and Scripting

awk & CPU Load

Deal All, I'm writing a simple awk to generate some sort of report. The awk will check 24 files (file generated each one hour in a wholoe day) and then it will print one field to another file for counting purposes. The script is working fine but the problem is that the CPU load is very high... (10 Replies)
Discussion started by: charbel
10 Replies

8. Linux

VMware ESX server && Solaris 10 on same PC ??

Hi all, I tried to install Solaris 10 and then VMware ESX server v3.02 on the same PC (or hard drive). But after successfully installing Solaris 10, when I installed Vmware ESX Server on the same drive(but on different partition, boot menu is not coming. It is just booting Vmware only. Pls... (1 Reply)
Discussion started by: vikas027
1 Replies

9. IP Networking

sharing of IP address for load sharing avoiding virtual server & redirection machine

I have RedHat 9.0 installed on three of my servers (PIII - 233MHz) and want that they share a common IP address so that any request made reaches each of the servers. Can anyone suggest how should I setup my LAN. I'm new to networking in Linux so please elaborate and would be thankful for a timely... (2 Replies)
Discussion started by: Rakesh Ranjan
2 Replies

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

Featured Tech Videos