我的一位客户遇到了清漆速度问题.
长调试,简短:
当清漆从缓存(内存)中获取对象时,它实际上是缓慢的(> 5秒),
当清漆需要从apache后端获取对象时,没有速度问题(<1秒).
缓慢请求的例子(来自varnishlog):
193 ReqStart c <client ip> 59490 1329239608
193 RxRequest c GET
193 RxURL c /<my_url>/toto.png
193 RxProtocol c HTTP/1.1
193 RxHeader c Accept: */*
193 RxHeader c Referer: <my_referer>
193 RxHeader c Accept-Language: fr
193 RxHeader c User-Agent: <client_useragent>
193 RxHeader c Accept-Encoding: gzip, deflate
193 RxHeader c Host: <my_vhost>
193 RxHeader c Connection: Keep-Alive
193 VCL_call c recv lookup
193 VCL_call c hash
193 Hash c /<my_url>/toto.png
193 Hash c <my_vhost>
193 VCL_return …Run Code Online (Sandbox Code Playgroud) varnish ×1