Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created April 8, 2011 02:53
Show Gist options
  • Select an option

  • Save KristianLyng/909200 to your computer and use it in GitHub Desktop.

Select an option

Save KristianLyng/909200 to your computer and use it in GitHub Desktop.
Testing saint-mode
==================
1. Add a X-restarts header to the response.
2. Make a file available only on one web server. Don't cache it.
3. Set up saint mode so Varnish adds 404 responses to saintmode, then
restarts. (Set a low value for saint-mode for easy test, 5s for
instance)
4. Try accessing the file through varnish and watch the X-Restarts
header. If saint-mode works, you should get a maximum of one restart
every 5s (assuming 5s saint-mode period).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment