Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created April 8, 2011 03:18
Show Gist options
  • Select an option

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

Select an option

Save KristianLyng/909221 to your computer and use it in GitHub Desktop.
More trace+saintmode+random director
====================================
1. Use the random director, and weight the two web servers 10 and 1000
(giving 100 times more traffic to one than the other)
2. Watch varnishlog -i Backend to see which backend is used
3. Make 10 files only available on the secondary server (let's call them
1.txt 2.txt etc)::
for a in {1..20}; do touch $a.txt; done
4. Make sure saintmode_threshold is set (to 10, for instance)
5. Watch X-Restarts and the backend selection as you try to access the file
and the backend reaches saintmode_threshold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment