Hey There,
There are couple options to load balance:
DNS or APPLICATION level.
The DNS level is using GeoIP based dns load-balancing that will decide
based on the srcIP what dns results to send.
The APPLICATION level is to use a default site address that will have a
302 Redirection based on GeoIP to the nearest site to the client.
You can see one of the examples that is being used on FedoraProject
download mirrors.
When you try to access the download url at the base domain:
http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedora-Live-Desktop-x86_64-20-1.iso
It will redirect you to the nearest domain based on some admin logic.
The "issue" with it is that you will need to use couple domain naming
such as:
us.wwww.domain.com
eu.wwww.domain.com
as.wwww.domain.com
Or any naming convention that will fit you.
I do remember that many PCs manufacturers use the application level
convention for their websites and they use a cookie based redirection.
For example if you choose in the main webpage Japan on the next time you
will access the website you will be automatically redirected to the
Japan(asia) mirror based on the choice which was reflected using a cookie.
Eliezer
On 06/29/2014 05:46 PM, Marius Jankunas wrote:
Hello,
First of all congrutalions for HAProxy 1.5.0 release, glad you finally
finished. :)
If you have some free time maybe could advise or give any hints which could me?
I'm interested in HAProxy, and would like to know is it possible do load
balancing to servers which are nearest to clients? And even if yes, so could
this reduce latency, and improve e.g. website loading speed? I tried to draw an
datagram(see attachment) which shows how i would like to do load balancing.
About Datagram:
Example there are 6 users: 2 from Asia, 2 from Europe, 2 from United states.
All 6 users connecting to main haproxy server first, which stands in EU.
For Asia users ping to main haproxy server is ~ 175ms
For Europe users ping to main haproxy server ~22ms
For United states users ping to main haproxy ~ 76ms
Asia users to Haproxy (Asia) has ping of 15ms
Europe users to Haproxy (EU) has ping of ~17ms
United states users to Haproxy (US) has of ~12ms
All 3 Haproxy (Asia),(EU),(US) servers has ping of +/-35ms to Application
Server.
I don't know, but feeling this only would great only additional latency for
users. If yes, how we can make users connect direct to (Asia),(EU),(US) Haproxy
server by their geo location? Thank you for any reply.
Marius,
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your
desktop!
Check it out at http://www.inbox.com/marineaquarium