<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ops on Varnish Cache</title><link>https://www.varnish.org/docs/tutorials/tags/ops/</link><description>Recent content in Ops on Varnish Cache</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 09 May 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://www.varnish.org/docs/tutorials/tags/ops/index.xml" rel="self" type="application/rss+xml"/><item><title>VSL cheatsheet</title><link>https://www.varnish.org/docs/tutorials/vsl-cheatsheet/</link><pubDate>Wed, 29 May 2024 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/tutorials/vsl-cheatsheet/</guid><description>&lt;p&gt;This page explains a few options common to VSL tools and provides ready-to-use VSL queries to simplify the first steps around the
Varnish Shared Log.&lt;/p&gt;
&lt;h2 id="concepts"&gt;Concepts&lt;/h2&gt;
&lt;p&gt;For performance reasons, Varnish doesn&amp;rsquo;t write log files. Instead, it outputs
them in an in-memory circular buffer. Other processes can then read this buffer
and decide what to do with the information.&lt;/p&gt;
&lt;p&gt;This translates into a few points:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;logging is extremely fast and doesn&amp;rsquo;t slow down the main process&lt;/li&gt;
&lt;li&gt;this allows you to log a great deal of data for each transaction&lt;/li&gt;
&lt;li&gt;another tool is needed to collect/process the logs&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="varnishlog"&gt;varnishlog&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;varnishlog&lt;/code&gt; is not the tool you want to collect logs to store. However, it is the
perfect choice to obtain debugging data thanks to the vast amount of data
it produces.&lt;/p&gt;</description></item><item><title>Mixed content and ERR_TOO_MANY_REDIRECTS errors in WordPress when using Varnish</title><link>https://www.varnish.org/docs/tutorials/mixed-content-err-too-many-redirects-wordpress-varnish/</link><pubDate>Tue, 05 Dec 2023 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/tutorials/mixed-content-err-too-many-redirects-wordpress-varnish/</guid><description>&lt;p&gt;If you’re running a &lt;a href="https://www.varnish.org/"&gt;WordPress&lt;/a&gt; site and use Varnish without TLS support, there are 2 typical issues you may encounter when it comes to offloading TLS: &lt;em&gt;mixed content&lt;/em&gt; and the dreaded &lt;code&gt;ERR_TOO_MANY_REDIRECTS&lt;/code&gt; error. Both issues are related to a lack of TLS awareness in the stack.&lt;/p&gt;
&lt;p&gt;This tutorial will show you how to tackle both issues and how to create TLS awareness in a situation where both WordPress and Varnish might be lacking that awareness.&lt;/p&gt;</description></item><item><title>Hands-on varnishtest</title><link>https://www.varnish.org/docs/tutorials/hands-on-varnishtest/</link><pubDate>Fri, 09 May 2025 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/tutorials/hands-on-varnishtest/</guid><description>&lt;p&gt;This tutorial will help you dive into &lt;a href="https://www.varnish.org/docs/tutorials/testing-varnish-varnishtest/"&gt;varnishtest&lt;/a&gt; using self-contained and concrete examples that you can run on your own computer. Each test case adds more layers and is duly commented so you can explore on your own.&lt;/p&gt;
&lt;p&gt;The supporting files can be found in &lt;a href="https://github.com/varnish/vtc-examples"&gt;this repository&lt;/a&gt; and are linked to at the beginning of each section.&lt;/p&gt;
&lt;h2 id="1-the-most-basic-test-case"&gt;1. The most basic test case&lt;/h2&gt;
&lt;p&gt;Let&amp;rsquo;s start with &lt;a href="https://github.com/varnish/vtc-examples/blob/main/basic-001.vtc"&gt;basic-001.vtc&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;# lines starting with a # are comment, they are ignored by varnishtest,
# same as empty lines

# every vtc MUST start with a &amp;#34;varnishtest DESCRIPTION&amp;#34; line

varnishtest &amp;#34;This does nothing&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;We can run this with &lt;code&gt;varnishtest basic-001.vtc&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>Generating Varnish access logs with varnishncsa</title><link>https://www.varnish.org/docs/tutorials/varnish-access-logs-varnishncsa/</link><pubDate>Tue, 18 Jun 2024 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/tutorials/varnish-access-logs-varnishncsa/</guid><description>&lt;p&gt;Because Varnish sits in front of the web server and caches its output, the access logs of the web server no longer give the full picture of your site&amp;rsquo;s traffic. Only cache misses and bypassed requests will end up in the log.&lt;/p&gt;
&lt;p&gt;To ensure that these logs still get generated in spite of the cache, the &lt;code&gt;varnishncsa&lt;/code&gt; program can be used.&lt;/p&gt;
&lt;h2 id="the-varnish-shared-memory-log"&gt;The Varnish Shared Memory Log&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;varnishd&lt;/code&gt; process reserves &lt;em&gt;shared memory&lt;/em&gt; for logging by creating and mapping files in a &lt;code&gt;tmpfs&lt;/code&gt; memory file system. The files are subsequently mapped by &lt;em&gt;log consumers&lt;/em&gt; like &lt;code&gt;varnishlog&lt;/code&gt;, &lt;code&gt;varnishncsa&lt;/code&gt;, and &lt;code&gt;varnishstat&lt;/code&gt; in read-only mode, allowing them to get information and logs from &lt;code&gt;varnishd&lt;/code&gt; without affecting the caching process. These files are collectively know as &lt;em&gt;Varnish Shared Memory (VSM)&lt;/em&gt;. The part of the VSM responsible for communicating information about the traffic flowing through Varnish is called the &lt;em&gt;Varnish Shared Memory Log (VSL)&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Configuring Varnish systemd services</title><link>https://www.varnish.org/docs/tutorials/configuring-varnish-systemd-services/</link><pubDate>Fri, 17 May 2024 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/tutorials/configuring-varnish-systemd-services/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;On modern Linux OS distributions, systemd is the default init system, replacing SysV. The following tutorial aims to show some methods to manage configuration of systemd-based services.
Newer packages supplied by Varnish Software have moved away from external files containing startup parameters to the systemd best practice of keeping the parameters in the system &lt;code&gt;.service&lt;/code&gt; file.
The guide shows how to manage the Varnish systemd service including how to configure startup parameters. Even though the Varnish service is the focus of this guide, the methods are applicable to any other similar service.&lt;/p&gt;</description></item><item><title>Varnishlog: measure your Varnish cache performance</title><link>https://www.varnish.org/docs/tutorials/varnishlog/</link><pubDate>Tue, 08 Aug 2023 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/tutorials/varnishlog/</guid><description>&lt;p&gt;Varnish sits in front of the web server or application server and caches its output. As a result, the logs of the web server no longer paint a complete picture of your site&amp;rsquo;s traffic.&lt;/p&gt;
&lt;p&gt;Although cache misses and cache bypass still appear in the logs, there is a need for logging on the edge. And that&amp;rsquo;s where &lt;code&gt;varnishlog&lt;/code&gt; comes into play. Not just as a replacement for your web server logs, but also as a powertool to perform in-depth analysis of your requests, responses, backend fetches, backend health and caching behavior.&lt;/p&gt;</description></item><item><title>Troubleshooting Varnish</title><link>https://www.varnish.org/docs/tutorials/troubleshooting-varnish/</link><pubDate>Tue, 04 Jan 2022 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/tutorials/troubleshooting-varnish/</guid><description>&lt;p&gt;Varnish is incredibly stable, but that doesn&amp;rsquo;t mean troubleshooting doesn&amp;rsquo;t have to take place. On rare occassions crashes may occur. Based on the available server resources and traffic patterns, misconfigured runtime parameters may cause unwanted behavior.&lt;/p&gt;
&lt;p&gt;Crashes rarely occur, but when they do, you need to figure out what&amp;rsquo;s going on.&lt;/p&gt;
&lt;p&gt;Even when Varnish is stable, the hit rate of the cache might be too low for your liking.&lt;/p&gt;
&lt;p&gt;There are many ways to perform troubleshooting: from panic inspection, to &lt;em&gt;Varnish Shared Memory Logs (VSL)&lt;/em&gt;, to monitoring metrics.&lt;/p&gt;</description></item><item><title>Varnish monitoring</title><link>https://www.varnish.org/docs/tutorials/varnish-monitoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/tutorials/varnish-monitoring/</guid><description>&lt;p&gt;There are multiple tools and metrics available to monitor a Varnish installation.
This tutorial provides information on important counters that will
assist in
monitoring vital aspects of a Varnish installation.&lt;/p&gt;
&lt;p&gt;There are various commands that can be used to access additional information. Each option will be explained the first time it&amp;rsquo;s encountered, but you can find a more complete description in the &lt;code&gt;man&lt;/code&gt; page of each tool.&lt;/p&gt;
&lt;h2 id="varnishlog"&gt;varnishlog&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://www.varnish.org/docs/reference/varnishlog/"&gt;varnishlog&lt;/a&gt; is in charge of presenting transaction logs in the most verbose way possible. This is a prime source of information for debugging.&lt;/p&gt;</description></item></channel></rss>