LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-07-2016, 06:36 AM   #1
takishi999
LQ Newbie
 
Registered: May 2016
Posts: 10

Rep: Reputation: Disabled
Haproxy Load_balancing a remote sites, Help ME!


Haproxy Load_balancing a remote sites
Hi everyone,
Sorry, I am newbie in a load_balancing and haproxy. Please help me to configure HaProxy to loadbanacing a Remote sites
(NOT in LAN NETWORK) i said a Remote sites (WAN)(i have a webservers in different places(different NETWORKS) i think the idea is clear!
so if you have any idea about how Please let me know, Thank You.
This is Just a EXEMPLE!!:
https://cdn-business.discourse.org/u...d803c9808f.png
 
Old 05-08-2016, 07:47 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,481

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
haproxy doesn't care where the backends are, it just uses whatever backend you have depending on your rules.

You can use the url matching functions in haproxy to tell it which backend to use depending on the incoming requested url.

What have you tried so far?
 
Old 05-09-2016, 08:16 AM   #3
takishi999
LQ Newbie
 
Registered: May 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
TenTenths, sir what if the balancer DOWN or connection down (is there a configuration can i do in the servers(site webs) to works without the balancer)? or i should add another balancer or what?
 
Old 05-09-2016, 08:26 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,481

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Here we use 2 haproxy servers with keepalived for a shared IP address.
 
Old 05-09-2016, 08:54 AM   #5
takishi999
LQ Newbie
 
Registered: May 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
TenTenths, sir!, what if i wana separate the 2 Haproxy servers (not in the same place, every Hproxy srv in a place(eg: 1st Hproxy srv in NewYork, 2end Hproxy in LA)+(i need theme to be connected) like master and slave, i'm looking for High Availability sir, so in this case is that possible to configure the two HaProxy servers?
and thank you sir, for you replays
 
Old 05-09-2016, 09:26 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,481

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
You can have as many haproxy servers as you like, they have front-end listeners that they pass to the back-end servers. With keepalived they can share a front-end IP address. How and where you put them is up to you and depends on how your internal network is designed.
 
1 members found this post helpful.
Old 05-09-2016, 09:39 AM   #7
takishi999
LQ Newbie
 
Registered: May 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
All right sir, thanks for your help
have a nice day
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Haproxy Load_balancing a remote sites takishi999 Linux - Newbie 1 05-07-2016 08:41 AM
LXer: Maintaining Remote Web Sites With sitecopy (Debian Squeeze/Ubuntu 11.10) LXer Syndicated Linux News 0 04-24-2012 09:41 AM
why is there difficulty in accesing mail sites in linux whether other sites r working sheenamj Linux - Networking 1 09-18-2009 03:32 PM
squid 2.6 not blocking sites even i entered ACL to block sites mohantorvalds Linux - Server 1 01-08-2009 04:17 AM
accessing and copying data from remote sites? mikescar Linux - Software 1 02-03-2004 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration