Re: How to return 429 Status Code instead of 503

2022-11-16 Thread Jarno Huuskonen
Hello, On Tue, 2022-11-08 at 09:30 +0530, Chilaka Ramakrishna wrote: > On queue timeout, currently HAProxy throws 503, But i want to return 429, > I understand that 4xx means a client problem and client can't help here. > But due to back compatibility reasons, I want to return 429 instead of >

Re: var() fetch while writing server-template in backend section

2022-11-16 Thread Abhijeet Rastogi
Hi, I decided to explore this a bit further, is it simply because server-template and "server.c:parse_server" are executed at the initialization phase when the sample fetches feature isn't ready? This could be an implementation detail but I wonder if there's an opportunity to make it more obvious

Re: var() fetch while writing server-template in backend section

2022-11-16 Thread Abhijeet Rastogi
Hi, >Are sample fetches only available in specific blocks Small correction over my previous statement. It isn't like "var()" can't be used in the backend block, as it works with the "http-request" directive. Secondly, the correct line for server-template is, server-template svcname 1-4

var() fetch while writing server-template in backend section

2022-11-16 Thread Abhijeet Rastogi
Hi HAproxy community, There is a requirement to dynamically construct server/server-template lines based on some variables. *global section (dcname == us1) :- * set-var proc.dcname env(dcname) *Backend section:- * # svcname.us1.discovery.com is a valid DNS record server-template svcname 1-4

Help with a backend server configuration question

2022-11-16 Thread Yujun Wu
Hello, Could someone help with a backend server question? Our servers are dual stack machines with both IPv4/IPv6 addresses. For example, one of them has: IPv4 address 131.225.69.84 IPv6 address 2620:6a:0:4812:f0:0:69:84 If I want the server to accept both IPv4 and