1. 程式人生 > >haproxy 服務端超時時間 timeout server 17000 --後臺程式17秒沒有響應 返回超時

haproxy 服務端超時時間 timeout server 17000 --後臺程式17秒沒有響應 返回超時

               
haproxy 服務端超時時間:haproxy 配置:timeout server 17000    --後臺程式17秒沒有響應,返回超時Jun 27 09:29:56 localhost haproxy[13593]: 192.168.32.101:43552 [27/Jun/2016:09:29:39.002] www appserver_3000/webhost01_8001 64/0/6/-1/17072 504 194 - - sH-- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"Jun 27 09:30:13 localhost haproxy[13593]: 192.168.32.101:43558 [27/Jun/2016:09:29:56.300] www appserver_3000/webhost01_8001 59/0/7/-1/17067 504 194 - - sH-- 0/0/0/0/0 0/0 "GET /admin/api/menu HTTP/1.1"[
[email protected]
test]# cat get.pl use  LWP::UserAgent; my $ua = LWP::UserAgent->new;#$ua->env_proxy('http','http://$ARGV[0]');$ua->agent("Mozilla/8.0");my $response = $ua->get('http://www.zjtest6.com/admin/api/menu');if ($response->is_success) { print $response->decoded_content;  # or whatever}else { die $response->status_line;}[
[email protected]
test]# sh ./a1.sh504 Gateway Time-out at ./get.pl line 14.Mon Jun 27 09:31:16 CST 2016504 Gateway Time-out at ./get.pl line 14.Mon Jun 27 09:31:33 CST 2016