]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: counters: support looking up a key in an alternate table
authorWilly Tarreau <w@1wt.eu>
Tue, 23 Jul 2013 17:56:43 +0000 (19:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Aug 2013 19:17:14 +0000 (21:17 +0200)
commit0f791d42b610d20fcc3ee1713d73c9d45e7ad4f6
tree4f8cfcc70e1456b2ca2f2b6a044a8d3132e27d96
parent4d4149cf3eca8c70afc5ee8601d0358bb8e1ccd0
MEDIUM: counters: support looking up a key in an alternate table

sc_* sample fetches now take an optional parameter which allows to look
the key in an alternate table. This is convenient to pass multiple
information for the same key at once (eg: have multiple gpc0 for the
same key, or support being fed complementary information from the CLI).
Example :

    listen front
        bind :8000
        tcp-request content track-sc0 src table local-ip
        http-response set-header src-id %[sc0_get_gpc0]+%[sc0_get_gpc0(global-ip)]
        server dummy 127.0.0.1:8001

    backend local-ip
        stick-table size 1k type ip store gpc0

    backend global-ip
        stick-table size 1k type ip store gpc0
doc/configuration.txt
src/session.c