thomas.lecomte at virtual-expo.com
Mon Nov 28 08:16:58 CET 2016
On Sat, Nov 26, 2016 at 3:22 PM, Andrei <lagged at gmail.com> wrote:
> Hello all,
> I was wondering if there were any preferences among the community on which
> vmod (from https://varnish-cache.org/vmods) to use for geolocation, and why.
> My main concerns are of course speed, resources and accuracy. The ones I'm
> looking over from the vmods page are:
> ip2location - https://github.com/thlc/libvmod-ip2location
I will talk only about ip2location since I'm the developer behind it.
As it only implements some bindings to the C library provided by
ip2location, the overhead is pretty minimal.
The accuracy depends on the freshness of you IP2location database. Its
UNIX mtime is checked at each call and the database is reloaded on the
fly if the file has been updated. Our varnish servers don't handle a
lot of requests per second so I can't say wether it is able to cope
with more than 1000 req/s without increasing the CPU load.
I only implemented the bindings we needed, that's why I don't provide
full bindings to the whole library yet. I can add some if you need
Thomas Lecomte | Sysadmin @ Virtual Expo
More information about the varnish-misc