On 2019-01-31 12:57, Aleksandar Lazic wrote:
Willy have found some issues which are added in the code of 2.0 tree.
Do you have a chance to test this branch or do you want to wait for
the next 1.9 release?
I tested stable 1.9.3 and 1.9 preview version Willy gave link here
https://www.mail-archive.com/haproxy@formilux.org/msg32678.html
There is no difference in my tests.
I'm not sure if it affects you as we haven't seen the config yet.
Maybe you can share your config also so that we can see if your setup
could be effected.
Commented timeouts are original timeouts, I had increased those to make
sure, I'm not hitting any timeouts when creating higher load with tests.
Maxconn values 9999 serve the same purpose.
global
log /dev/log local0
daemon
nbproc 1
nbthread 16
maxconn 9999
user haproxy
spread-checks 5
tune.ssl.default-dh-param 2048
ssl-default-bind-options no-sslv3 no-tls-tickets
ssl-default-bind-ciphers
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:!DSS
ssl-default-server-options no-sslv3 no-tls-tickets
ssl-default-server-ciphers
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:AES128-GCM-SHA256:AES128-SHA256:AES128-SHA:!DSS
tune.ssl.cachesize 100000
tune.ssl.lifetime 1800
stats socket /var/run/haproxy.sock.stats1 mode 640 group vault process
1 level admin
defaults
log global
mode http
option httplog
option contstats
option log-health-checks
retries 5
#timeout http-request 5s
timeout http-request 99s
#timeout http-keep-alive 20s
timeout http-keep-alive 99s
#timeout connect 10s
timeout connect 99s
#timeout client 30s
timeout client 99s
timeout server 120s
#timeout client-fin 10s
timeout client-fin 99s
#timeout server-fin 10s
timeout server-fin 99s
listen main_frontend
bind *:443 ssl crt /etc/vault/cert.pem crt /etc/letsencrypt/certs/
maxconn 9999
bind *:80 maxconn 9999
option forwardfor
acl local_lighty_down nbsrv(lighty_load_balancer) lt 1
monitor-uri /load_balance_health
monitor fail if local_lighty_down
default_backend lighty_load_balancer
backend lighty_load_balancer
stats enable
stats realm statistics
http-response set-header Access-Control-Allow-Origin *
option httpchk HEAD /dl/index.html
server lighty0 127.0.0.1:9000 check maxconn 9999 fall 2 inter 15s rise
5 id 1
Test results
httpress test output summary:
10000 requests launched
thread 3: 1000 connect, 1000 requests, 983 success, 17 fail, 6212668130
bytes, 449231 overhead
thread 9: 996 connect, 996 requests, 979 success, 17 fail, 6187387690
bytes, 447403 overhead
thread 4: 998 connect, 998 requests, 980 success, 18 fail, 6193707800
bytes, 447860 overhead
thread 1: 1007 connect, 1007 requests, 988 success, 19 fail, 6244268680
bytes, 451516 overhead
thread 8: 998 connect, 998 requests, 977 success, 21 fail, 6174747470
bytes, 446489 overhead
thread 7: 1001 connect, 1001 requests, 970 success, 31 fail, 6130506700
bytes, 443290 overhead
thread 10: 997 connect, 997 requests, 983 success, 14 fail, 6212668130
bytes, 449231 overhead
thread 6: 1004 connect, 1004 requests, 986 success, 18 fail, 6231628460
bytes, 450602 overhead
thread 5: 999 connect, 999 requests, 982 success, 17 fail, 6206348020
bytes, 448774 overhead
thread 2: 1000 connect, 1000 requests, 981 success, 19 fail, 6200027910
bytes, 448317 overhead
TOTALS: 10000 connect, 10000 requests, 9809 success, 191 fail, 100
(100) real concurrency
TRAFFIC: 6320110 avg bytes, 457 avg overhead, 61993958990 bytes, 4482713
overhead
TIMING: 81.014 seconds, 121 rps, 747335 kbps, 825.9 ms avg req time
HAproxy log sections of incomplete transfers (6320535 bytes should be
transferred with this test data set):
127.0.0.1:33054 [01/Feb/2019:11:22:48.178] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/298 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:32820 [01/Feb/2019:11:22:48.068] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/409 200 4990 - - SD-- 99/99/98/98/0
0/0 "
127.0.0.1:34330 [01/Feb/2019:11:22:49.199] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/90 200 425 - - SD-- 100/100/99/99/0
0/0 "
127.0.0.1:34344 [01/Feb/2019:11:22:49.201] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/88 200 425 - - SD-- 99/99/98/98/0
0/0 "
127.0.0.1:34658 [01/Feb/2019:11:22:49.447] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/254 200 425 - - SD--
100/100/98/98/0 0/0 "
127.0.0.1:34386 [01/Feb/2019:11:22:49.290] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/412 200 425 - - SD--
100/100/98/98/0 0/0 "
127.0.0.1:34388 [01/Feb/2019:11:22:49.290] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/831 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:35168 [01/Feb/2019:11:22:49.710] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/411 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:35162 [01/Feb/2019:11:22:49.708] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/413 200 425 - - SD-- 99/99/98/98/0
0/0 "
127.0.0.1:35152 [01/Feb/2019:11:22:49.705] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/416 200 425 - - SD--
100/100/98/98/0 0/0 "
127.0.0.1:35668 [01/Feb/2019:11:22:50.121] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/607 200 4990 - - SD--
101/101/99/98/0 0/0 "
127.0.0.1:35700 [01/Feb/2019:11:22:50.141] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/587 200 425 - - SD--
100/100/98/98/0 0/0 "
127.0.0.1:35666 [01/Feb/2019:11:22:50.121] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/607 200 4990 - - SD-- 99/99/98/97/0
0/0 "
127.0.0.1:36910 [01/Feb/2019:11:22:50.965] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/614 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:38214 [01/Feb/2019:11:22:51.836] main_frontend
lighty_load_balancer/lighty0 0/0/0/2/402 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:38340 [01/Feb/2019:11:22:51.891] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/731 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:40764 [01/Feb/2019:11:22:53.502] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/138 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:40756 [01/Feb/2019:11:22:53.496] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/144 200 425 - - SD-- 99/99/98/98/0
0/0 "
127.0.0.1:41296 [01/Feb/2019:11:22:53.790] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/278 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:43400 [01/Feb/2019:11:22:55.287] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/537 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:44420 [01/Feb/2019:11:22:56.039] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/670 200 425 - - SD--
100/100/99/98/0 0/0 "
127.0.0.1:48472 [01/Feb/2019:11:22:58.755] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/353 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:48416 [01/Feb/2019:11:22:58.719] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/603 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:49679 [01/Feb/2019:11:22:59.612] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/603 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:54236 [01/Feb/2019:11:23:02.668] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/209 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:56552 [01/Feb/2019:11:23:03.992] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/337 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:56556 [01/Feb/2019:11:23:03.992] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/803 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:56972 [01/Feb/2019:11:23:04.328] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/466 200 425 - - SD-- 99/99/98/98/0
0/0 "
127.0.0.1:32866 [01/Feb/2019:11:23:07.269] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/200 200 425 - - SD--
101/101/100/100/0 0/0 "
127.0.0.1:35088 [01/Feb/2019:11:23:08.655] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/227 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:39518 [01/Feb/2019:11:23:11.804] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/478 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:43454 [01/Feb/2019:11:23:14.378] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/630 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:39078 [01/Feb/2019:11:23:30.293] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/848 200 6259553 - - SD--
101/101/100/99/0 0/0 "
127.0.0.1:44056 [01/Feb/2019:11:23:33.539] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/609 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:49873 [01/Feb/2019:11:23:37.240] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/544 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:50925 [01/Feb/2019:11:23:37.785] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/187 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:53783 [01/Feb/2019:11:23:39.738] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/757 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:55298 [01/Feb/2019:11:23:40.613] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/646 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:55133 [01/Feb/2019:11:23:40.494] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/766 200 425 - - SD-- 100/99/98/98/0
0/0 "
127.0.0.1:33842 [01/Feb/2019:11:23:44.266] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/298 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:33715 [01/Feb/2019:11:23:44.170] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/394 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:37110 [01/Feb/2019:11:23:46.040] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/271 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:36521 [01/Feb/2019:11:23:45.746] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/567 200 425 - - SD--
100/100/98/97/0 0/0 "
127.0.0.1:37674 [01/Feb/2019:11:23:46.323] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/643 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:37678 [01/Feb/2019:11:23:46.331] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/635 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:47444 [01/Feb/2019:11:23:51.456] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/406 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:48532 [01/Feb/2019:11:23:52.006] main_frontend
lighty_load_balancer/lighty0 0/0/0/4/699 200 4990 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:51704 [01/Feb/2019:11:23:53.827] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/491 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:51519 [01/Feb/2019:11:23:53.732] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/586 200 4990 - - SD--
100/100/98/98/0 0/0 "
127.0.0.1:53123 [01/Feb/2019:11:23:54.560] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/487 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:53474 [01/Feb/2019:11:23:54.801] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/334 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:54034 [01/Feb/2019:11:23:55.047] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/86 200 425 - - SD-- 100/100/99/98/0
0/0 "
127.0.0.1:54570 [01/Feb/2019:11:23:55.405] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/595 200 425 - - SD-- 99/99/98/97/0
0/0 "
127.0.0.1:55660 [01/Feb/2019:11:23:56.004] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/153 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:55891 [01/Feb/2019:11:23:56.156] main_frontend
lighty_load_balancer/lighty0 0/0/0/1/592 200 425 - - SD--
100/100/99/99/0 0/0 "
127.0.0.1:59118 [01/Feb/2019:11:23:57.831] main_frontend
lighty_load_balancer/lighty0 0/0/0/0/859 200 5735265 - - SD--
101/101/100/100/0 0/0 "
Not a single request fails when running directly against lighttpd.
Regards,
Veiko