I use nginx with geo_module for MaxMind GeoIP paid DB. I put a cron script, which downloads a fresh MaxMind GeoIP paid DB every week and replaces the old GeoIP.dat file with the new one.
Is reloading the service after the replacement enough or do I need to restart it?
I have just checked it on nginx 1.81. The GeoIP database file is opened both by the master process and the worker processes. However, reload seems to be enough for both to load the new version of GeoIP.dat file (but both keep also the old/deleted version open).
What reload in fact does is that it spawns a new set of workers (which process new connections), while allowing the old workers to finish all of existing requests.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With