Re: HAProxy bottleneck/tuning

2019-09-29 Thread Willy Tarreau
Hi, On Sat, Sep 28, 2019 at 07:07:02PM +0200, Emmanuel BILLOT wrote: > Hi, > > We use HAProxy as a LB for many usage, including LB for Squid and user > acces on Internet. > Users frequently grumble about "Internet speed" (classical...) and we want > to be sure that it is not a LB issue

Re: [PATCH 2/2] BUG/MINOR: lua: Make the arrays in the list of headers 1-indexed

2019-09-29 Thread Willy Tarreau
Hi guys, On Thu, Sep 26, 2019 at 04:35:31PM +0200, Tim Düsterhus wrote: > Adis, > > Am 26.09.19 um 16:01 schrieb Adis Nezirovic: > > While I agree that using zero based array indexing is a mistake (wearing > > my Lua hat), I don't think your proposal will make situation any better. > > Actually

Re: [PATCH 1/3] BUG/MINOR: lua: Properly initialize the buffer's fields for string samples in hlua_lua2(smp|arg)

2019-09-29 Thread Willy Tarreau
On Sun, Sep 29, 2019 at 11:03:07PM +0200, Tim Duesterhus wrote: > `size` is used in conditional jumps and valgrind complains: (...) Looks pretty good, whole series applied, thank you Tim! Willy

[PATCH 4/4] CLEANUP: proxy: Remove `proxy_tbl_by_name`

2019-09-29 Thread Tim Duesterhus
Willy, and a last one cleaning up the old proxy_tbl_by_name function so that the bug will be gone for good. Best regards Tim Duesterhus Apply with `git am --scissors` to automatically cut the commit message. -- >8 -- Subject: [PATCH 4/4] CLEANUP: proxy: Remove `proxy_tbl_by_name` It is no

[PATCH 2/3] CLEANUP: lua: Get rid of obsolete (size_t *) cast in hlua_lua2(smp|arg)

2019-09-29 Thread Tim Duesterhus
This was required for the `chunk` API (`data` was an int), but is not required with the `buffer` API. --- src/hlua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index be959d847..bc6c7f767 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -419,7 +419,7

[PATCH 3/3] BUG/MEDIUM: lua: Store stick tables into the sample's `t` field

2019-09-29 Thread Tim Duesterhus
This patch fixes issue #306. This bug was introduced in the stick table refactoring in 1b8e68e89aadb2740d79034c217257a78e9747b9. This fix must be backported to 2.0. --- src/hlua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hlua.c b/src/hlua.c index

[PATCH 1/3] BUG/MINOR: lua: Properly initialize the buffer's fields for string samples in hlua_lua2(smp|arg)

2019-09-29 Thread Tim Duesterhus
`size` is used in conditional jumps and valgrind complains: ==24145== Conditional jump or move depends on uninitialised value(s) ==24145==at 0x4B3028: smp_is_safe (sample.h:98) ==24145==by 0x4B3028: smp_make_safe (sample.h:125) ==24145==by 0x4B3028: smp_to_stkey (stick_table.c:936)

Re: using hashicorp vault for storing SSL certs

2019-09-29 Thread LCF
Hey, Sure, I'm using Vault PKI from years. If you want to store certs you probably want to use secret backend, with PKI (Public Key Infrastructure) you can maintain your own certificate infrastructure and issue certificates from Vault. I often use HAProxy with consul-template to automate process

using hashicorp vault for storing SSL certs

2019-09-29 Thread Илья Шипицин
hello, is anybody using https://www.vaultproject.io/docs/secrets/pki/index.html for storing certs ? (I want to avoid reinventing the wheel here) thanks, Ilya Shipitcin