来源:蜘蛛抓取(WebSpider)
时间:2015-09-29 18:24
标签:
http 1.0 503 service
Varnish Error 503 Service Unavailable / Service Unavailable / Guru Meditation | MageLineMageLine
Varnish Error 503 Service Unavailable / Service Unavailable / Guru Meditation
Using Varnish cache on a Magento web shop will make your website fly. However, using third party extensions on a robust database could lead into a &# Service Unavailable” varnish error. For example, ManaDev Layered Navigation Pro extension will leand into this problem if you have a pretty high number of product attributes. If we check varnishlog we get:
11 VCL_return c hash
11 VCL_call c miss fetch
11 Backend c 13 default default
11 FetchError c http first read error: -2 0 (No error recorded)
11 VCL_call c error deliver
11 VCL_call c deliver deliver
11 TxProtocol c HTTP/1.1
11 TxStatus c 503
11 TxResponse c Service Unavailable
11 TxHeader c Server: Varnish
11 TxHeader c Content-Type: text/ charset=utf-8
11 TxHeader c Retry-After: 5
11 TxHeader c Content-Length: 419
11 TxHeader c Accept-Ranges: bytes
11 TxHeader c Date: Sat, 24 Aug :58 GMT
11 TxHeader c Connection: close
This means that our backend returns more data than varnish can handle. We need to increase ‘http_req_size’, which defaults to 32768 bytes. How we do this?
Edit /etc/default/varnish file and add this paramater, with a higher value. For example:
DAEMON_OPTS="-:80 \
-f /etc/varnish/website.vcl \
-S /etc/varnish/secret \
-p http_req_size=64000 \
-s malloc,2G"
Save the file, restart varnish and the problem should be solved:
root@stage:~# service varnish restart
Share this post
Your email address (required)
Comment (required)
Categories
Latest Tweet
Please wait...
Contact Us
Address: Soseaua Nicolae Titulescu #10 Bl. 20 Sc. C Et. 1 Ap.126, District 1, Bucharest, ROMANIA
Phone: (+4) (031) 005 15 43
(C)Copyright
by MageLine. All Rights Reserved.- flippedwhips - domstat.net
last data update: , 19:20
Website loading timeduring the test: 2.3 scable connection (average): 2.3 sDSL connection (average): 2.3 smodem (average): 2.3 sHTTP headersHTTP/1.1 503 Service UnavailableConnection: closeDate: Tue, 18 Oct :43 GMTServer: Microsoft-IIS/6.0X-Powered-By: ASP.NETX-Powered-By: PHP/5.2.12Set-Cookie: PHPSESSID=9gtc2h9jd61po9a603iffpb130; path=/Expires: Thu, 19 Nov :00 GMTCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0Pragma: no-cacheX-Pingback: /xmlrpc.phpContent-Type: text/ charset=UTF-8Content-Length: 1584
Information about DNS serversA173.83.40.23IN21600MX10IN21600SOA 00 IN 21600NSIN21600NSIN21600Received from the first DNS serverRequest to the server ""You used the following DNS server:DNS Name: DNS Server Address: 98.130.1.26#53DNS server aliases: HEADER opcode: REQUEST, status: NOERROR, id: 55960 flag: qr aa rd REQUEST: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 10 REQUEST SECTION:. IN ANY ANSWER SECTION:. 21600 IN SOA . .
00. 21600 IN MX 10 .. 21600 IN A 173.83.40.23. 21600 IN NS .. 21600 IN NS . SECTION NOTES:. 21600 IN A 76.162.254.116. 21600 IN A 76.162.254.109. 21600 IN A 98.130.1.26. 21600 IN A 76.162.254.119. 21600 IN A 76.162.254.110. 21600 IN A 76.162.254.120. 21600 IN A 76.162.254.111. 21600 IN A 76.162.254.117. 21600 IN A 76.162.254.118. 21600 IN A 98.130.253.162Received 327 bytes from address 98.130.1.26#53 in 32 msReceived from the second DNS serverRequest to the server ""You used the following DNS server:DNS Name: DNS Server Address: 98.130.253.162#53DNS server aliases: HEADER opcode: REQUEST, status: NOERROR, id: 10267 flag: qr aa rd REQUEST: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 10 REQUEST SECTION:. IN ANY ANSWER SECTION:. 21600 IN NS .. 21600 IN SOA . .
00. 21600 IN NS .. 21600 IN A 173.83.40.23. 21600 IN MX 10 . SECTION NOTES:. 21600 IN A 76.162.254.109. 21600 IN A 76.162.254.111. 21600 IN A 76.162.254.118. 21600 IN A 76.162.254.120. 21600 IN A 76.162.254.110. 21600 IN A 76.162.254.117. 21600 IN A 98.130.1.26. 21600 IN A 76.162.254.116. 21600 IN A 76.162.254.119. 21600 IN A 98.130.253.162Received 327 bytes from address 98.130.253.162#53 in 33 ms
Subdomains (the first 50)Typos (misspells)
LocationIP: 173.83.40.23continent: NA, country: United States (USA), city: Columbus
Website valuerank in the traffic statistics: There is not enough data to estimate website value.
Basic informationwebsite build without CSScode weight: 0 KBtext per all code ratio: 0 %title: description: keywords: encoding: ASCIIlanguage: enWebsite code analysisone word phrases repeated minimum three timestwo word phrases repeated minimum three timesthree word phrases repeated minimum three timesB tagsU tagsI tagsimagesheadersH1H2H3H4H5H6internal linksexternal links