Content Delivery, ip4r and mod_asn
Dagobert Michelsen
dam at opencsw.org
Thu Nov 28 20:58:29 CET 2013
Hi folks,
Rafis ip4r extension for PostgreSQL works fine, I just tested the newly build mod_asn
which requires it. This is a step towards reworking our mirror infrastructure to include
real geo-based loadbalancing with 'mirrorbrain'. It works like this:
- fetch routeviews data containing the AS (autonomous systems) numbers from BGP and prefixes
- extract a mapping between ip network and AS number
- import this into a postgres database with ip4r (ipv4 range) datatype
- load module into apache which maps clients to AS number and adds that to the env and header
This can then further be used to select the closest mirror, a step that is not done yet.
If anybody is interested, I have my install notes (very brief) at
http://wiki.opencsw.org/mod-asn
Unreleased packages are at
http://buildfarm.opencsw.org/experimental.html#mirrorbrain
It also requires a apr-util dbd module with postgres enabled which also has been rebuilt at
http://buildfarm.opencsw.org/experimental.html#apr-1.5
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2351 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20131128/de563d8c/attachment.p7s>
More information about the maintainers
mailing list