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
3
votes
0 answers

Varnish cache objects expiring while in stale-while-revalidate grace period

I have added Varnish 4.0 to a CentOS 6 server running cPanel to cache a website I have developed. I am trying to implement stale-while-revalidate to ensure that all users are served a cached version of a page, so that if the max-age of 2 minutes has…
Alex H
  • 31
  • 3
3
votes
1 answer

How can I view n_lru_nuked in varnish 3.0.5?

I'm trying to monitor varnish cache evictions and can't seem to find out how to view the n_lru_nuked counter on varnish 3.0.5. varnishstat isn't finding the counter: $ varnishstat -f n_lru_moved,n_lru_nuked 0+21:44:54 Hitrate ratio: 1 …
Andy Brown
  • 133
  • 5
3
votes
0 answers

Optimal server stack for Wordpress

There are numerous tutorials/articles(some even with benchmarks) on how to create an optimized stack to run Wordpress(or any dynamic site, for that matter). The site doesn't get frequently updated(best case scenario one article per week), so a long…
3
votes
2 answers

nginx > varnish > hhvm

I have nginx on the front end interpreting ssl and redirecting all non https traffic to https: server { listen 80; server_name example.com www.example.com; return 301 https://www.example.com$request_uri; } from there the next server…
user44176
  • 41
  • 5
3
votes
1 answer

How to make varnish 4.0 work with nginx and pagespeed

I am trying to setup Varnish 4 + Nginx with mod_pagespeed. I am using the following config for Varnish 4 as per this document : https://developers.google.com/speed/pagespeed/module/downstream-caching The config I am using gives no errors, but I get…
Pyth Phytho
  • 63
  • 1
  • 2
  • 8
3
votes
1 answer

NginX/Varnish and Auto Caching

Let's say we have a wordpress site example.com On our site, there are multiple products. Urls look like this: example.com/products/product-1/ example.com/products/product-2/ example.com/products/product-3/ etc... For the sake of example, let's…
Jimbotron
  • 87
  • 1
  • 1
  • 10
3
votes
4 answers

Varnish on 80, nginx on 8080, on which port to put jenkins?

On my staging server, I have Varnish + Nginx. They are on port 80 and 8080. Given that I have to install jenkins, on which port I have to bind it ? (which is usually 8080 but it's already taken)
Tristan
  • 498
  • 2
  • 9
  • 27
3
votes
4 answers

Varnish won't start as service but works fine from command line?

We're trying to setup a varnish on a Cent OS 6.5 64 but can't get it working as a service. What could be the reason for the following error? [root@server]# service varnish start Starting Varnish Cache: 0 …
Jonas Stensved
  • 223
  • 2
  • 6
  • 17
3
votes
1 answer

Real IP addresses from Varnish + Cloudflare

I'm trying to edit the default.vcl file to get the real client IP addresses to show up in my Wordpress. I found this online and I read a lot of pages on this but have failed to make this work. I'm using varnish-4.0.1 revision 4354e5e. I added this…
hpb
  • 43
  • 1
  • 5
3
votes
2 answers

Getting "The page you are looking for is temporarily unavailable. Please try again later"

I have a vps running Ubuntu+LEMP+Varnish. Everything was fine untill I updated the server software. Now I am getting "The page you are looking for is temporarily unavailable. Please try again later" on every pages. (Header response is 502) I tried…
Anand Kumar
  • 145
  • 1
  • 1
  • 7
3
votes
4 answers

Varnish ACLs Behind Load Balancer Based on Client's IP

In the following setup: Client -> LB -> Varnish I would like to configure Varnish acls to take certain action based on the Client's IP. The LB sends the client's IP in a variable called "ClientIP", which Varnish can read via req.httpd.ClientIP. I…
KM.
  • 1,786
  • 2
  • 18
  • 31
3
votes
4 answers

Varnish as Reverse Proxy Server for Rubygems

I want to setup a cache server for Rubygems, as I'm currently based in Vietnam and the international internet connections are pretty slow. I have been trying to get this done via Varnish, but after hours of googling and trying various things I'm…
Sebastian
  • 131
  • 1
3
votes
2 answers

How to disable Varnish

I have installed Varnish in my WordPress Ubuntu EC2 instance as described in this guide: http://jeffreifman.com/detailed-wordpress-guide-for-aws/install-varnish/ I do have many issues with Varnish and would like to disable Varnish. I tried to undo…
AlexR
  • 173
  • 2
  • 2
  • 7
3
votes
3 answers

Caching PHP pages, Varnish, nginx, other?

I have a web application running on a low end box (1gb RAM), serving a mixture of static and dynamic (php) pages. These PHP pages are querying a MYSQL database which does not change often at all - once a week?. I am looking to do a fair amount of…
Coffeee
  • 41
  • 2
3
votes
2 answers

Varnish configure a backend to have multiple probes?

Is it possible in Varnish 3 to configure a backend to have multiple probes? I have multiple varnish servers and multiple backend servers running Drupal. I've configured a basic 1 second interval healthcheck PHP file to verify the health of the…
Highway of Life
  • 506
  • 1
  • 7
  • 14