Questions tagged [varnish]

Varnish is a high-performance reverse proxy and load-balancer package for Linux/Unix systems.

Varnish is primarily a caching reverse proxy, but also exhibits load-balancing and backend checking mechanisms and is very widely used on high traffic websites.

Varnish was designed from the ground to be a high performance reverse caching proxy and to not compete with the operating system on managing resources like memory. Most recent versions of Varnish support storing cache on memory or disk, and serving old content in case of backend fail (saint mode), among other features.

Varnish is written by Poul-Henning Kamp (PHK), and his Architect Notes are available about varnish design. PHK is also a well known FreeBSD kernel developer and mantainer.

937 questions
0
votes
4 answers

Varnish / Apache redirecting to backend port 8080

I'm running Varnish 2 with Apache backend at 8080 on the same machine. Everything is working fine, except one problem: Sometimes Apache(?) is redirecting to backend port :8080 especially when I'm using htaccess. Users are displayed the 8080 port in…
deko
0
votes
1 answer

Nginx+PHP-FPM+APC+Varnish+Memcached: High Mem/Swap consumption?

I've got running a VPS at Linode with 1024 MB RAM, Ubuntu 11.04 and Nginx+PHP-FPM+APC Varnish+Memcached active. I've setup a couple of test blogs with WordPress 3.2.1 and everything works, and the performance tests seem promising: # ab -n 1000 -c…
javipas
  • 1,332
  • 3
  • 23
  • 38
0
votes
3 answers

Architecture question: adding SSL into the mix

Currently we have a configuration that at the highest level looks like this: [Traffic] -> Varnish (caching) -> HaProxy (load balancing) -> Apache (content and services) There are (obviously?) multiple Apache servers and in general they provide two…
user90581
  • 3
  • 1
0
votes
3 answers

Varnish: cached and non-cached subdomains

We havie Plone site coming through Varnish front end cache. We'd like to give two different subdomains www.site.com and editors.site.com for this site. The latter would always be serving non-cached versions of the pages and used by the site…
Mikko Ohtamaa
  • 1,374
  • 3
  • 17
  • 28
0
votes
1 answer

Protect Hotlink on Varnish

I'm using varnish to cache static content such as : image, css, js .... I am trying to prevent hot linking of images on our site. Please help me config on varnish. Thanks !
LongIT
  • 1
0
votes
2 answers

Make apache on cPanel listen to 8080

I'm setting up a server with cPanel and would like for apache to listen to port 8080 by default instead of port 80. (This is because I want to setup varnish cache to listen on 80 and direct traffic through it to the 8080 apache). I can probably go…
recluze
  • 365
  • 8
  • 18
0
votes
1 answer

Drupal/pressflow VPS set-up

I'm about to port a high traffic website to Drupal v6.x (maybe 7.x) on a VPS. I have a bit of experience with Linux in the name of Ubuntu. Of course I can relay on a managed VPS package. How ever I would like to pick the best set-up. The VPS…
mach3
  • 1
  • 1
0
votes
1 answer

Varnish caching one vhost but not another?

I have a default vhost setup on my Debian box (a demo, I wanted to see how Varnish caching works and whether it could solve a speed problem). All was well with the default host, lots of cache hits and the occasional miss. Cool. So I added a vhost…
0
votes
1 answer

Help With Adding Mobile User Agent Exceptions To Varnish-Cache

This is the code I've added to the vcl file, so that it caches content for desktop users and mobile users separately: if (req.http.User-Agent ~…
user88753
0
votes
1 answer

Mounting NFS directory causes creating Zero byte files

I have two Servers, Server X (IP 192.168.1.1) and Server Y (IP 192.168.1.2), both of them are ubuntu 9.1 i have created varnish load balancer on them for my drupal website (pressflow 6.22) I have mounted a directory of imagecache from server X to Y…
Alaa Alomari
  • 638
  • 6
  • 19
  • 37
0
votes
2 answers

In Varnish stats, what does "Backend conn. reuses" and "recycles" mean?

I have varnish installed and I think it's working properly (not sure if it matters but I am using iptables reroute method to route ports incoming:80 > varnish:8080 > apache:80 Anyway, In varnishstat I see a pretty high Hitrate average (60-80%) which…
electblake
  • 113
  • 8
0
votes
1 answer

varnish serving static files from subdomains for better page load speed

Optimizing page load speed practices include to load static assets, like images, css, js, from subdomains, so to increase performance, by using cookieless domains, but most importantly by having parallel downloads from the browser. I use varnish…
john
  • 137
  • 5
0
votes
1 answer

Checking if process has not been running for a certain period of time

What's good "ghetto process monitor" without installing any additional software besides cron and some standard UNIX tools? I.e. check in a shell script if a certain process has died and been dead for a while to restart it? This would be to restart…
Mikko Ohtamaa
  • 1,374
  • 3
  • 17
  • 28
0
votes
1 answer

Need a little advice with apc, node.js, varnish, memcached, nginx

Just need a little advice here if anyone can help. Currently i have nginx running on a virtual private server, i am looking into installing node.js so i can use AjaxIM (http://ajaxim.com/) , and installing memcached, apc, and varnish. The main page…
mcbeav
  • 23
  • 8
0
votes
2 answers

Varnish and Browser Exceptions

I currently run a website behind a Varnish server, It contains a few browser conditions for Internet Explorer 6. Unfortunately Varnish is caching the first version it serves without taking into account the conditions. Is there any way I can…
mnml
  • 337
  • 1
  • 7
  • 21