On Wed, 20 Feb 2019 3:39 am Joao Morais <l...@joaomorais.com.br wrote: > Hi Willy, > > > Em 19 de fev de 2019, à(s) 01:55, Willy Tarreau <w...@1wt.eu> escreveu: > > > > use_backend foo if { var(req.host) ssl:www.example.com } > > > This is a nice trick that I’m planning to use with dynamic use_backend. I > need to concat host (sometimes ssl_fc_sni) and path. The question is: how > do I concatenate two strings?
Something like this: > http-request set-header X-Concat %[req.fhdr(Authorization),word(3,.)]_%[src] Apparently there isn’t a concat converter and http-request set-var() > doesn’t support custom-log like expressions. There is a usecase where I > need to concatenate ssl_fc_sni and path before search in the map. > > > > At this point I think that such heavy configs reach their limits and > > that the only right solution is the dynamic use_backend (possibly with > > a map). > > > Thanks for the detailed review! I’m going to the map route. > > > >> There are also a lot of other backends and > >> servers with health check enabled every 2s consuming some cpu and > network. > > > > For this if you have many times the same server you can use the "track" > > directive, and only enable checks on a subset of servers and have all > > other track them. Typically you'd have a dummy backend dedicated to > > checks, and checks disabled in all other backends, replaced with track. > > > I’d say that currently about 98% are unique servers, but this is indeed a > nice implementation to the configuration builder. > > > >> Note also that I needed to add -no-pie otherwise gprof output was empty > -- > >> sounds a gcc issue. Let me know if this is good enough. > > > > Yes that's fine and the output was perfectly exploitable. > > > Great! > > One final note - sorry about the flood yesterday. I can say with about 90% > sure I sent only one message =) > > ~jm > > >