Questions tagged [varnish]

Varnish, or strictly Varnish Cache, is a mature web server http caching reverse proxy that speeds up server replies.

Varnish Cache is a free open-source web server accelerator, using memory to hold replies, and relying on the OS to page out lesser-used information. It dates from 2006 and is in use by several major web-sites.

It has its own configuration language, VCL, and can be extended with VMOD modules, many of which are already available.

The commercial version has products based on Varnish Cache, such as Varnish Plus and Varnish API Engine.

21 questions
44
votes
2 answers

How can I tell which version of Varnish I'm running?

How can I get the installed Varnish cache version string from the command line?
TravisCarden
  • 541
  • 1
  • 4
  • 8
4
votes
1 answer

repository metadata (repomd.xml) for repository: mratwork-centalt

In My server, running Linux Redhat, I have NGINX, PHP Installed already. Now I want to install PHP-FPM, VARNISH, APC, FASTCGI as well Memcache to speed up my server for my wordpress website. I read this and so I want to install it in my…
Dharmik
  • 141
  • 1
  • 1
  • 4
2
votes
1 answer

Varnish - multiple backends for one site

Is possible with Varnish configure multiple backends for one site? For example I have high avalibility site with multiple backends. For example I have site www.goodies.com which is running on php 5.6. So I have 3 www-nodes as backend www-node5.6a…
Delirium
  • 368
  • 1
  • 5
  • 22
2
votes
2 answers

varnish configtest

Is there a way to check varnish configuration syntax without actually using the new version? I'm searching for a native varnish equivalent of apache2ctl configtest
greg0ire
  • 2,925
  • 3
  • 25
  • 37
1
vote
0 answers

NGINX -> varnish load balancer -> Apache SSL connection = BAD REQUEST

This is my setup : Server 1 = Nginx is receiving the request on port 443 and is used as a reverse proxy to send it to Varnish 5, on the same server on port 80. Varnish is load balancing requests on servers 2 and 3 (which are identical) on port…
GregOs
  • 111
  • 1
1
vote
1 answer

Install Magento 2 and Varnish on separate server

I have Two Server One which have install magento 2 (ip - 129.89.188.244 port 80) and Varnish on other server (ip - 129.89.188.245 port 80) My Vranish Configuration : File /etc/default/varnish:- DAEMON_OPTS="-a :80 \ -T 127.0.0.1:6082…
1
vote
1 answer

How to avoid repeating sed commands when adding sites to Varnish?

This is my script to install Varnish. I run it each time I raise up a new server environment on a VPS. cd ~ apt-get update apt-get install varnish -y sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf sed -i 's/\*\:80/\*\:8080/g'…
user149572
1
vote
1 answer

Error 503 Service Unavailable on Varnish, but varnishlog shows no error

I have a server running Varnish and nginx. The frontend website reports a 503 error: Error 503 Service Unavailable Service Unavailable Guru Meditation:XID: 317911182 Varnish cache server This is the content of /etc/varnish/foo.vcl: backend default…
dr_
  • 28,763
  • 21
  • 89
  • 133
1
vote
0 answers

varnishd killed by OOM, How can I configure the varnishd to avoid this problem?

The following error message is taken from my log message. varnishd server is getting killed for over use of memory. We have done all the possible settings to avoid it, Still the same problem happens with multiple VMs, not just one rare incident.…
Mani
  • 554
  • 6
  • 11
  • 26
1
vote
2 answers

What is the difference between using varnish and caching content in memcached?

Do we need to deploy varnish if our Web application is using memcached or do we need memcached if we are using varnish to cache web contents. Can someone recommend some scenarios where should we use one or the other or may be both.
Ijaz Ahmad
  • 7,146
  • 5
  • 32
  • 45
1
vote
1 answer

systemd's parameter expansion is interfering with my service's own command-line syntax

I have this unit file for running a service under systemd. [Unit] Description=Varnish HTTP accelerator log daemon After=varnish.service [Service] User=root Environment="LOG_FORMAT='\"%{X-Forwarded-For}i\" %u %t \"%r\" %s %b \"%{Referer}i\…
Youlou
  • 71
  • 6
0
votes
1 answer

The RAM load is constantly increasing. Is it possible to reduce it?

RAM load rises to 85% from 32G I have varnish and nginx installed on my server. Recently I noticed that the load on RAM is very high. I am afraid that it will continue to grow and the site will stop working. My varnish has duplicated 200 treads in…
Alice
  • 3
  • 2
0
votes
1 answer

Varnish duplicate process 170 once

I am using nginx + varnish. I noticed that I have ~ 22GB / 32GB in use. I looked in htop and noticed that there are about 170 duplicate varnish processes. Tell me what could be the problem? Where to start looking?
Alice
  • 3
  • 2
0
votes
1 answer

HAproxy + Varnish Cache configuration

need some help here. I have HAProxy that's load balancing 2 servers. HAProxy - 192.168.1.20:80 Server 1 - 192.168.1.18:80 Server 2 - 192.168.1.19:80 Now I would like to configure Varnish Cache to work with HAProxy. In the default.vcl file of Varnish…
joniop
  • 17
  • 6
0
votes
0 answers

Random Error 503 Service Unavailable on Varnish; its log shows no fetcherror

Randomly our production site encounters a 503 error; each time after a varnish service restart, the requested site comes up normally. I looked at the varnish log and all I see is "Service Unavailable" but nothing else. I'm posting a portion of the…
1
2