Hi,
On Tue, Oct 07, 2014 at 08:19:59AM -0500, B. Heath Robinson wrote:
> I am trying to use the dynamic backend selection feature of 1.5, but I am
> missing something. Here is a snippet of my configuration:
>
> frontend sledgehammer
> bind *:10000
> option http-pretend-keepalive
> default_backend other
> capture request header X-Backend len 15
> use_backend %hr
>
> This was my interpretation of using the log-format as the backend name.
> Can someone give me a little more info on this feature?
I think that your %hr will contain braces, which is clearly not what you
want. You'd rather simply do this to extract the header, and you can get
rid of the capture :
use_backend %{hdr(x-backend)}
Willy