varnish 503 “ Could not get storage”的一个解决方案

五一高峰,临时帮同事调varnish 503错误,通过“varnishlog -d -c -m TxStatus:503”看到问题所在“ FetchError c Could not get storage”,通过 varnishadm 调整“param.set nuke_limit 512”,503问题立解。没有仔细研究过varnish的更多资料,临时记录。

几条用到的命令:

varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082

param.set nuke_limit 512

param.show nuke_limit

watch -n 5 ‘varnishlog -d -c -m TxStatus:503’

varnishncsa |awk ‘$9 ~ 50’

参考资料:

1,varnish源码,github

2,http://useranswer.com/answer/varnish-returning-503-fetcherror-could-not-get-storage/

3,https://www.varnish-cache.org/trac/ticket/1012

4,http://serverfault.com/questions/372584/varnish-returning-503-fetcherror-could-not-get-storage

5,https://www.varnish-cache.org/forum/topic/530

6,http://serverfault.com/questions/372046/how-much-storage-is-varnish-using

7,https://www.varnish-software.com/static/book/Tuning.html#storage-backends

8,https://github.com/varnish/Varnish-Cache/blob/master/bin/varnishd/cache/cache_fetch.c

|2|left
此条目发表在其他分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注


Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: No address associated with hostname in /mydata/www/wordpress/wp-content/plugins/are-you-a-human/includes/ayah.php on line 312

Warning: fsockopen(): unable to connect to ssl://ws.areyouahuman.com:443 (php_network_getaddresses: getaddrinfo failed: No address associated with hostname) in /mydata/www/wordpress/wp-content/plugins/are-you-a-human/includes/ayah.php on line 312

Unable to load the Are You a Human PlayThru™. Please contact the site owner to report the problem.