HAProxy Enterprise Documentation 2.8r1
maxmind-update update
Force an update of the MaxMind database.
Description
The MaxMind update module will update the database based on the interval you specifed in the configuration. You can also force an update that will run immediately.
Examples
In this example, we want to force an update of the database.
$ echo "maxmind-update force-update" | \
sudo socat stdio unix-connect:/var/run/hapee-2.8/hapee-lb.sock
MaxMindDb: forcing update now
You can check the status of the update using the maxmind-update status
command. Note that while the update is processing, the status will show the progress:
$ echo "maxmind-update status" | \
sudo socat stdio unix-connect:/var/run/hapee-2.8/hapee-lb.sock
MaxMindDb module status
------------------------------------------------------------------------------
initialized: yes
Database
configuration: /etc/hapee-2.7/hapee-lb.cfg:31
enabled: yes
invalid: no
CITY: /etc/hapee-2.7/GeoLite2-City.mmdb
LRU cache
enabled: yes
serial: 0 1
usage/size: 0/200000
Database update
configuration: /etc/hapee-2.7/hapee-lb.cfg:32
CITY: http://192.168.64.1/GeoLite2-City.mmdb
period/next: 1d / 23h59m
http status count: 0 0 0 1 0 / 0
use cksum/hash/mod: yes / yes / no
period/delay: 1d / 5s 10s 5s
reload/retry count: 0 0 0 / 1 0
reload time: <NEVER> / <NEVER> / <NEVER>
currently updating: GeoLite2-City.mmdb
status/retry: 0 / 0
data size: 0 / 0 (0.0%)
dur/time left: 0.837s / 4s
See also
Next up
maxmind-update show