Update the database during runtime
Use the WURFL Update module to keep contents of the device detection database current. This allows you to keep multiple HAProxy Enterprise nodes synced with the latest data.
Install a web server of your choice and host the database file at a URL where HAProxy Enterprise can access. For example, host the file at
http://192.168.122.1:8000/wurfl.xml.gz
.-
Install the package
hapee-2.8r1-lb-wurfl-update
:$ # On Debian/Ubuntu $ sudo apt-get install hapee-2.8r1-lb-wurfl-update
$ # On CentOS/RedHat/Oracle/Photon OS $ sudo yum install hapee-2.8r1-lb-wurfl-update
$ # On SUSE $ sudo zypper install hapee-2.8r1-lb-wurfl-update
$ # On FreeBSD $ sudo pkg install hapee-2.8r1-lb-wurfl-update
-
In the
global
section of your configuration, add directives similar to the following example:global module-load hapee-lb-wurfl-update.so wurfl-update url
http://192.168.122.1:8000/wurfl.xml.gz delay 24h logWith this configuration, HAProxy Enterprise downloads the database every 24 hours and displays a message in the logs when it succeeds, or when it encounters an error during the update.
wurfl-update
The wurfl-update
directive enables updating the database over HTTP from a specified URL. Updating a database with a newer version invalidates any cached lookups (if caching is used), unless you enable checksum
and the new and old database contents are identical.
The directive supports the following syntax:
wurfl-update url <url>
[delay <u> | xdelay <u s b r>]
[timeout <t>]
[retries <n>]
[checksum | modified]
[hash]
[source <addr>[:<port>]]
[log]
[dontlog-normal]
[param*]
where:
| Required. Specifies the database update URL. |
| Specifies the period between each attempt to download a new database version. The delay is a simplified version of the |
|
|
| Specifies the HTTP connection timeout in milliseconds (default) for attempts to download a new database version.
|
| Specifies the number of retries to download a new WURFL database version. If not set, the global |
| If set, this determines the use of the |
| If set, enables authentication of the downloaded data.
|
| Specifies the use of the time from the |
| Sets the source address for outgoing connections.
|
| Specifies whether to log operation errors. |
| Deactivates logging of successful updates. |
| Lists other server parameters that are useful for configuring SSL features. |
Next up
WURFL InFuze API Reference