Skip to content

Instantly share code, notes, and snippets.

@tweibley
Created January 24, 2015 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tweibley/4f146e1cd1e8155d85ff to your computer and use it in GitHub Desktop.
Save tweibley/4f146e1cd1e8155d85ff to your computer and use it in GitHub Desktop.
{
"pools": {
"chicago": {
"servers": ["10.X.X.1:11211","10.X.X.1:11212","10.X.X.2:11211","10.X.X.2:11212","10.X.X.3:11211","10.X.X.3:11212"]
},
"ashburn": {
"servers": ["10.Y.Y.1:11211","10.Y.Y.1:11212","10.Y.Y.2:11211","10.Y.Y.2:11212","10.Y.Y.3:11211","10.Y.Y.3:11212"]
}
},
"route": {
"type": "PoolRoute",
"pool": "chicago",
"shadows": [
{
"target": "PoolRoute|ashburn",
// shadow traffic that would go to all hosts in chicago pool
"index_range": [0, 6],
// shadow requests for 100% of keys based on key hash
"key_fraction_range": [0, 1]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment