Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Recent observations indicate two main issues with our Varnish cache:

  1. Unpredictable cache coverage: Why is it that some pages are served from cache and others aren't? What exactly is cached? Under what conditions are things that were cached dropped?
  2. Different cache responses from different slaves: Refreshing the screen repeatedly can 'toggle' between two different versions of the truth

A suggested process to improve the performance of Varnish includes:

  1. Understand how Varnish is currently working
  2. Identify improvements
  3. Prioritise the improvements
  4. Implement the highest priority
  5. Remeasure performance
  6. Return to step 4

Understand how Varnish is currently working

Answering the following questions will enrich our understanding of Varnish

  1. What version of Varnish are we running? Maybe also the versions of the other components on each slave?
  2. What are the machine/server specifications/resources?
  3. How are the two instances syncing?
  4. What are the exact rules/settings that are enabled or in place?
    1. What is being cached? Images? Video? PDF? Search results?
    2. With what conditions?
    3. Once a piece of content has been cached in Varnish, under what conditions does it drop out of the cache or requested again from Squiz?
    4. How long does a cached resource stay in the cache?
  5. How does Varnish treat Squiz's HTTP header? For example, does anybody know why the standard headers I see in the console have an "Cache-control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0" and "Expires:Thu, 29 Apr 1982 00:00:00 GMT"

Identify improvements

  • No labels