Re: Weighted Backend's

2019-02-11 Thread Bruno Henc
Hello James, The Balance random should do exactly what you want in HAProxy 1.9 : Check out https://www.haproxy.com/blog/haproxy-1-9-has-arrived/#random-load-balancing-algorithm "We’ve added a new random load-balancing algorithm. When used, a random number will be chosen as the key for the

Re: Weighted Backend's

2019-02-11 Thread James Root
Hey Aleks, Thank you for the reply, I should have included my version. I am currently using HAProxy 1.8, but moving up a version is a possibility. I understand what your example is doing, but it has the same issue my original example has I think, that I have to have one unix socket per cluster.

Re: Require info on ACL for rate limiting on per URL basis.

2019-02-11 Thread Badari Prasad
Hi Jarno , I want to rate limit based on url [/api/v1/monitoring-event/A01, /api/v1/client1/transfer_data, /api/v1/client2/transfer_data ] no matter what the source ip address is. thanks badari On Mon, Feb 11, 2019 at 7:34 PM Jarno Huuskonen wrote: > Hi, > > On Mon, Feb 11, Badari

Re: Require info on ACL for rate limiting on per URL basis.

2019-02-11 Thread Badari Prasad
Ok Thank you will check this. On Mon, Feb 11, 2019 at 6:22 PM Marco Corte wrote: > Il 2019-02-11 6:36 Badari Prasad ha scritto: > > Hi Marco > > Thank you for the response. I came up with my own haproxy cfg, > > where i would want to rate limit based on event name and client id in > > url.

Re: [PATCH] CONTRIB: contrib/prometheus-exporter: Add a Prometheus exporter for HAProxy

2019-02-11 Thread Aleksandar Lazic
Am 11.02.2019 um 10:40 schrieb Christopher Faulet: > Le 09/02/2019 à 10:47, Aleksandar Lazic a écrit : >> Hi Christopher. >> >> Am 07-02-2019 22:09, schrieb Christopher Faulet: >>> Hi, >>> >>> This patch adds a new component in contrib. It is a Prometheus >>> exporter for HAProxy. >> >> [snipp] >>

Re: Require info on ACL for rate limiting on per URL basis.

2019-02-11 Thread Jarno Huuskonen
Hi, On Mon, Feb 11, Badari Prasad wrote: > Thank you for the response. I came up with my own haproxy cfg, where i > would want to rate limit based on event name and client id in url. > URL ex : /api/v1// > > Have attached a file for my haproxy cfg. But it does not seems to be rate >

[ANNOUNCE] haproxy-1.8.19

2019-02-11 Thread Willy Tarreau
Hi, HAProxy 1.8.19 was released on 2019/02/11. It added 9 new commits after version 1.8.18. It's mainly a fix for a regression introduced in 1.8.18 which affects users of the unique-id feature. Previously there was a memory leak there in case it was configured on a TCP proxy, and now instead

Re: Require info on ACL for rate limiting on per URL basis.

2019-02-11 Thread Marco Corte
Il 2019-02-11 6:36 Badari Prasad ha scritto: Hi Marco Thank you for the response. I came up with my own haproxy cfg, where i would want to rate limit based on event name and client id in url. URL ex : /api/v1// Have attached a file for my haproxy cfg. But it does not seems to be rate

Re: Allowing more codes for `errorfile` (like 404) (that can be later re-used with `http-request deny deny_status 404`)

2019-02-11 Thread Baptiste
> > Again this use-case is geared more towards CDN custom error pages or > service routers. > > I would add a +1 with to Ciprian on the "service router" use case. As well, I see API gateways returning 404s when a host or URL path is not known. Since HAProxy can be used in both use cases above,

Re: Anyone heard about DPDK?

2019-02-11 Thread Baptiste
Hi, HAProxy requires a TCP stack below it. DPDK itself is not enough. Baptiste >

Re: [PATCH] CONTRIB: contrib/prometheus-exporter: Add a Prometheus exporter for HAProxy

2019-02-11 Thread Christopher Faulet
Le 09/02/2019 à 10:47, Aleksandar Lazic a écrit : Hi Christopher. Am 07-02-2019 22:09, schrieb Christopher Faulet: Hi, This patch adds a new component in contrib. It is a Prometheus exporter for HAProxy. [snipp] More details in the README. I'm not especially a Prometheus expert. And I