우리는 HAProxy - 클라이언트 요청을 매우 빠르게받는 데 시간이 걸리는 이유는 무엇입니까?
- 라우팅 트래픽을 요청 우리의 서버에
- SSL 종료
ulimit를의 하위 도메인에 따라 두 작업
을 수행하는 haproxy 아마존 EC2에 (V 1.5.1) 설치를 동시 연결은 ~ 3000입니다.설정 파일은 다음과 같습니다. 우리가 직면하고있는 문제는 haproxy 로그에서 Tq 시간이 매우 (2-3 초) 높다는 것입니다. 구성에 문제가 있거나 뭔가 빠졌습니까?
global
daemon
maxconn 64000
tune.ssl.default-dh-param 2048
log 127.0.0.1 local0 debug
defaults
mode http
option abortonclose
option forwardfor
option http-server-close
option httplog
timeout connect 9s
timeout client 60s
timeout server 30s
stats enable
stats uri /stats
stats realm Haproxy\ Statistics
stats auth username:nopass
frontend www-http
bind *:80
maxconn 64000
http-request set-header U-Request-Source %[src]
reqadd X-Forwarded-Proto:\ http
errorfile 503 /var/www/html/sorry.html
acl host_A hdr_dom(host) -f /etc/A.lst
acl host_B hdr_dom(host) -f /etc/B.lst
use_backend www-A if host_A
use_backend www-B if host_B
log global
frontend www-https
bind *:443 ssl crt /etc/ssl/private/my.pem no-sslv3
http-request set-header U-Request-Source %[src]
maxconn 64000
reqadd X-Forwarded-Proto:\ https
errorfile 503 /var/www/html/sorry.html
acl host_A hdr_dom(host) -f /etc/A.lst
acl host_B hdr_dom(host) -f /etc/B.lst
use_backend www-A if host_A
use_backend www-B if host_B
log global
backend www-A
redirect scheme https if !{ ssl_fc }
server app1 app1.a.mydomain.com:80 check port 80
backend www-B
redirect scheme https if !{ ssl_fc }
server app1 app1.b.mydomain.com:80 check port 80
꾸준히? 때때로? 실적에 문제가 있거나 적극적으로 대응하고 있습니까? –
매우 자주 발생합니다. 350 만 건의 요청 중 70 %는 3 초 이상 걸렸습니다. 그러나 응용 프로그램에서 비례 속도가 느려지지 않습니다. 숫자를 잘못 읽은거야? 일반적인 로그 라인은 다음과 같습니다 :'[27/Dec/2014 : 12 : 44 : 02.438] www-https ~ www-cluster1/app1 4959/0/0/8/4967 200 423' – amdalal
이 HAProxy는 Elastic 로드 밸런서 (ELB) 또는 Cloudfront (또는 이와 유사한 풀 - 스루 CDN)의 출처입니까? –