Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


geographic load balancing
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

geographic load balancing

flyfly Member
edited March 2012 in Help

anyone know how to do this? A quick google turns up very little, or is super outdated.

Comments

  • vps.net has a feature > http://vps.net/product/geohosting/ may be can get a few pointers from there

  • Geo DNS maybe :P

  • prometeusprometeus Member, Host Rep
    edited March 2012

    Today is day of memories :)

    used a patched tinydns
    http://code.google.com/p/geoip-tinydns/

    I downloaded the ASN / ROUTE databases from arin and RIR to build some specialized distribution of streamings to optimize costs... Was a really fun project..

    Just as an example this is an extract of the route db databases from ripe

    
    route:          193.254.30.0/24
    descr:          Lufthansa Airplus Servicekarten GmbH
    origin:         AS12726
    mnt-by:         AS12312-MNT
    changed:        [email protected] 19991209
    changed:        [email protected] 20010731
    changed:        [email protected] 20070813
    changed:        [email protected] 20080630
    changed:        [email protected] 20091015
    source:         RIPE
    
    route:        212.166.64.0/19
    descr:        Tiscali Spain
    origin:       AS12321
    mnt-by:       TISCALI-ES-MNT
    notify:       [email protected]
    notify:       [email protected]
    changed:      [email protected] 20010606
    changed:      [email protected] 20020222
    source:       RIPE
    

    I parsed all the route object and built a distribution map based on the peeering bgp available at each edge streaming site...

    The produced map file was a veeery long list like this

    %peer-diretti:151.10.0.0:16:fms:
    %peer-diretti:192.104.23.0:24:fms:
    %peer-diretti:192.58.93.0:24:fms:
    %peer-diretti:192.106.156.0:24:fms:
    %peer-diretti:192.106.159.0:24:fms:
    %peer-diretti:192.106.162.0:24:fms:
    %peer-diretti:192.106.165.0:24:fms:
    %peer-diretti:192.106.166.0:24:fms:
    %peer-diretti:192.106.169.0:24:fms:
    %peer-diretti:192.106.176.0:24:fms:
    %peer-diretti:192.106.177.0:24:fms:
    %peer-diretti:192.106.186.0:24:fms:
    %peer-diretti:192.106.189.0:24:fms:
    %peer-diretti:192.106.190.0:24:fms:
    %peer-diretti:192.106.191.0:24:fms:
    %peer-diretti:192.106.193.0:24:fms:
    %peer-diretti:192.106.194.0:24:fms:
    %peer-diretti:192.106.195.0:24:fms:
    %peer-diretti:192.106.212.0:24:fms:
    %peer-diretti:192.106.213.0:24:fms:
    %peer-diretti:192.106.214.0:24:fms:
    %peer-diretti:192.106.217.0:24:fms:
    %peer-diretti:192.106.220.0:24:fms:
    %peer-diretti:192.106.221.0:24:fms:
    %peer-diretti:192.106.223.0:24:fms:
    %peer-diretti:192.106.224.0:24:fms:
    %peer-diretti:192.106.225.0:24:fms:
    %peer-diretti:192.106.226.0:24:fms:
    %peer-diretti:192.106.227.0:24:fms:
    %peer-diretti:192.106.228.0:24:fms:
    %peer-diretti:192.106.231.0:24:fms:
    %peer-diretti:192.106.236.0:24:fms:
    %peer-diretti:192.106.237.0:24:fms:
    %peer-diretti:192.106.245.0:24:fms:
    %peer-diretti:192.106.253.0:24:fms:
    
    

    were %peer-diretti was a geo location based on the route object and fms the dns name to be mapped...

  • NickWNickW Member

    I personally prefer server side methods to GeoDNS (provided it's not a CDN).

    Use Maxmind's free GeoIP country database and redirect based on location to a specific subdomain. us.example.com, uk.example.com, de.example.com etc.

  • There are many ways to achieve this. F5 Global Traffic Managers are one way which load balances traffic to other F5's or just a plain server. Based on any number of metrics. Maybe some of the open source load balancers can do something similar.

  • flyfly Member

    yeah i'd be looking for an open source/free balancer. still doing some initial googling

  • prometeusprometeus Member, Host Rep

    @kbar what are exactly your needs? Maybe nginx with the geoip (maxmind) database module is all you need...

  • flyfly Member

    yeah i'll try the nginx maxmind module.

Sign In or Register to comment.