Re: [2.2.5] High cpu usage after switch to threads

2020-11-21 Thread Maciej Zdeb
sob., 21 lis 2020 o 07:13 Willy Tarreau napisał(a): > So I guess we'll use you as a beta tester once we're starting to see > promising solutions ;-) > I'll test it happily :)

Re: [2.2.5] High cpu usage after switch to threads

2020-11-20 Thread Willy Tarreau
Hi Maciej, On Wed, Nov 18, 2020 at 12:33:23PM +0100, Maciej Zdeb wrote: > Hi again, > > So "# some headers manipulation, nothing different then on other clusters" > was the important factor in config. Under this comment I've hidden from you > one of our LUA scripts that is doing header

Re: [2.2.5] High cpu usage after switch to threads

2020-11-19 Thread Aleksandar Lazic
Tim. Cool big thank to clarify that for me. Regards Aleks On 19.11.20 17:03, Tim Düsterhus wrote: Aleks, Am 19.11.20 um 16:53 schrieb Aleksandar Lazic: When a H2 client send the header in lowercase then and h1 in mixed-case could the "del-header" line not match when it's only written in

Re: [2.2.5] High cpu usage after switch to threads

2020-11-19 Thread Tim Düsterhus
Aleks, Am 19.11.20 um 16:53 schrieb Aleksandar Lazic: > When a H2 client send the header in lowercase then and h1 in mixed-case > could the "del-header" > line not match when it's only written in lowercase or mixed-case . HTTP headers are defined to be case-insensitive. You quoted it yourself:

Re: [2.2.5] High cpu usage after switch to threads

2020-11-19 Thread Aleksandar Lazic
Hi. On 19.11.20 16:16, Maciej Zdeb wrote: Hi, Alaksandar I've looked into code and... :) Great ;-) śr., 18 lis 2020 o 15:30 Aleksandar Lazic mailto:al-hapr...@none.at>> napisał(a): Can you think to respectthe '-i'.

Re: [2.2.5] High cpu usage after switch to threads

2020-11-19 Thread Maciej Zdeb
Hi, Alaksandar I've looked into code and... :) śr., 18 lis 2020 o 15:30 Aleksandar Lazic napisał(a): > Can you think to respectthe '-i'. > > http://git.haproxy.org/?p=haproxy.git=search=HEAD=grep=PAT_MF_IGNORE_CASE > I'm not sure if I understand you correctly, but in case of http-request

Re: [2.2.5] High cpu usage after switch to threads

2020-11-18 Thread Tim Düsterhus
Maciej, Am 18.11.20 um 18:48 schrieb Maciej Zdeb: > Tim thanks for the hint! You're welcome. > Aleksandar I’ll do my best, however I’m still learning HAProxy internals > and refreshing my C skills after very long break. ;) First, I’ll try to > deliver something simple like „-m beg” and after

Re: [2.2.5] High cpu usage after switch to threads

2020-11-18 Thread Maciej Zdeb
Tim thanks for the hint! Aleksandar I’ll do my best, however I’m still learning HAProxy internals and refreshing my C skills after very long break. ;) First, I’ll try to deliver something simple like „-m beg” and after review from the team we’ll see. If someone is in hurry with this issue and

Re: [2.2.5] High cpu usage after switch to threads

2020-11-18 Thread Tim Düsterhus
Maciej, Am 18.11.20 um 14:22 schrieb Maciej Zdeb: > I've found an earlier discussion about replacing reqidel (and others) in > 2.x: https://www.mail-archive.com/haproxy@formilux.org/msg36321.html > > So basically we're lacking: > http-request del-header x-private- -m beg > http-request

Re: [2.2.5] High cpu usage after switch to threads

2020-11-18 Thread Aleksandar Lazic
Hi Maciej. On 18.11.20 14:22, Maciej Zdeb wrote: I've found an earlier discussion about replacing reqidel (and others) in 2.x: https://www.mail-archive.com/haproxy@formilux.org/msg36321.html So basically we're lacking: http-request del-header x-private-  -m beg http-request del-header

Re: [2.2.5] High cpu usage after switch to threads

2020-11-18 Thread Maciej Zdeb
I've found an earlier discussion about replacing reqidel (and others) in 2.x: https://www.mail-archive.com/haproxy@formilux.org/msg36321.html So basically we're lacking: http-request del-header x-private- -m beg http-request del-header x-.*company -m reg http-request del-header -tracea -m

Re: [2.2.5] High cpu usage after switch to threads

2020-11-18 Thread Maciej Zdeb
Sure, the biggest problem is to delete header by matching prefix: load_blacklist = function(service) local prefix = '/etc/haproxy/configs/maps/header_blacklist' local blacklist = {} blacklist.req = {} blacklist.res = {} blacklist.req.str =

Re: [2.2.5] High cpu usage after switch to threads

2020-11-18 Thread Julien Pivotto
On 18 Nov 12:33, Maciej Zdeb wrote: > Hi again, > > So "# some headers manipulation, nothing different then on other clusters" > was the important factor in config. Under this comment I've hidden from you > one of our LUA scripts that is doing header manipulation like deleting all > headers from