Skip to content

Instantly share code, notes, and snippets.

@phillipoertel
Created March 23, 2012 12:02
Show Gist options
  • Save phillipoertel/2170042 to your computer and use it in GitHub Desktop.
Save phillipoertel/2170042 to your computer and use it in GitHub Desktop.
passenger 3 "zero-downtime" restarts
# loop do
# start = Time.now
# `curl -s http://staging.torial.com`
# puts "Requested in #{Time.now - start}s"
# end
[...]
Requested in 0.148879s
Requested in 0.137547s
Requested in 0.165125s
Requested in 0.12983s
Requested in 4.706115s <---
Requested in 4.490508s <---
Requested in 0.205842s
Requested in 0.15193s
Requested in 0.133666s
[...]
-------------------------------------------------------
#
# ab -c 10 -n 100 staging.torial.com/
#
[...]
Complete requests: 100
[...]
Connection Times (ms)
min mean[+/-sd] median max
Connect: 38 1977 1265.7 1638 6144
Processing: 0 87 185.8 21 1293
Waiting: 0 81 185.0 16 1291
Total: 119 2065 1247.2 1673 6187
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment