Geolocation vmods

Thomas Lecomte thomas.lecomte at virtual-expo.com
Mon Nov 28 08:41:48 CET 2016


On Mon, Nov 28, 2016 at 8:34 AM, Andrei <lagged at gmail.com> wrote:
> Thank you both for the awesome input. Running stat on a file each time a
> request comes in is something I would like to avoid. Would it be possible to
> go by the varnishd uptime instead, and trigger database checks every N
> seconds instead? We're looking to push around 5k req/s on average which is
> why I'm trying to avoid the added syscalls.

Indeed it would make more sense. If you are interested in ip2location
and plan to use this vmod, I can change the its behavior as you
suggested, it should be pretty straightforward.

-- 
Thomas Lecomte | Sysadmin @ Virtual Expo



More information about the varnish-misc mailing list