HAProxy Enterprise Documentation 2.8r1

lb-netacuity update

Force an update of the NetAcuity database.

Description

The NetAcuity update module will update the 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, otherwise you will receive an error message similar to "NetAcuity: the specified delay time is further than the time of the next update (3s), cancelling request".

Examples

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

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

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

$ echo "lb-netacuity status" | \
   sudo socat stdio unix-connect:/var/run/hapee-2.8/hapee-lb.sock
 NetAcuity module status
------------------------------------------------------------------------------
initialized:           yes

Database
  configuration:       /etc/hapee-2.7/hapee-lb.cfg:34
  enabled:             yes
  invalid:             no
  feature code:        4
  directory:           /etc/hapee-2.7/netacuity
  lookup separator:    ","

LRU cache
  enabled:             yes
  serial:              0 1
  usage/size:          0/2000000

 Database update
  configuration:       /etc/hapee-2.7/hapee-lb.cfg:37
  feature code:        4
  url:                 http://192.168.64.1:8000
  http status count:   0 0 0 2 0 / 0
  period/delay:        1d / 5s 10s 5s
  use checksum/hash:   yes / yes
  reload/retry count:  0 0 0 / 2 0
  reload time:         <NEVER> / <NEVER> / <NEVER>
  currently updating:  na_04_01.db
      status/retry:      0 / 2
      data size:         0 / 0 (0.0%)
      dur/time left:     8s / 1s

See also


Next up

Global server load balancing