在目前的设置中,我们遇到了Varnish的问题,我们运行的是CentOS 5.7 x86_64 xenpv,Cpanel WHM,在VPS.net上托管.
有时我们会收到Varnish的Guru Meditation,当我们使用以下命令varnishlog -d -c -m TxStatus:503查看varnishlog时,它会返回类似于以下内容的输出:
15 VCL_call c recv 15 VCL_acl c NO_MATCH devs 15 VCL_return c pass 15 VCL_call c hash 15 Hash c **** 15 Hash c ************* 15 VCL_return c hash 15 VCL_call c pass pass 15 Backend c 12 default default 15 TTL c 1835862523 RFC 0 -1 -1 1332454056 0 1332454055 375007920 0 15 VCL_call c fetch hit_for_pass 15 ObjProtocol c HTTP/1.1 15 ObjResponse c OK 15 ObjHeader c Date: Thu,22 Mar 2012 22:07:35 GMT 15 ObjHeader c Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 mod_fcgid/2.3.6 15 ObjHeader c X-Powered-By: PHP/5.3.9 15 ObjHeader c Expires: Thu,19 Nov 1981 08:52:00 GMT 15 ObjHeader c Cache-Control: no-store,no-cache,must-revalidate,post-check=0,pre-check=0 15 ObjHeader c Pragma: no-cache 15 ObjHeader c Content-Type: text/html; charset=utf-8 15 ObjHeader c X-Cacheable: NO:Cache-Control=private 15 FetchError c chunked read_error: 12 (Could not get storage) 15 VCL_call c error deliver 15 VCL_call c deliver deliver
据我所知,我们可以尝试增加nuke_limit,但目前我们的nuke_limit为500,当运行varnishstat -1 -f n_lru_nuked时,我们“只”得到总共1031,即使我们已经看到错误发生在几页上.
当我们运行top以查看Varnish使用了多少内存时,它只显示它正在使用763m,尽管我们已将其设置为允许使用1200m.
问题是什么的任何想法?