]> git.ipfire.org Git - people/jschlag/pbs.git/commit
Replace geoip database by local database
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Oct 2017 18:17:26 +0000 (19:17 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Oct 2017 18:17:26 +0000 (19:17 +0100)
commitd3e7a9fb825ef43ffb75fd28ab49562cea96875d
treea7e9f45069edb562ee36b530da8e637d378bb0fb
parent455def3077c3e291847473f491f785fc437a9bde
Replace geoip database by local database

Fixes #11493

The MySQL had a copy of a geoip database which was queries
to estimate the position of a host on the globe.

The database was huge and querying it was slow because
MySQL is not very good with spacial queries. On top of that,
this precision wasn't really needed.

A local database is way quicker to query and provides us
with the country an IP address is assumed to be in. That
will allow us to select a few mirror servers as preferred
mirrors.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
README [new file with mode: 0644]
pbs.conf.sample
src/buildservice/__init__.py
src/buildservice/base.py
src/buildservice/constants.py
src/buildservice/geoip.py [new file with mode: 0644]
src/buildservice/mirrors.py
src/geoip/GeoLite2-Country.mmdb [new file with mode: 0644]
src/templates/mirrors-detail.html
src/tools/update-geoip-database.sh [new file with mode: 0755]