<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ben,<br>
<br>
You're using a very small amount of memory. I have the feeling that
varnish sometimes has trouble throwing away older entries which are
still valid.<br>
With your amount of memory that could easily be the case. I'm not
really sure, but since I've allocated more than enough space for the
content varnish hasn't crashed since the last restart a couple of
months ago.<br>
<br>
I would suggest to use "-s file,/path/varnish.bin,2G" for a while to
see if that helps. Of course you need to have 2GB of free space in
/path/<br>
<br>
Regards,<br>
Martin<br>
<br>
<br>
On 09/30/2010 09:10 PM, Ben Nowacky wrote:
<blockquote
cite="mid:804FB091-853B-4D6C-BD56-99743186472A@competitorgroup.com"
type="cite"><base href="x-msg://850/">We're running CentOS 64 bit,
5.5... Here's our VCL, and startup flags:
<div><br>
</div>
<div>sysconfig/varnish: </div>
<div>
<div>-u varnish </div>
<div>-s malloc,800m </div>
<div>-p cli_timeout=1200s</div>
<div>-p thread_pools=1</div>
<div>-p thread_pool_min=120 </div>
<div>-p thread_pool_max=200</div>
<div>-p listen_depth=1024 </div>
<div>p shm_reclen=32768 </div>
<div>-p sess_workspace=8192 </div>
<div>-p http_headers=32</div>
<div>-p sess_timeout=10</div>
<div>-p session_linger=100</div>
<div>-p between_bytes_timeout=10 </div>
<div>-p first_byte_timeout=10</div>
<div>-h critbit </div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>VCL: </div>
<div>
<div># Default backend definition. Set this to point to your content</div>
<div># server.</div>
<div># </div>
<div> backend default {</div>
<div> .host = "64.237.104.85";</div>
<div> .port = "8080";</div>
<div> }</div>
<div> </div>
<div><br>
</div>
<div>acl purge {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>"localhost";</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>"64.237.104.85";</div>
<div>}</div>
<div> </div>
<div><br>
</div>
<div>sub vcl_recv {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#
Serve stale content while fresh is retrieved for 2minutes.</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.grace = 6m;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.http.host ~ "<a moz-do-not-send="true"
href="http://elite.competitor.com/">elite.competitor.com</a>") {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/confcard$") {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.http.New-Location = regsub(req.url,"$","/");</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>error
301 "Redirecting you to the slash representation...";</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/confcard/") {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.http.host ~ "<a moz-do-not-send="true"
href="http://forums.competitor.com/">forums.competitor.com</a>") {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.http.host ~ "<a moz-do-not-send="true"
href="http://svn.competitor.com/">svn.competitor.com</a>"){</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.http.host ~ "<a moz-do-not-send="true"
href="http://competitorradio.competitor.com/">competitorradio.competitor.com</a>")
{</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/wp-admin$") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.http.New-Location = regsub(req.url,"$","/");</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>error
301 "Redirecting you to the slash representation...";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>else
{</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#
always exempt Dev.lan from cache.</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(!(req.http.host ~ "<a moz-do-not-send="true"
href="http://competitor.com/">competitor.com</a>")) {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#
Exempt mobile users from cache... straight to backend.</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.http.User-Agent ~
"(iPhone|iPod|iPad)|(Android)|(BlackBerry9530)|(webOS)") { </div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>} </div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#
redirect URL for trailing slash when logging in.</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/wp-admin$") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.http.New-Location = regsub(req.url,"$","/");</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>error
301 "Redirecting you to the slash representation...";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.http.cookie ~ "wordpress_") {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#
if wp-admin or wp-login is in the URL, pipe to apache.</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "/wp-(admin|login)") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div> }<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> # otherwise just unset cookie and cache all pages. </div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>else
{</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
req.http.cookie;</div>
<div> }</div>
<div> </div>
<div><br>
</div>
<div> </div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>#
cache the home page.</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/$") {</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
req.http.cookie;</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>#category
page </div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/category(.)*") {</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
req.http.cookie;</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>#post
page with date in URL</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/?p=[0-9](.)*") {</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
req.http.cookie;</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div># #post page with date in URL</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/[0-9](.)*") {</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
req.http.cookie;</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> </div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.http.Accept-Encoding) {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~
"^/[^?]+\.(ico|js|css|txt|gz|zip|lzma|bz2|tgz|tbz|html|htm)(\?.*|)$") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>#
No point in compressing these</div>
<div> <span class="Apple-tab-span"
style="white-space: pre;"> </span>remove req.http.Accept-Encoding;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}
elsif (req.http.Accept-Encoding ~ "gzip") {</div>
<div> <span class="Apple-tab-span"
style="white-space: pre;"> </span>set req.http.Accept-Encoding =
"gzip";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}
elsif (req.http.Accept-Encoding ~ "deflate") {</div>
<div> <span class="Apple-tab-span"
style="white-space: pre;"> </span>set req.http.Accept-Encoding =
"deflate";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}
elsif (req.http.Accept-Encoding ~ "MSIE 6") {</div>
<div> <span class="Apple-tab-span"
style="white-space: pre;"> </span>set req.http.Accept-Encoding =
"MSIE";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}
elsif (req.http.Accept-Encoding ~ "MSIE 7") {</div>
<div> <span class="Apple-tab-span"
style="white-space: pre;"> </span>set req.http.Accept-Encoding =
"MSIE";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}
elsif (req.http.Accept-Encoding ~ "MSIE 8") {</div>
<div> <span class="Apple-tab-span"
style="white-space: pre;"> </span>set req.http.Accept-Encoding =
"MSIE";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}
elsif (req.http.Accept-Encoding ~ "Mozilla") {</div>
<div> <span class="Apple-tab-span"
style="white-space: pre;"> </span>set req.http.Accept-Encoding =
"mozilla";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>else
{</div>
<div> <span class="Apple-tab-span" style="white-space: pre;">
</span> <span class="Apple-tab-span" style="white-space: pre;"> </span>#
unkown algorithm</div>
<div> <span class="Apple-tab-span"
style="white-space: pre;"> </span>remove req.http.Accept-Encoding;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> </div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
req.http.user-agent;</div>
<div> </div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~
"^/[^?]+\.(jpeg|jpg|png|gif|ico|js|css|txt|gz|zip|lzma|bz2|tgz|tbz|html|htm)(\?.*|)$")
{</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>remove
req.http.cookie;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.url = regsub(req.url, "\?.*$", "");</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>#
don't bother caching large files</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~
"^/[^?]+\.(mp3|pdf|flv|mov|mp4|mpg|mpeg|avi|dmg|swf)(\?.*|)$") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pipe);</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> </div>
<div> # accept purge requests from Wordpress.<span
class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.request == "PURGE") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if(!client.ip
~ purge) {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>error
405 "Not allowed.";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>purge_url(req.url);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>error
200 "Purged";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>purge("req.url
== " req.url);</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> ####################</div>
<div> # End sub_recv<span class="Apple-tab-span"
style="white-space: pre;"> </span>#</div>
<div> ####################</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div>sub vcl_deliver {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#add
cache hit data</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(obj.hits > 0) {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#if
hit add hit count</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Served-By = server.hostname;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Cache = "HIT";</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Cache-Hits = obj.hits;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Encoding = req.http.Accept-Encoding;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Debug = req.http.host;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}
else {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Served-By = server.hostname;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Cache = "MISS";</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Encoding = req.http.Accept-Encoding;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
resp.http.X-Debug = req.http.host;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>sub vcl_error {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#
for redirect on trailing slash.</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.http.New-Location) {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
obj.http.Location = req.http.New-Location;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>}</div>
<div><br>
</div>
<div>sub vcl_fetch {</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(beresp.status != 200 && beresp.status != 403 &&
beresp.status != 404 && beresp.status != 405 &&
beresp.status != 301 && beresp.status != 302) {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>restart;</div>
<div> }</div>
<div> </div>
<div> if (beresp.http.cookie ~ "wordpress_") {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return
(pass);</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#
Serve stale content while fresh is retrieved for 2minutes.</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.grace = 6m;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.ttl = 720s;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(beresp.ttl < 720s) {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.ttl = 720s;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(!beresp.cacheable) {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.ttl = 0s;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(beresp.http.Set-Cookie) {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>return(deliver);</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>#
make sure cookies aren't set for retrieved static objects.</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span> if
(req.url ~ "^/[^?]+\.(jpeg|jpg|png|gif|ico)(\?.*|)$") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.http.Cache-Control = "max-age=31536000, public";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
beresp.http.set-cookie;</div>
<div> }</div>
<div> </div>
<div> if (req.url ~ "^/[^?]+\.(js|html|htm|txt)(\?.*|)$") {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.http.Cache-Control = "max-age=1728000, public, must-revalidate";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
beresp.http.set-cookie;</div>
<div> }</div>
<div> </div>
<div> if (req.url ~ "^/[^?]+\.(css)(\?.*|)$") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.http.Cache-Control = "max-age=1728000, public, must-revalidate";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
beresp.http.set-cookie;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>#
cache the home page.</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.url ~ "^/$") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
beresp.http.cookie;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.ttl = 600s;</div>
<div> }</div>
<div> </div>
<div> if (req.url ~ "^/category(.)*") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
beresp.http.cookie;</div>
<div> }</div>
<div> </div>
<div> if (req.url ~ "^(.)/[0-9](.)*") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
beresp.http.cookie;</div>
<div> }</div>
<div> if (req.url ~ "^/?p=[0-9](.)*") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
beresp.http.cookie;</div>
<div> }</div>
<div> </div>
<div> </div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>#Change
Web Server header because we can.</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>unset
beresp.http.Server;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
beresp.http.Server = "Mini Con Adventure Team";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div> ####################</div>
<div> # End sub_fetch<span class="Apple-tab-span"
style="white-space: pre;"> </span>#</div>
<div> ####################</div>
<div>}</div>
<div><br>
</div>
<div>sub vcl_pipe {</div>
<div># # <a moz-do-not-send="true"
href="http://www.varnish-cache.org/ticket/451">http://www.varnish-cache.org/ticket/451</a></div>
<div># # This forces every pipe request to be the first one.</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
bereq.http.connection = "close";</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div>sub vcl_hit {</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>if
(req.request == "PURGE") {</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>set
obj.ttl = 0s;</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>error
200 "Purged.";</div>
<div> <span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div>sub vcl_hash {</div>
<div><br>
</div>
<div># <span class="Apple-tab-span" style="white-space: pre;"> </span>//hash
the object with url+host</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.hash += req.url;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.hash += req.http.host;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.hash += req.http.User-Agent;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>set
req.hash += req.http.cookie;</div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div><span class="Apple-tab-span" style="white-space: pre;"> </span>return(hash);</div>
<div>}</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>On Sep 30, 2010, at 12:06 PM, Ross Brown wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"><span class="Apple-style-span"
style="border-collapse: separate; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">
<div link="blue" vlink="purple" lang="EN-NZ">
<div class="WordSection1" style="page: WordSection1;">
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);">2
Days? That’s certainly…. sub-optimal. What OS are you running? Our 8 x
Varnish servers (64-bit Ubuntu 10.04.1 LTS) are rock solid and easily
run for weeks without any issues.<o:p></o:p></span></div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);">We
run with malloc,24G (32Gb RAM installed)<o:p></o:p></span></div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);">Can
you share your startup options and VCL?<o:p></o:p></span></div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></div>
<div>
<div
style="border-style: solid none none; border-top: 1pt solid rgb(181, 196, 223); padding: 3pt 0cm 0cm;">
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><b><span
style="font-size: 10pt; font-family: Tahoma,sans-serif;" lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: Tahoma,sans-serif;" lang="EN-US"><span
class="Apple-converted-space"> </span><a moz-do-not-send="true"
href="mailto:varnish-misc-bounces@varnish-cache.org"
style="color: blue; text-decoration: underline;">varnish-misc-bounces@varnish-cache.org</a><span
class="Apple-converted-space"> </span>[<a class="moz-txt-link-freetext" href="mailto:varnish-misc-bounces@varnish-cache.org">mailto:varnish-misc-bounces@varnish-cache.org</a>]<span
class="Apple-converted-space"> </span><b>On Behalf Of<span
class="Apple-converted-space"> </span></b>Ben Nowacky<br>
<b>Sent:</b><span class="Apple-converted-space"> </span>Friday, 1
October 2010 7:02 a.m.<br>
<b>To:</b><span class="Apple-converted-space"> </span>Caunter,
Stefan<br>
<b>Cc:</b><span class="Apple-converted-space"> </span><a
moz-do-not-send="true" href="mailto:varnish-misc@varnish-cache.org"
style="color: blue; text-decoration: underline;">varnish-misc@varnish-cache.org</a><br>
<b>Subject:</b><span class="Apple-converted-space"> </span>Re:
Panic Signal 6.<o:p></o:p></span></div>
</div>
</div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;">2.1.2,
would prefer to use malloc over file storage if possible, but haven't
tried file to see if that's the issue.<o:p></o:p></div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
</div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;">On
Sep 30, 2010, at 10:57 AM, Caunter, Stefan wrote:<o:p></o:p></div>
</div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><br>
<br>
<o:p></o:p></div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"
lang="EN-CA">What version of varnish? Have you tried with –s
file,/path/to/file</span><span class="apple-converted-space"><span
lang="EN-CA"> </span></span><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"
lang="EN-CA">,1075200000 instead of –s malloc?</span><span lang="EN-CA"><o:p></o:p></span></div>
</div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"
lang="EN-CA"> </span><span lang="EN-CA"><o:p></o:p></span></div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"
lang="EN-CA">Stefan Caunter :: Senior Systems Administrator :: TOPS</span><span
lang="EN-CA"><o:p></o:p></span></div>
</div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"
lang="EN-CA">e:<span class="apple-converted-space"> </span><a
moz-do-not-send="true" href="mailto:scaunter@topscms.com"
style="color: blue; text-decoration: underline;">scaunter@topscms.com</a>
:: m: (416) 561-4871</span><span lang="EN-CA"><o:p></o:p></span></div>
</div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"
lang="EN-CA"><a moz-do-not-send="true" href="http://www.thestar.com"
style="color: blue; text-decoration: underline;">www.thestar.com</a><span
class="apple-converted-space"> </span><a moz-do-not-send="true"
href="http://www.topscms.com"
style="color: blue; text-decoration: underline;">www.topscms.com</a></span><span
lang="EN-CA"><o:p></o:p></span></div>
</div>
</div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
style="font-size: 11pt; font-family: Calibri,sans-serif; color: rgb(31, 73, 125);"
lang="EN-CA"> </span><span lang="EN-CA"><o:p></o:p></span></div>
</div>
<div>
<div style="border-style: solid none none; padding: 3pt 0cm 0cm;">
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><b><span
style="font-size: 10pt; font-family: Tahoma,sans-serif;" lang="EN-US">From:</span></b><span
class="apple-converted-space"><span
style="font-size: 10pt; font-family: Tahoma,sans-serif;" lang="EN-US"> </span></span><span
style="font-size: 10pt; font-family: Tahoma,sans-serif;" lang="EN-US"><a
moz-do-not-send="true"
href="mailto:varnish-misc-bounces@varnish-cache.org"
style="color: blue; text-decoration: underline;">varnish-misc-bounces@varnish-cache.org</a><span
class="apple-converted-space"> </span>[<a class="moz-txt-link-freetext" href="mailto:varnish-misc-bounces@varnish-cache.org">mailto:varnish-misc-bounces@varnish-cache.org</a>]<span
class="apple-converted-space"> </span><b>On Behalf Of<span
class="apple-converted-space"> </span></b>Ben Nowacky<br>
<b>Sent:</b><span class="apple-converted-space"> </span>September-30-10
12:53 PM<br>
<b>To:</b><span class="apple-converted-space"> </span><a
moz-do-not-send="true" href="mailto:varnish-misc@varnish-cache.org"
style="color: blue; text-decoration: underline;">varnish-misc@varnish-cache.org</a><b>Subject:</b><span
class="apple-converted-space"> </span>Panic Signal 6.</span><span
lang="EN-CA"><o:p></o:p></span></div>
</div>
</div>
</div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA"> <o:p></o:p></span></div>
</div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA">Hey everyone ! Wondering if someone can lend a hand.
We've gotten our servers upgraded to 64-bit OS, and seen tremendous
stability enhancement with varnish over our 32-bit os, which crashed
every 5-10 minutes. We can now get about 2 days of uptime before we
have a new child process crash. Logs are listed below.. Wondering if
something obvious jumps out at anyone as to what the cause of this may
be.<o:p></o:p></span></div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA"> <o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA">Appreciate any insight from the community ! <o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA"> <o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA">Sep 30 16:37:17 srv860 varnishd[16195]: Child (16196)
died signal=6<o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA"> <o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA">Sep 30 16:37:17 srv860 varnishd[16195]: Child (16196)
Panic message: Assert error in WS_Release(), cache_ws.c line 193:
Condition(bytes <= ws->e - ws->f) not true. errno = 104
(Connection reset by peer) thread = (cache-worker) ident =
Linux,2.6.18-194.el5,x86_64,-smalloc,-hcritbit,epoll Backtrace:
0x422616: /usr/sbin/varnishd [0x422616] 0x42d475:
/usr/sbin/varnishd(WS_Release+0xf5) [0x42d475] 0x427b33:
/usr/sbin/varnishd [0x427b33] 0x42bc45:
/usr/sbin/varnishd(VRT_SetHdr+0xf5) [0x42bc45] 0x2aaaab003e76:
./vcl.1P9zoqAU.so [0x2aaaab003e76] 0x427006:
/usr/sbin/varnishd(VCL_deliver_method+0x46) [0x427006] 0x4130cf:
/usr/sbin/varnishd [0x4130cf] 0x413e49:
/usr/sbin/varnishd(CNT_Session+0x369) [0x413e49] 0x424a68:
/usr/sbin/varnishd [0x424a68] 0x423d4d: /usr/sbin/varnishd [0x423d4d]
sp = 0x2aaac060e008 { fd = 351, id = 351, xid = 1104824170, client
= 63.240.230.197:26479, step = STP_DELIVER, handling = deliver,
restarts = 0, esis = 0 ws = 0x2aaac060e078 { id = "sess",
{s,f<o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA"> <o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA">Sep 30 16:37:17 srv860 varnishd[16195]: child (32562)
Started<o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA"> <o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA">Sep 30 16:37:17 srv860 varnishd[16195]: Child (32562)
said <o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA"> <o:p></o:p></span></div>
</div>
</div>
<div>
<div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><span
lang="EN-CA">Sep 30 16:37:17 srv860 varnishd[16195]: Child (32562)
said Child starts<o:p></o:p></span></div>
</div>
</div>
</div>
</div>
</div>
<div
style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman',serif;"><o:p> </o:p></div>
</div>
</div>
</div>
</span></blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
varnish-misc mailing list
<a class="moz-txt-link-abbreviated" href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a>
<a class="moz-txt-link-freetext" href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a></pre>
</blockquote>
<br>
</body>
</html>