-
经过了大半年的等待,Varnish终于推出了新版2.0.5。来看看新版特性:
2009-11-09 Varnish 2.0.5 released
Varnish 2.0.5 has just been released. This release contains multiple changes, amongst them:
Performance improvements, particularly on Linu... -
我的Varnish服务器在访问量达到一定程度的时候会出现自动重启子进程的问题,从日志中出现重启子进程时有以下错误提示
Panic message: Missing errorhandling code in sma_alloc(), storage_malloc.c line 79: Condition((sma->s.p
tr) != 0) not true. errno = 12 (Cannot allocate me... -
2009-04-01 Varnish 2.0.4 released
Varnish 2.0.4 has just been released. This release contains multiple changes, amongst them:
Serve graced objects if the backend is unhealthy. Portability fixes for Solaris, MacOS X/Darwin... -
今天发现我的Varnish2.0.3版在运行一段时间后就会自动重启子进程,导致缓存命中率低下(不到50%),查看/var/log/message发现果然存在Varnish不断重启新的子进程的现象,报错中基本上都带有Cannot allocate memory的提示。查询官方网站的性能优化页面后发现,当缓存的object数量级较大时可以进行一些优化。摘取相关信息如下:
Running with many objects
If you have many o... -
当Varnish遇到带参数的URL(这些参数还经常变)的时候,通常会存在同一个真正的URL存放多份缓存及缓存命中率低的情况,根据官方网站的文档说明,可以在sub_recv中加入如下段解决。
if (req.url ~ ".(jpg|gif|png)\?.*") {
&nbs... -
Varnish在2月12日又更新了版本,更新日志:
Varnish 2.0.3 has just been released. This release contains multiple changes, amongst them:
Support for backend timeouts Multiple fixes in how we process ESI restart in vcl_hit is now su... -
此日志会随时更新,当然,是随着我的应用积累:)
实现静态文件压缩
Varnish itself does not compress or decompress objects, although that has been on our wish list for quite a while. However, it will operate correctly with backends that support compression.... -
VCL - Varnish configuration Language
The VCL language is a small domain-specific language designed to be used to define request handling and document caching policies for the Varnish HTTP accelerator. When a new configuration is loaded, the ... -
Varnish的配置安装已在之前的文章中提到过了,这次重点来看下有关图片防盗链的问题。其实防盗链最普遍的就是通过Referer来判断,如果不是从指定的域名来访问的就咔咔。知道了这个思路,剩下的就是配置文件的事儿了,这里只给出相关的配置文件段(当然,是加在vcl_recv里面):
if (req.http.referer) {
&... -
前段时间图片服务器的连接数已经接近4W了(Windows服务器),为了减轻图片服务器的压力,尝试着用Varnish安装了一台Cache服务器用于图片的Cache,上线以后使用稳定,表现良好。先写下安装配置文档,还在精进中……欢迎大家互相交流
安装环境
操作系统: CentOS release 5.2 (Final)
Kernel: 2.6.18-92.1.6.el5PAE
软件列表
varnish-...
共1页 1









