For what it’s worth (and the rest of the mailing list), here’s how I’m fixing
this in 1.6:
In haproxy.cfg:
global
lua-load uniqueid.lua
frontend myfrontend
http-request lua.uniqueid
And uniqueid.lua:
local uuid = require "uuid4"
core.register_action("uniqueid", {"http-req"},
It is avalaible in the development version (1.7dev).
Thierry
On Fri, 8 Apr 2016 16:23:44 +
Scott Rankin wrote:
> Hi Thierry,
>
> Thanks for the suggestion - but the %[unique-id] variable is empty when I use
> the config below. I’m using HAProxy 1.6.4. Did you have to
Hi Thierry,
Thanks for the suggestion - but the %[unique-id] variable is empty when I use
the config below. I’m using HAProxy 1.6.4. Did you have to do anything else to
get that to show up?
Thanks!
Scott
On 4/8/16, 12:04 PM, "Thierry FOURNIER" wrote:
>Hi,
>
Hi,
I ve just submit a sample which returns the content of the unique-id.
So, you can write:
unique-id-format %{+X}o\ %ci-%cp-%rt-%pid-%Ts%fp
acl unique_id_missing hdr_cnt(X-Unique-ID) eq 0
http-request add-header X-Unique-ID %[unique-id] if unique_id_missing
Thierry
On Fri, 8 Apr
Hi all,
I’m trying to replicate functionality from a previous load balancer in HAProxy,
and the final sticking point seems to be the unique ID header. I found the
unique-id-header and unique-id-format commands, which are great, but what I
want to do is only add a unique-id-header if there is
5 matches
Mail list logo