Articles of 清漆

廉价的缩放技术使用开源软件

什么是你最喜欢的技术来提高高度网站的可扩展性? 我编译了以下使用开源工具的技术列表: 1.)caching整页反向代理,以避免击中应用程序服务器:清漆 2.)分布式键值caching避免碰到DB:memcached …添加到列表中! … 什么是你最喜欢的工具来实现高可扩展性?

Apache + Nginx + Varnish + APC或…?

我已经阅读了一些关于它的文章,但我仍然没有得到一些东西。 Isnt Varnish和Nginx基本上是一样的东西? 我知道varnish不是一个web服务器,但是在这种情况下,nginx不能作为一个,它们都可以作为一个反向caching代理。 APC甚至可以在这种configuration下工作吗? 你推荐什么来加快WordPress的博客?

我如何去debuggingVarnish不能正确启动?

我试图运行清漆,但似乎是一个儿童进程在启动时死亡。 任何人都可以build议我去debugging出了什么问题的最佳途径? 背景 我有一个树莓派,我已经安装了Debian,它运行的清漆很好。 最近,我决定安装Raspbian(一个基于Debian的操作系统,但是对于覆盆子pi进行了优化)。 要做到这一点,我做了一个全新的安装,并使用puppet来确保我的设置与之前所做的一样。 我能想到的两个设置之间唯一的实质性区别是Raspbian使用的是以前版本的Debian(Wheezy),而不是以前使用的(Squeeze),所以使用了Varnish 3而不是2。 debugging到目前为止的尝试: 我查看了/ var / logs / syslog,发现如下: Sep 21 22:26:28 interceptor varnishd[15056]: Platform: Linux,3.1.9+,armv6l,-smalloc,-smalloc,-hcritbit Sep 21 22:26:28 interceptor varnishd[15056]: child (15064) Started Sep 21 22:26:28 interceptor varnishd[15056]: Pushing vcls failed:#012CLI communication error (hdr) Sep 21 22:26:28 interceptor varnishd[15056]: Stopping Child Sep 21 22:26:28 interceptor varnishd[15056]: Child (15064) […]

清漆保持caching子域我不问它

我试图configuration清漆不caching任何开始与“分段”使用传递方法如下所示的域: if( req.url ~ "^(staging.)" ) 我怀疑我正在使用VCLselect器错误,但环顾四周后

当后端返回503时,如何获得Varnish为TTL过期的caching对象提供服务?

我试图让Varnish提供TTL过期的caching对象,当从后端请求一个新的对象返回503错误。 有一个Varnish Gracefunction ,当后端不健康时会这样做,但当后端通过健康检查时,它不起作用。

清漆caching:清漆如何与其他caching系统一起玩?

我正在考虑在我的论坛平台前安装Varnishcaching,以加快速度。 它已经运行Percona MySQL DB,PHP 5.5.8(其中内置Opcodecaching,并正在运行)和memcached。 该网站贯穿CDN,也caching一些资源。 编辑:没有集群,这是一个单一的服务器。 Varnish是我当前caching层的重复/冲突,还是对我现有的caching很好的补充? 谢谢。

质量301redirect与清漆

我正在将网站迁移到另一个平台。 我们有一个Python脚本来处理导入,我们正在考虑使用Varnish来提高速度。 我想确保所有现有的URL保持function(以301redirect的forms),我正在考虑直接在Varnish中进行。 我们正在谈论3k +的URL,我们将无法将其捕捉到一些正则expression式中。 理想情况下,我会保留redirect列表在一个单独的文件,json,csv或xml,但从一些研究似乎没有直接的方法来做到这一点,除了生成一个巨大的.vcl文件与导入脚本的elseif 。 是否有一个更好的方法来做群发301redirect在光油?

在ubuntu 14.10上编译Varnish 3时出错

我是Linux和Ubuntu的新手,这是我第一次在Linux上编译任何东西。 我想在Ubuntu 14.10编译清漆,但我得到以下错误: Traceback (most recent call last): File "/usr/bin/rst2man", line 21, in <module> from docutils.core import publish_cmdline, default_description File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 20, in <module> from docutils import frontend, io, utils, readers, writers File "/usr/lib/python2.7/dist-packages/docutils/frontend.py", line 41, in <module> import docutils.utils File "/usr/lib/python2.7/dist-packages/docutils/utils/__init__.py", line 20, in <module> import docutils.io File "/usr/lib/python2.7/dist-packages/docutils/io.py", line 18, in <module> […]

varnish守护进程不在configuration的端口上侦听

我想在Ubuntu 16.04上安装清漆, 我读了几篇文章没有工作。 从我读的,从Ubuntu 15.04以来,configuration清漆的方式已经改变(因为systemd)。 现在我有一个真正的混乱,这是行不通的: / etc / default / varnish: DAEMON_OPTS="-a :80 \ -T localhost:6082 \ -f /etc/varnish/default.vcl \ -S /etc/varnish/secret \ -s malloc,256m" /etc/varnish/default.vcl(通常指向一个主机指向127.0.0和端口8080,但为了debugging的目的,我将其修改为一个外部域)vcl 4.0; # Default backend definition. Set this to point to your content server. backend default { .host = "www.varnish-cache.org"; .port = "80"; } /etc/apache2/ports.conf Listen 8080 grep -R […]

错误信息,当试图启动centos 5.5上的清漆

我只是安装并configurationVarnish在端口80上工作,而Apache在端口8080上工作。我试图用命令service varnish start来启动Varnish,但它给了我这个错误: varnishd死了但pid文件存在 我在/etc/sysconfig/varnish编辑了这个configuration: DAEMON_OPTS="-a :80 \ -T localhost:6082 \ -f /etc/varnish/default.vcl \ -u varnish -g varnish \ -S /etc/varnish/secret \ -s file,/var/lib/varnish/varnish_storage.bin,1G" 这是default.vcl文件的内容: backend default { .host = "127.0.0.1"; .port = "8080"; .connect_timeout = 600s; .first_byte_timeout = 600s; .between_bytes_timeout = 600s; } sub vcl_recv { if (req.request != "GET" && req.request != "HEAD" […]