HAProxy Enterprise Documentation 2.0r1

da-update update

Force an update of DeviceAtlas.

Description

The DeviceAtlas update module will update its database based on the interval you specifed in the configuration. You can also force an update by specifying the time you would like the update to run, for example, 5 minutes from now. If you don't specify a time, or set the update delay to zero, the update will run immediately. The delay time you specify cannot exceed the time until the next regular update.

Examples

In this example, we want the update to run 5 minutes from now so we specify 5m as the delay time.

$ echo "da-update update 5m" | \
   sudo socat stdio unix-connect:/var/run/hapee-2.0/hapee-lb.sock
DeviceAtlas: forcing update in 5m

You can check the status of the update using the da-update status command. Note that while the update is processing, the status will show the progress:

$ echo "da-update status" | \
   sudo socat stdio unix-connect:/var/run/hapee-2.0/hapee-lb.sock
 DeviceAtlas module status
------------------------------------------------------------------------------
 initialized:          yes

 Data update
  configuration:      /etc/hapee-2.7/hapee-lb.cfg:43
  url:                http://192.168.64.1:8000
  http status count:  0 0 0 0 7 / 0
  period/delay:       1d / 5s 10s 5s
  use cksum/hash/mod: no / no / no
  reload/retry count: 0 0 2 / 7 2
  reload time:        <NEVER> / <NEVER> / 2023-08-08 14:25:37'
  download time:      <NEVER> / <NEVER>
  currently updating: deviceatlas.json
     status/retry:      0 / 2
     data size:         0 / 0 (0.0%)
     dur/time left:     8s / 1s

See also


Next up

WURFL InFuze