Questions tagged [varnish]
Varnish is a high-performance reverse proxy and load-balancer package for Linux/Unix systems.
940
questions
10
votes
7
answers
9k
views
Varnish -> Nginx -> Apache a good idea?
I'm thinking about the architecture for a new Webserver. Would having Varnish as a cache in front of Nginx as a reverse-proxy and serving static files in front of apache for all heavy lifting be a ...
3
votes
2
answers
3k
views
Varnish does not start properly (crashes after startup) with no error messages
I am running Varnish (2.0.4 from the Ubuntu unstable apt repository, though I have also used the standard repository) in a test environment (Virtual Machines) on Ubuntu 9.10, soon to be 10.04.
When ...
2
votes
1
answer
1k
views
varnish: Alter response body
I need to rewrite the response received by the backend in varnish. The C-function is ready, embedded in the configuration file, and passes tests run on response headers. But I need to access the body ...
1
vote
1
answer
574
views
Varnish send while cache
I wanted the varnish download the file to the cache while sends to client. From what I am seeing, it first download and then send the file, and that with very large files, is slow.
(sorry for english,...
1
vote
1
answer
257
views
Need Varnish configuration advice
I need some advice here for default.vcl. Here's the rules:
Only cache pages with urls that contains '/c/', the rest will pass
Set the cache expiry to 3 hours
Only cache and serve from cache if cookie ...
1
vote
3
answers
3k
views
varnish demon error: libvarnish.so.1 not found
In order to try out varnish for an upcoming project I installed it on an ubuntu server using this tutorial: http://varnish-cache.org/wiki/InstallationOnUbuntuDapper
The build process worked without ...
3
votes
3
answers
2k
views
How do you cache web pages with a personalized header using caching reverse proxy such as Squid, Varnish, or Nginx
Pretty much every page of my website is dynamically generated. However they don't change that frequently (kinda similar to a forum page). So I'd like to cache them using a caching reverse proxy such ...
8
votes
3
answers
25k
views
Use Varnish Cache only on-disk
The situation is:
I' m building a PHP application and need http caching.
Varnish is great and lots of people tell me that Varnish stores the cached data in RAM. I want it to cache on hard disk.
Is ...
0
votes
1
answer
420
views
how can i cahe one more web site on same backend server (web server) with varnish?
i have one web server which is IIS that is back on varnish. there are more web sites on ISS. there are all web sites header's on IIS and all web sites publish from port 80. can i cache all web site by ...
2
votes
2
answers
562
views
can i cache two diffrent web sites on varnish cache server?
i have two web web sites and i want to cache them with varnish. could i cache them on same varnish with using same port? for example; www.domain1.com:80, www.domain2.com:80
2
votes
1
answer
8k
views
Varnish VCL Reload Fails After Adding Second Backend
I have been running Varnish on my production server successfully for several weeks now. Now I'm trying to configure Varnish to use a second backend for certain requests. My original working VCL (/...
5
votes
2
answers
7k
views
WebDav rename fails on an Apache mod_dav install behind NginX
I'm trying to solve a problem with renaming files over WebDav. Our stack consists of a single machine, serving content through Nginx, Varnish and Apache. When you try to rename a file, the operation ...
2
votes
3
answers
3k
views
How much RAM required by Varnish?
I'm using Apache for serving static files. Apache2 require too much RAM.
I want to reduce the RAM usage.
I don't have experience with Varnish. It's said to be faster. I don't know how Varnish works.
...
4
votes
3
answers
9k
views
Ignoring GET parameters in Varnish VCL
Okay: I've got a site set up which has some APIs we expose to developers, which are in the format
/api/item.xml?type_ids=34,35,37®ion_ids=1000002,1000003&key=SOMERANDOMALPHANUM
In this ...
4
votes
2
answers
3k
views
How to setup Nginx with Varnish
I'd like to see how to configure Nginx and Varnish.
I'm running several PHP sites and Rack-Sinatra sites as virtual hosts across two IP's.
I'd like to prevent Nginx from having to serve static files,...
11
votes
5
answers
23k
views
Does Varnish require much RAM?
Other than virtual memory, How about RAM usage for Varnish?
Is it much RAM needed?
6
votes
4
answers
11k
views
How do I get varnish to return in the http response header from which backend it took the response?
I have three servers in the backend, with a round robin director.
I would like varnish to write a X-Server-By header with the name or ip of the server from which the response was fetched, how can ...
1
vote
3
answers
3k
views
Getting live traffic/visitor analytics when using a reverse proxy
I'm in process of implementing Varnish as a reverse proxy for a Ruby on Rails app and I'm using Google Analytics (JS/client side script to record visitor data) but it's several hours delayed so its ...
5
votes
5
answers
6k
views
Nginx, Varnish, ESI - Will that work?
I've serveral backends (one is nginx+passenger) to combine via ESI. Since I don't want to go without gzip/deflate and SSL varnish can't do the job out of the box. So I thought about the following ...
7
votes
6
answers
15k
views
How many reverse proxies (nginx, haproxy) is too many?
I'm setting up a HA (high availability) cluster using nginx, haproxy & apache.
I've been reading great things about nginx and haproxy. People tend to choose one or the other but I like both. ...
13
votes
4
answers
8k
views
Nginx Varnish Nginx Django?
I have a django app and I want to to setup Varnish on a server in front of it. In another serverfault thread somebody suggested putting Nginx in front of Varnish.
Should I put Nginx in front of ...
2
votes
3
answers
1k
views
Put caching web server in vmware?
We are having to make a design choice in our web environment. At this moment we are stuck at a discussion if we CAN put the varnish caching server into the vmware environment or on dedicated hardware.
...
2
votes
1
answer
3k
views
Nginx running behind Varnish and x-forwarded-for, how do I fool nginx?
I have a setup where I'm looking at running nginx behind a varnish cache. I currently use apache instead of varnish and use x-forwarded-for to have apache tricked into thinking the remoteip is the ...
2
votes
6
answers
2k
views
Fail-over caching reverse proxy
Is there a way to configure varnish or any other caching reverse proxy, to serve pages from its cache when the back-end fails? At the moment, if the back-end goes down a 503 Service Unavailable error ...
1
vote
1
answer
501
views
Serving http content files locally instead of off external servers
When building our web pages from different content sources, it may be necessary to get some images from external servers (e.g. when incorporating a rss feed), which may not be as fast or as well ...
0
votes
3
answers
3k
views
Setting up monit to work with Varnish and nginx
I have a problem with monit where occasionally Varnish will crash and refuse to start. So Varnish is dead and my webserver is inaccessible. Here's the message from the monit log:
info : 'varnish' ...
21
votes
3
answers
31k
views
How to check if chosen Varnish cache size is ideal?
I've configured my Varnish cache to use a cache size of 512 MB, using:
varnishd ... -s file,/var/cache/varnish.cache,512M
Questions:
How do I monitor if 512 MB is too small, too big or okay?
How do ...
7
votes
3
answers
13k
views
Configuring Varnish to rewrite Expires/Cache-Control headers for client-side caching
How do I configure Varnish so that all responses to requests matching say "*.css" gets cached in the client's browser for 30 days?
What I'm trying to achieve is making Varnish set the correct "...
1
vote
4
answers
615
views
Cheap scaling techniques using open-source software
What are your favourite techniques to improve scalability of highly websites?
I have compiled the following list for techniques I've used using open-source tools:
1.) Caching full-page reverse-proxy ...
12
votes
6
answers
38k
views
Simple way of restarting crashed processes?
I need to monitor several processes running on my webserver. For some reason, varnish currently crashes once every day or two. I'm using monit to supposedly restart varnish automatically, but it doesn'...
5
votes
2
answers
9k
views
Need HAproxy + Varnish + nginx setup suggestions
Currently, I have two load balancers running HAProxy, which forward requests to backends, each of which run Varnish cache in front of nginx. I thought this would distribute most the bandwidth across ...
5
votes
2
answers
10k
views
Varnish configuration to only cache for non-logged in users
I have a Ruby on Rails application fronted by varnish+nginx. As most of the sites content is static unless you are a logged in user, I want to cache the site heavily with varnish when a user is logged ...
1
vote
2
answers
6k
views
How does Varnish cache handle different domains?
I just started reading about Varnish and am considering using it as a frontend to my webservers. I have multiple domains on my webserver that fetch the same content when the same query strings are ...
4
votes
7
answers
5k
views
Scaling large file downloads?
We currently deliver large (1GB+) files via a single Apache server, but our Apache server is extremely disk-IO-bound and we need to scale.
My first idea was to simply duplicate this Apache server, ...
2
votes
2
answers
2k
views
Gzip vs. Reverse Proxy Cache
I have a mostly static site running on Ruby on Rails that is using the Varnish reverse proxy cache to save on hits to the Rails backend.
The problem is that a user can login to the site and when they ...
1
vote
2
answers
2k
views
Easiest way to evaluate Varnish using virtualized linux guest on Windows XP host?
I have seen a lot of interesting references to Varnish and would like to play with it. However, I run Windows XP and don't have an extra machine available to run linux, nor do I have much linux skill....
152
votes
13
answers
184k
views
How to set up Nginx as a caching reverse proxy?
I heard recently that Nginx has added caching to its reverse proxy feature. I looked around but couldn't find much info about it.
I want to set up Nginx as a caching reverse proxy in front of Apache/...
3
votes
3
answers
5k
views
Logging behind a reverse proxy?
I am currently running Varnish as a reverse proxy in front of our development website, testing before deployment into production. One of the things I've had to come to grips with is logging: in a ...
13
votes
2
answers
5k
views
Varnish versus other reverse proxies
I'm working with an organisation that has deployed Varnish as a caching reverse proxy for all of their web traffic. Their traffic make up is a lot of customer-generated dynamic websites, with the ...
6
votes
3
answers
4k
views
Tools for introspecting Varnish
Has anyone developed, or does anyone know of, any third-party tools (or non-obvious uses of the stock tools) to help a poor systems administrator determine what's going on with requests that are ...