Skip to content

Instantly share code, notes, and snippets.

@kowsik
Created April 22, 2011 17:35
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 kowsik/937179 to your computer and use it in GitHub Desktop.
Save kowsik/937179 to your computer and use it in GitHub Desktop.
Using blitz.io and Tropo for scheduled load tests and alerting
# Try running a Rush (load test) from california
opts = {
:region => 'california',
:url => 'http://www.mudynamics.com',
:pattern => [{ :start => 1, :end => 10000, :duration => 120 }]
}
result = Blitz::Curl::Rush.execute(opts)
last = result.timeline.last
if last.errors or last.timeouts
# Do something about this!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment