Varnish 页面重新加载 (F5) 在非缓存页面上需要很长时间
情况: Varnish 2.1.4 lenny(最新稳定版)使用 mod_php 在 Debian/Apache 上成功运行。
我在该服务器上运行了多个 Drupal 站点,其中一些站点经过 Varnish 增强(例如使用 Pressflow)。这些网站按预期工作。
其他不使用反向代理的网站,当您输入地址或单击周围时加载正常,但当您使用 F5 或 Ctrl+F5 刷新页面时需要花费非常奇怪的很长一段时间(30-45 秒)来加载。
我不认为这是 VCL 配置的问题;如果我立即对这些域之一进行返回(通过),问题仍然存在。这是否与此问题有关?
Situation:
Varnish 2.1.4 lenny (latest stable) is running succesfully on Debian/Apache with mod_php.
I've got multiple Drupal sites running on this server and some are Varnish enhanced (e.g. using Pressflow). These sites work as expected.
The other sites, who aren't using the reverse-proxy, load fine when you enter the address or click around but take a really weird long time (30-45 secs) to load when you refresh the page using F5 or Ctrl+F5.
I don't think it's a VCL configuration thing; if I do a return (pass) immeditaley for one of these domains, the problem persists. Could this be related to this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
那些不使用清漆的网站还在经历这个过程吗?
为了调试,我会用 firebug 查看网络选项卡,它应该告诉你什么花费了它的时间。可能初始页面加载正常,但其他资源需要很长时间才能通过。
Are the sites that arn't using varnish still going through it?
For debugging, I would have a look at the net tab with firebug, it should give you an indication of what is taking its' time. It could be that the itial page load is fine but the other resources are taking a long time to get through.
实际上,我发现 varnish 2.1.4 在 Apache 的 Keep-Alive 功能(打开)方面存在某种问题。将其关闭解决了这两个问题!
Actually, I found out varnish 2.1.4 has some kind of problem with Apache's Keep-Alive functionalitiy (which was On). Turning it Off solved both problems!