Re: How does HAProxy work internally in terms of http data flow?

2017-08-02 Thread flamesea12
Hi Baptiste, Thanks for reply, is there similar http-buffer-response option? We need to manipulate response body, like replace some string with other string, and some other actions. Could you please enlighten me on how to do this(in code level)? like which function, which code to modify.

What is an applet in haproxy?

2017-08-04 Thread flamesea12
Hi, What is an applet in haproxy? what is it for? thanks

How does HAProxy work internally in terms of http data flow?

2017-07-31 Thread flamesea12
Hello, all I would like to know how  does HAProxy work internally in terms of http data flow? For example, when a client connected to HAProxy server,  1. haproxy receives all HTTP request data first, then forwards the data to backend, then receives all HTTP response data from backend then

How to add functionality to server static files for certain url?

2017-08-07 Thread flamesea12
Hi, We have a very special requirements to implement which is to enable haproxy to server static files. We know that by introducing Nginx or apache as a backend, we can do that with haproxy, but situation is we cannot do that. We have looked into the source code for a while, but don't have a

What is the max size can be sent once?

2017-10-18 Thread flamesea12
Hi, all We are trying to tuning tune.bufsize which has a default 16K, can anyone tell me how many bytes can be sent once? Is it 16K exactly? or like 90%? Where in the source code can I find this kind of info? Thank you

Why HAProxy is not a web server?

2017-11-26 Thread flamesea12
Hi, all Why HAProxy is not a web server?

Is there any best practice for setting tune.bufsize?

2017-10-23 Thread flamesea12
Hi, Is there any best practice for setting tune.bufsize? such as, leave it as is(16k), or never make it bigger than 1MB, something like this?

redispatch still cause error response

2018-01-30 Thread flamesea12
Hello, What exactly does option redispatch do? I have a haproxy in front of two web servers, if one web server get killed when haproxy is forwarding a request to that server, will this request get re-forwarded to another server? So I had an test. In one server, I run ruby -run -ehttpd .

Re: redispatch still cause error response

2018-02-01 Thread flamesea12
Hello, Thanks for the lucid explain, understood it now. Anyway I find that haproxy slow down the requests to alive server when there is a server down. Still take the test I made before, ruby -run -ehttpd . -p8001 and ruby -run -ehttpd . -p8000 and i start haproxy then do a ab ab -n 2

Re: redispatch still cause error response

2018-01-31 Thread flamesea12
Thanks for reply, any plan to support this requirement? If a backend server get killed when processing request, that haproxy re-forwarad the request to another backend server? Thanks - Original Message - >From: Lukas Tribus >To: flamese...@yahoo.co.jp >Cc:

What is the difference between session and request?

2018-02-19 Thread flamesea12
Hi all I found that there are fe_conn, fe_req_rate, fe_sess_rate, be_conn and be_sess_rate, but there is no be_req_rate. I understand that there might be multiple requests in one connection, what is a session here? And how can I get be_req_rate? Thank you

Re: Simply adding a filter causes read error

2018-12-12 Thread flamesea12
Hi again I tested against v1.8.15, the error's persistent. - Original Message - From: "flamese...@yahoo.co.jp" To: Aleksandar Lazic ; "haproxy@formilux.org" Date: 2018/12/7, Fri 22:59 Subject: Re: Simply adding a filter causes read error Hi Thanks for the reply. I have a

Re: Simply adding a filter causes read error

2018-12-12 Thread flamesea12
Hi, It's 100% reproduciable in my centos 7 PC ### Good Config start # global     maxconn 100     daemon     nbproc 2 defaults     retries 3     option redispatch     timeout client  60s     timeout connect 60s     timeout server  60s     timeout http-request 60s     timeout

Re: How to remove accept-encoding header to backend while still keeping gzip?

2018-12-11 Thread flamesea12
Hi Thank you so much, exactly what I want:) - Original Message - From: Lukas Tribus To: flamese...@yahoo.co.jp Cc: haproxy Date: 2018/12/12, Wed 00:35 Subject: Re: How to remove accept-encoding header to backend while still keeping gzip? On Tue, 11 Dec 2018 at 15:13,

How to remove accept-encoding header to backend while still keeping gzip?

2018-12-11 Thread flamesea12
Hi, I have haproxy in front of my app servers, these app servers do not handle  accept-encoding properly. So I need to remove accept-encoding header from the requests sent to backend while keep haproxy gzip the response. How can I do that? My config looks this: frontend web    compression algo

Re: Simply adding a filter causes read error

2018-12-07 Thread flamesea12
Hi Thanks for the reply. I have a test env with 3 identical servers( 8 core cpu and 32GB memory), one for wrk, one for nginx, and one for haproxy. The network looks like wrk => haproxy => nginx. I have tuned OS settings like open file limits, etc. And the test html file is default nginx

Re: Simply adding a filter causes read error

2018-12-06 Thread flamesea12
Hi, Thanks for the reply, I thought the mail format is corrupted.. I tried option http-pretend-keepalive, seems read error is gone, but timeout error raised(maybe its because the 1000 connections of wrk) Thanks - Original Message - From: Aleksandar Lazic To:

Simply adding a filter causes read error

2018-12-06 Thread flamesea12
Hi, p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; min-height: 14.0px}I have a haproxy(v1.8.14) in front of several nginx backends, everything works fine until I add compression in haproxy. My config

Re: Simply adding a filter causes read error

2018-12-06 Thread flamesea12
Hi I tested more, and found that even with option http-pretend-keepalive enabled, if I increase the test duration , the read error still appear. Running 3m test @ http://10.0.3.15:8000  10 threads and 1000 connections  Thread Stats   Avg      Stdev     Max   +/- Stdev    Latency    19.84ms   

Re: Simply adding a filter causes read error

2018-12-06 Thread flamesea12
Sorry, please ignore this one with bad style.I will send another one. - Original Message - From: "flamese...@yahoo.co.jp" To: "haproxy@formilux.org" Date: 2018/12/6, Thu 23:20 Subject: Simply adding a filter causes read error Hi, #yiv8353377196 p.yiv8353377196p1

compression performance drop in v1.9 and v2.0

2019-06-03 Thread flamesea12
Hi I recently found that compression performance drops down after I update to v1.9 I dug a little bit and found that there are many forward calls with a length of zero Breakpoint 1, comp_http_forward_data (s=0x86a620, filter=0x873c70, msg=0x86b960, len=0) at src/flt_http_comp.c:386 which

How to get overall stats in haproxy?

2019-06-11 Thread flamesea12
Hi I'm using multiple processes haproxy, how can I get overall stats in haproxy? I have to access every process's stats page, and get the stats of that process and count. Is there any convenient way to get overall stats? Thanks

Re: Error with AddressSanitizer

2019-07-04 Thread flamesea12
Thank you, it solves the problem! - Original Message - From: Илья Шипицин To: flamese...@yahoo.co.jp Cc: "haproxy@formilux.org" Date: 2019/7/5, Fri 00:44 Subject: Re: Error with AddressSanitizer did you also use USE_OBSOLETE_LINKER=1 ?asan is supposed to be used together

Error with AddressSanitizer

2019-07-04 Thread flamesea12
Hi I got this error when trying to debug a problem in haproxy compile haproxy using clang with -fsanitize=address and start haproxy: = ==27669==ERROR: AddressSanitizer: global-buffer-overflow on address 0x019795c8 at pc

What is the status of FastCGI in new 2.1 version?

2019-11-27 Thread flamesea12
Hi I'm so excited that HAProxy supports FastCGI, I would like to try this in our development env first. Just wonder what is the status of it? Full production ready? What's the performance? Thanks

Why separate git repository for different versions?

2019-11-24 Thread flamesea12
Just wondering why not single git repository and use branches for different versions? Instead: haproxy-1.8.githaproxy-1.9.githaproxy-2.0.git use git://git.haproxy.com/haproxy.gitanddevelop branch for current developmentand v2.0/v1.9 branches...

Sometimes worker process stops working.

2020-04-15 Thread flamesea12
Hi all, I'm using latest v2.1.4, with a multiple processes config(nbproc 4), everything works fine at the beginning.Meaning I can see 4 worker processes are using CPU at 70~80% by top command. The next day I noticed a drop of CPU usage on our monitoring system dashboard, then I logged in and

Re: Sometimes worker process stops working.

2020-04-15 Thread flamesea12
Hi, I dug a little more: start haproxy, got 5 processes: say 1000(master), 1001, 1002, 1003, 1004 When this happens, 1001/1002/1003 are using 70% CPU, and 1004 is ~1%. So I kiiled 1001/1002/1003, and try send requests to haproxy, surprisingly 1004 process is working! And if I use ab to send lots

Re: Sometimes worker process stops working.

2020-04-17 Thread flamesea12
Hi, Thank you very much! I'm using v1.8.25 in production which works fine and v2.1.4 in development. global                                                                                              maxconn   1                                                                               

Re: Sometimes worker process stops working.

2020-04-16 Thread flamesea12
Hello, Please help... - Original Message - From: "flamese...@yahoo.co.jp" To: "flamese...@yahoo.co.jp" ; "haproxy@formilux.org" Date: 2020/4/16, Thu 11:22 Subject: Re: Sometimes worker process stops working. Hi, I dug a little more: start haproxy, got 5 processes: say