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
5
votes
2 answers

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 fails with the stack that we're currently…
heymatthew
  • 187
  • 2
  • 6
5
votes
0 answers

Intermittent proxy error in Apache: "Partial results are valid but processing is incomplete" with "AH01110: error reading response"

I'm using Apache 2.4.43 on CentOS 7.8 with Varnish 6 and PHP-FPM to serve a Magento 2 website. Varnish listens on port 80. Apache listens on 8080 to serve content to Varnish, and also port 443 which proxies HTTPS requests to Varnish like…
WackGet
  • 217
  • 4
  • 12
4
votes
1 answer

Apache2 + Varnish 5 + phpmyadmin causes Segmentation fault (11) - ERR_EMPTY_RESPONSE

I setup up everything the varnish book recommends for a webserver (Debian 8 (jessie), 8 GB Memory, 100GB SSD, Mysql 5.7, PHP 70.13, Apache2, opcache (256M)). Varnish uses 256 MB of RAM, Apache has no restrictions in how many workers should be used…
Steve
  • 61
  • 6
4
votes
1 answer

How to show list of installed/loaded varnish vmod's names in command line?

I installed varnish 4.1 and compiled some vmods in a linux (ubuntu14 and centos7). Now I want to check list of installed vmod or loaded vmod to check if they are properly installed, recognized properly by varnish and loaded. I'm aware that # ls -al…
4
votes
1 answer

Varnish 503 Backend Fetch Failed when varnish 4.1 is started as service on Debian 8

I am new to varnish. Whenever I am trying to acess our backend via varnish I am getting the below error:- 503 Backend fetch failed

Error 503 Backend fetch failed

tuk
  • 333
  • 5
  • 18
4
votes
1 answer

NginX->Varnish->PHP-FPM Blank pages

I want to put nginx in front of Varnish, which at the same time will go back to nginx to serve some PHP (Drupal). But I am only getting blank pages (from Varnish) with 200 response, but length 0. Only the first access after restarting varnish works,…
Cesc
  • 191
  • 9
4
votes
2 answers

Varnish with MediaWiki not caching

I'm trying to use varnish cache to cache a mediawiki page for logged in users. I use ubuntu 14.04, varnish 4.0.3 (port 80) and nginx as a webserver (port 8080). As a vcl I copied the configuration from mediawiki.org and with my limited understanding…
Florian
  • 113
  • 10
4
votes
1 answer

Adding varnish causes IIS to slow down with less traffic?

We are trying to put varnish in front of our IIS 7.5 farm. Said farm handles 3 websites (SiteA, B and C) - varnish is going in front of A only. When we add varnish, we get a 75-90% hit ratio but our IIS farm actually slows down so much that the…
Nate Fox
  • 193
  • 2
  • 7
4
votes
1 answer

Cannot install Varnish on CentOS 7

I am trying to install Varnish 4 on CentOS 7. I first added these rpm: sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/jemalloc-3.6.0-1.el6.x86_64.rpm sudo rpm -iUvh…
jnbdz
  • 927
  • 5
  • 24
  • 46
4
votes
3 answers

How can I synchronize 2 web server files with load balance?

I need to setup a website with load balance to accommodate more visitors, I've seen on forums that varnish(balance)->apache(web1&2)->mysql(dbserver) is the way to go. I know how to setup varnish->single webserver->mysql but not two web server to…
shinmac
  • 73
  • 1
  • 2
  • 5
4
votes
1 answer

How to configure Varnish not to cache a particular folder?

I would like to set up Varnish as reverse proxy cache for Apache. How can I setup Varnish so that it does not cache content from a particular folder (and its subfolders), let's say /public_html/shop/
OC2PS
  • 539
  • 2
  • 9
  • 21
4
votes
1 answer

Varnish does not recognize req.hash

I have Varnish 3.0.2 on Redhat and service varnish start fails after I added vcl_hash section. I did varnishd and then loaded the vcl using vcl.load vcl.load default default.vcl Message from VCC-compiler: Unknown variable 'req.hash' At: ('input'…
eternaltyro
  • 262
  • 2
  • 14
4
votes
1 answer

Varnish + Tomcat vs Apache + mod_jk + Tomcat

Does anyone have some performance metrics for Varnish in front of 1) Tomcat or 2) Apache with mod_jk (connected to Tomcat). I know that the AJP connector is supposedly faster than HTTP, but I was thinking that Varnish which is lighter and highly…
Adrian Ber
  • 305
  • 2
  • 5
  • 16
4
votes
1 answer

how to disable varnish X Forwarded For header

i am using nginx <=> varnish <=> apache i am passing client IP to varnish via nginx proxy_set_header X-Forwarded-For $remote_addr; but varnish also adding X-Forwarded-For as 127.0.0.1 so apache showing 2 IPs comma based. i need IP send by nginx only…
hebrew878
  • 53
  • 1
  • 4
4
votes
2 answers

HAProxy URI balancing isn't very balanced

I'm attempting to use HAProxy 1.4.22 with URI balancing and hash-type consistent to load balance between 3 varnish cache backends. My understanding is that this will never accomplish a perfect balance between servers but it should be better than the…
Pax
  • 335
  • 2
  • 8