README.md in pinglish-0.1.0 vs README.md in pinglish-0.2.0
- old
+ new
@@ -8,11 +8,11 @@
0. The application __must__ respond to `GET /_ping` as an HTTP request.
0. The request handler __should__ check the health of all services the
application depends on, answering questions like, "Can I query
- agains my MySQL database," "Can I create/read keys in Reds," or "How
+ agains my MySQL database," "Can I create/read keys in Redis," or "How
many docs are in my ElasticSearch index?"
0. The response __must__ return within 29 seconds. This is one second
less than the default timeout for many monitoring services.
@@ -105,11 +105,15 @@
ping.check :long, :timeout => 5 do
App.dawdle
end
# Signal check failure by raising an exception. Any exception will do.
-
ping.check :fails do
raise "Everything's ruined."
+ end
+
+ # Additionally, any check that returns false is counted as a failure.
+ ping.check :false_fails do
+ false
end
end
```