Skip to content

Hot reload GeoLite2 databases without restarting ipquery #7

Description

@gam6itko

ipquery supports using custom GeoLite2 databases via mounted volumes, but currently updated MMDB files are only picked up after restarting the container.

This makes regular geoipupdate usage inconvenient and introduces avoidable downtime for API consumers.

It would be useful if ipquery could:

  • periodically detect changes to GeoLite2-City.mmdb and GeoLite2-ASN.mmdb;
  • safely reopen and replace the active database readers;
  • continue using the previous database if reload fails;
  • optionally allow configuring the reload interval via an environment variable.

This would make it possible to keep /geolite mounted read-only and update MaxMind databases automatically without restarting the service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions