HAProxy Enterprise Documentation 2.0r1

set map

Change the value of a map file entry.

Description

Use set map to find an entry in a map file and replace its value.

Examples

  1. Pass to the set map command the map's ID, the key in the map to find, and a value that should replace the existing value.

    Alternatively, use the map file's path instead of its ID.

    In the example below, we replace the value cart_api with web_servers for the key /cart/:

    $ echo "set map #0 /cart/ web_servers" | \
       sudo socat stdio unix-connect:/var/run/hapee-2.0/hapee-lb.sock

See also


Next up

set maxconn frontend