我现在已经开始使用HAProxy了一段时间,但是仍然尝试着使用日志记录。该网站不时关闭,多数情况下访问速度非常快,它说:
无法访问此网站
意外关闭了连接。
,以及在ha-proxy日志中的许多类似内容:
haproxy[7938]: xx.xxx.xxx.xxx:36601 [06/Apr/2019:17:49:12.485] fe_https be_https/localdfw 6/0/5 0 SD 0/0/0/0/0 0/0
haproxy[7941]: xx.xxx.xxx.xxx:41143 [06/Apr/2019:17:49:12.490] fe_https be_https/localdfw 1/0/0 0 SD 0/0/0/0/0 0/0
我了解点点滴滴,例如SD
表示“到服务器的连接在数据传输过程中由于错误而终止”和/0/0
之前,这很可能意味着它来自客户端等,但是不太明白为什么会这样。谁能帮助我理解日志或给我一些指示,我应该在哪里看?不确定粘贴整个haproxy配置是否会有所帮助,但可以随时询问您可能希望查看的任何部分。预先感谢!
-S
====这是失败的方式=====
Apr 7 07:23:33 zenprdldfw01 haproxy[1989]: 5CE98076:D1CD_0A740205:01BB_5CA9A575_018B:07C5 xx.xxx.xxx.xxx:53709 [07/Apr/2019:07:23:33.730] fe_localdfw~ be_waf/zenprdlwaf01 112/0/0/30/142 200 1485/3331 - - ---- 1/1/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:33 zenprdldfw01 haproxy[1991]: xx.xxx.xxx.xxx:53709 [07/Apr/2019:07:23:33.730] fe_https be_https/localdfw 1/0/171 3915 -- 0/0/0/0/0 0/0
Apr 7 07:23:33 zenprdldfw01 haproxy[1989]: 5CE98076:16D7_0A740205:01BB_5CA9A575_018C:07C5 xx.xxx.xxx.xxx:5847 [07/Apr/2019:07:23:33.736] fe_localdfw~ be_waf/zenprdlwaf01 170/0/0/24/194 200 1485/3339 - - ---- 0/0/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:33 zenprdldfw01 haproxy[1995]: xx.xxx.xxx.xxx:5847 [07/Apr/2019:07:23:33.736] fe_https be_https/localdfw 1/0/219 3923 -- 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1989]: 5CE98076:4555_0A740205:01BB_5CA9A576_018D:07C5 xx.xxx.xxx.xxx:17749 [07/Apr/2019:07:23:34.074] fe_localdfw~ be_waf/zenprdlwaf01 110/0/0/18/128 200 1485/3343 - - ---- 2/2/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:34 zenprdldfw01 haproxy[1994]: xx.xxx.xxx.xxx:17749 [07/Apr/2019:07:23:34.067] fe_https be_https/localdfw 7/0/160 3927 -- 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1989]: 5CE98076:68A2_0A740205:01BB_5CA9A576_018F:07C5 xx.xxx.xxx.xxx:26786 [07/Apr/2019:07:23:34.130] fe_localdfw~ be_waf/zenprdlwaf01 108/0/0/15/123 200 1485/3335 - - ---- 2/2/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:34 zenprdldfw01 haproxy[1992]: xx.xxx.xxx.xxx:26786 [07/Apr/2019:07:23:34.130] fe_https be_https/localdfw 1/0/152 3919 -- 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1989]: 5CE98076:5F09_0A740205:01BB_5CA9A576_0190:07C5 xx.xxx.xxx.xxx:24329 [07/Apr/2019:07:23:34.184] fe_localdfw~ be_waf/zenprdlwaf01 108/0/0/19/127 200 1485/3343 - - ---- 2/2/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:34 zenprdldfw01 haproxy[1993]: xx.xxx.xxx.xxx:24329 [07/Apr/2019:07:23:34.184] fe_https be_https/localdfw 1/0/160 3927 -- 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1989]: 5CE98076:A35F_0A740205:01BB_5CA9A576_0191:07C5 xx.xxx.xxx.xxx:41823 [07/Apr/2019:07:23:34.238] fe_localdfw~ be_waf/zenprdlwaf01 111/0/1/20/132 200 1485/3335 - - ---- 3/3/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:34 zenprdldfw01 haproxy[1995]: xx.xxx.xxx.xxx:41823 [07/Apr/2019:07:23:34.238] fe_https be_https/localdfw 1/0/152 3919 -- 1/1/1/1/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1992]: xx.xxx.xxx.xxx:43853 [07/Apr/2019:07:23:34.401] fe_https be_https/localdfw 1/0/0 0 SD 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1989]: 5CE98076:B9BD_0A740205:01BB_5CA9A576_0192:07C5 xx.xxx.xxx.xxx:47549 [07/Apr/2019:07:23:34.287] fe_localdfw~ be_waf/zenprdlwaf01 109/0/0/21/130 200 1485/3333 - - ---- 2/2/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:34 zenprdldfw01 haproxy[1990]: xx.xxx.xxx.xxx:47549 [07/Apr/2019:07:23:34.287] fe_https be_https/localdfw 1/0/155 3917 -- 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1991]: xx.xxx.xxx.xxx:14862 [07/Apr/2019:07:23:34.454] fe_https be_https/localdfw 1/0/0 0 SD 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1989]: 5CE98076:E213_0A740205:01BB_5CA9A576_0193:07C5 xx.xxx.xxx.xxx:57875 [07/Apr/2019:07:23:34.321] fe_localdfw~ be_waf/zenprdlwaf01 127/0/1/18/146 200 1485/3343 - - ---- 1/1/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:34 zenprdldfw01 haproxy[1995]: xx.xxx.xxx.xxx:57875 [07/Apr/2019:07:23:34.321] fe_https be_https/localdfw 1/0/186 3927 -- 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1989]: 5CE98076:CB0C_0A740205:01BB_5CA9A576_0194:07C5 xx.xxx.xxx.xxx:51980 [07/Apr/2019:07:23:34.350] fe_localdfw~ be_waf/zenprdlwaf01 157/0/0/18/175 200 1485/3341 - - ---- 0/0/0/0/0 0/0 {www.zzzzzzzzzzz.com|||} "GET / HTTP/1.1"
Apr 7 07:23:34 zenprdldfw01 haproxy[1994]: xx.xxx.xxx.xxx:51980 [07/Apr/2019:07:23:34.350] fe_https be_https/localdfw 1/0/201 3954 -- 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1990]: xx.xxx.xxx.xxx:27611 [07/Apr/2019:07:23:34.508] fe_https be_https/localdfw 45/0/44 0 SD 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1991]: xx.xxx.xxx.xxx:33155 [07/Apr/2019:07:23:34.672] fe_https be_https/localdfw 1/0/0 0 SD 0/0/0/0/0 0/0
Apr 7 07:23:34 zenprdldfw01 haproxy[1993]: xx.xxx.xxx.xxx:49552 [07/Apr/2019:07:23:34.711] fe_https be_https/localdfw 7/0/6 0 SD 0/0/0/0/0 0/0
像最后一行一样多次,直到站点再次恢复正常。