firenxis-god 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. data/Announce.txt +135 -0
  2. data/History.txt +393 -0
  3. data/README.txt +59 -0
  4. data/Rakefile +142 -0
  5. data/bin/god +132 -0
  6. data/ext/god/.gitignore +5 -0
  7. data/ext/god/extconf.rb +55 -0
  8. data/ext/god/kqueue_handler.c +125 -0
  9. data/ext/god/netlink_handler.c +168 -0
  10. data/god.gemspec +164 -0
  11. data/lib/god.rb +701 -0
  12. data/lib/god/behavior.rb +52 -0
  13. data/lib/god/behaviors/clean_pid_file.rb +21 -0
  14. data/lib/god/behaviors/clean_unix_socket.rb +21 -0
  15. data/lib/god/behaviors/notify_when_flapping.rb +51 -0
  16. data/lib/god/cli/command.rb +256 -0
  17. data/lib/god/cli/run.rb +172 -0
  18. data/lib/god/cli/version.rb +23 -0
  19. data/lib/god/compat19.rb +36 -0
  20. data/lib/god/condition.rb +96 -0
  21. data/lib/god/conditions/always.rb +23 -0
  22. data/lib/god/conditions/complex.rb +86 -0
  23. data/lib/god/conditions/cpu_usage.rb +80 -0
  24. data/lib/god/conditions/degrading_lambda.rb +52 -0
  25. data/lib/god/conditions/disk_usage.rb +32 -0
  26. data/lib/god/conditions/file_mtime.rb +28 -0
  27. data/lib/god/conditions/flapping.rb +128 -0
  28. data/lib/god/conditions/http_response_code.rb +168 -0
  29. data/lib/god/conditions/lambda.rb +25 -0
  30. data/lib/god/conditions/memory_usage.rb +82 -0
  31. data/lib/god/conditions/process_exits.rb +72 -0
  32. data/lib/god/conditions/process_running.rb +74 -0
  33. data/lib/god/conditions/tries.rb +44 -0
  34. data/lib/god/configurable.rb +57 -0
  35. data/lib/god/contact.rb +114 -0
  36. data/lib/god/contacts/campfire.rb +121 -0
  37. data/lib/god/contacts/email.rb +136 -0
  38. data/lib/god/contacts/jabber.rb +75 -0
  39. data/lib/god/contacts/prowl.rb +57 -0
  40. data/lib/god/contacts/scout.rb +55 -0
  41. data/lib/god/contacts/twitter.rb +51 -0
  42. data/lib/god/contacts/webhook.rb +73 -0
  43. data/lib/god/dependency_graph.rb +41 -0
  44. data/lib/god/diagnostics.rb +37 -0
  45. data/lib/god/driver.rb +206 -0
  46. data/lib/god/errors.rb +24 -0
  47. data/lib/god/event_handler.rb +108 -0
  48. data/lib/god/event_handlers/dummy_handler.rb +13 -0
  49. data/lib/god/event_handlers/kqueue_handler.rb +17 -0
  50. data/lib/god/event_handlers/netlink_handler.rb +13 -0
  51. data/lib/god/logger.rb +109 -0
  52. data/lib/god/metric.rb +59 -0
  53. data/lib/god/process.rb +363 -0
  54. data/lib/god/registry.rb +32 -0
  55. data/lib/god/simple_logger.rb +59 -0
  56. data/lib/god/socket.rb +107 -0
  57. data/lib/god/sugar.rb +47 -0
  58. data/lib/god/sys_logger.rb +45 -0
  59. data/lib/god/system/portable_poller.rb +42 -0
  60. data/lib/god/system/process.rb +50 -0
  61. data/lib/god/system/slash_proc_poller.rb +92 -0
  62. data/lib/god/task.rb +503 -0
  63. data/lib/god/timeline.rb +25 -0
  64. data/lib/god/trigger.rb +43 -0
  65. data/lib/god/watch.rb +188 -0
  66. data/test/configs/child_events/child_events.god +44 -0
  67. data/test/configs/child_events/simple_server.rb +3 -0
  68. data/test/configs/child_polls/child_polls.god +37 -0
  69. data/test/configs/child_polls/simple_server.rb +12 -0
  70. data/test/configs/complex/complex.god +59 -0
  71. data/test/configs/complex/simple_server.rb +3 -0
  72. data/test/configs/contact/contact.god +108 -0
  73. data/test/configs/contact/simple_server.rb +3 -0
  74. data/test/configs/daemon_events/daemon_events.god +37 -0
  75. data/test/configs/daemon_events/simple_server.rb +8 -0
  76. data/test/configs/daemon_events/simple_server_stop.rb +11 -0
  77. data/test/configs/daemon_polls/daemon_polls.god +17 -0
  78. data/test/configs/daemon_polls/simple_server.rb +6 -0
  79. data/test/configs/degrading_lambda/degrading_lambda.god +31 -0
  80. data/test/configs/degrading_lambda/tcp_server.rb +15 -0
  81. data/test/configs/lifecycle/lifecycle.god +25 -0
  82. data/test/configs/matias/matias.god +50 -0
  83. data/test/configs/real.rb +59 -0
  84. data/test/configs/running_load/running_load.god +16 -0
  85. data/test/configs/stop_options/simple_server.rb +12 -0
  86. data/test/configs/stop_options/stop_options.god +39 -0
  87. data/test/configs/stress/simple_server.rb +3 -0
  88. data/test/configs/stress/stress.god +15 -0
  89. data/test/configs/task/logs/.placeholder +0 -0
  90. data/test/configs/task/task.god +26 -0
  91. data/test/configs/test.rb +61 -0
  92. data/test/helper.rb +141 -0
  93. data/test/suite.rb +6 -0
  94. data/test/test_behavior.rb +18 -0
  95. data/test/test_campfire.rb +23 -0
  96. data/test/test_condition.rb +50 -0
  97. data/test/test_conditions_disk_usage.rb +50 -0
  98. data/test/test_conditions_http_response_code.rb +109 -0
  99. data/test/test_conditions_process_running.rb +40 -0
  100. data/test/test_conditions_tries.rb +67 -0
  101. data/test/test_contact.rb +109 -0
  102. data/test/test_dependency_graph.rb +62 -0
  103. data/test/test_driver.rb +11 -0
  104. data/test/test_email.rb +34 -0
  105. data/test/test_event_handler.rb +80 -0
  106. data/test/test_god.rb +570 -0
  107. data/test/test_handlers_kqueue_handler.rb +16 -0
  108. data/test/test_jabber.rb +29 -0
  109. data/test/test_logger.rb +55 -0
  110. data/test/test_metric.rb +72 -0
  111. data/test/test_process.rb +247 -0
  112. data/test/test_prowl.rb +15 -0
  113. data/test/test_registry.rb +15 -0
  114. data/test/test_socket.rb +34 -0
  115. data/test/test_sugar.rb +42 -0
  116. data/test/test_system_portable_poller.rb +17 -0
  117. data/test/test_system_process.rb +30 -0
  118. data/test/test_task.rb +246 -0
  119. data/test/test_timeline.rb +37 -0
  120. data/test/test_trigger.rb +59 -0
  121. data/test/test_watch.rb +279 -0
  122. data/test/test_webhook.rb +15 -0
  123. metadata +362 -0
data/Announce.txt ADDED
@@ -0,0 +1,135 @@
1
+ Subject: [ANN] god 0.6.0 released (and mailing list)
2
+
3
+ !!!NEW MAILING LIST!!! We now have a mailing list at http://groups.google.com/group/god-rb
4
+
5
+ This release is primarily focused on increased stability, robustness, and code cleanliness.
6
+
7
+ The last release (0.5.0) switched from TCP sockets to Unix Domain Sockets for the CLI tools. There were some issues regarding file descriptors that would cause god to hang when restarting (the unix socket was being held open by spawned processes). These problems are all fixed in 0.6.0. You may need to kill any processes that were started under god 0.5.0 when you upgrade to 0.6.0 (you will only need to do this once during the upgrade process).
8
+
9
+ More attention is now paid to Syslogging behavior.
10
+
11
+ God will delete its own PID file when terminated via a user request.
12
+
13
+ A new command line option now allows you to check whether your installation properly handles events (sometimes the C extension will compile ok, but still not support events. Gentoo, I'm looking at you). Run `god check` to see an attempt to use the event system. It will tell you if your installation does not support events.
14
+
15
+ A watch can now be removed entirely at runtime using `god remove <watch name>`.
16
+
17
+ A new condition DiskUsage allows you to check the available disk space on a given volume.
18
+
19
+ Updated documentation is now available on the website:
20
+
21
+ http://god.rubyforge.org/
22
+
23
+
24
+ WHAT IS GOD?
25
+
26
+ God is an easy to configure, easy to extend monitoring framework written in Ruby.
27
+
28
+ Keeping your server processes and tasks running should be a simple part of your deployment process. God aims to be the simplest, most powerful monitoring application available.
29
+
30
+
31
+ DISCLAIMER
32
+
33
+ God is still beta so I do not yet recommend you use it for mission critical tasks. We are using it at Powerset, Inc. to monitor our public facing applications, but then, we're daring fellows.
34
+
35
+
36
+ INSTALL
37
+
38
+ sudo gem install god
39
+
40
+
41
+ FEATURES
42
+
43
+ * Config file is written in Ruby
44
+ * Easily write your own custom conditions in Ruby
45
+ * Supports both poll and event based conditions
46
+ * Different poll conditions can have different intervals
47
+ * Easily control non-daemonized processes
48
+
49
+
50
+ EXAMPLE
51
+
52
+ The easiest way to understand how god will make your life better is by looking at a sample config file. The following configuration file is what I use at gravatar.com to keep the mongrels running:
53
+
54
+ # run with: god -c /path/to/gravatar.god
55
+ #
56
+ # This is the actual config file used to keep the mongrels of
57
+ # gravatar.com running.
58
+
59
+ RAILS_ROOT = "/Users/tom/dev/gravatar2"
60
+
61
+ %w{8200 8201 8202}.each do |port|
62
+ God.watch do |w|
63
+ w.name = "gravatar2-mongrel-#{port}"
64
+ w.interval = 30.seconds # default
65
+ w.start = "mongrel_rails start -c #{RAILS_ROOT} -p #{port} \
66
+ -P #{RAILS_ROOT}/log/mongrel.#{port}.pid -d"
67
+ w.stop = "mongrel_rails stop -P #{RAILS_ROOT}/log/mongrel.#{port}.pid"
68
+ w.restart = "mongrel_rails restart -P #{RAILS_ROOT}/log/mongrel.#{port}.pid"
69
+ w.start_grace = 10.seconds
70
+ w.restart_grace = 10.seconds
71
+ w.pid_file = File.join(RAILS_ROOT, "log/mongrel.#{port}.pid")
72
+
73
+ w.behavior(:clean_pid_file)
74
+
75
+ w.start_if do |start|
76
+ start.condition(:process_running) do |c|
77
+ c.interval = 5.seconds
78
+ c.running = false
79
+ end
80
+ end
81
+
82
+ w.restart_if do |restart|
83
+ restart.condition(:memory_usage) do |c|
84
+ c.above = 150.megabytes
85
+ c.times = [3, 5] # 3 out of 5 intervals
86
+ end
87
+
88
+ restart.condition(:cpu_usage) do |c|
89
+ c.above = 50.percent
90
+ c.times = 5
91
+ end
92
+ end
93
+
94
+ # lifecycle
95
+ w.lifecycle do |on|
96
+ on.condition(:flapping) do |c|
97
+ c.to_state = [:start, :restart]
98
+ c.times = 5
99
+ c.within = 5.minute
100
+ c.transition = :unmonitored
101
+ c.retry_in = 10.minutes
102
+ c.retry_times = 5
103
+ c.retry_within = 2.hours
104
+ end
105
+ end
106
+ end
107
+ end
108
+
109
+
110
+ DOCS
111
+
112
+ Detailed documentation is available at http://god.rubyforge.org/
113
+
114
+
115
+ CHANGES
116
+
117
+ == 0.6.0 / 2007-12-4
118
+
119
+ * Minor Enhancement
120
+ * Move Syslog calls into God::Logger and clean up all calling code
121
+ * Remove god's pid file on user requested termination
122
+ * Better handling and cleanup of DRb server's unix domain socket
123
+ * Allow shorthand for requesting a god log
124
+ * Add `god check` to make it easier to diagnose event problems
125
+ * Refactor god binary into class/method structure
126
+ * Implement `god remove` to remove a Task altogether
127
+ * New Conditions
128
+ * DiskUsage < PollCondition - trigger if disk usage is above limit on mount [Rudy Desjardins]
129
+
130
+
131
+
132
+ AUTHORS
133
+
134
+ Tom Preston-Werner
135
+ Kevin Clark
data/History.txt ADDED
@@ -0,0 +1,393 @@
1
+ == 0.11.0 / 2010-07-01
2
+ * Major Changes
3
+ * Rewrite notification system to be more consistent and flexible.
4
+
5
+ == 0.10.1 / 2010-05-17
6
+ * Bug Fixes
7
+ * Fix date in gemspec
8
+
9
+ == 0.10.0 / 2010-05-17
10
+ * Minor Enhancements
11
+ * Add stop_timeout and stop_signal options to Watch
12
+ * Bug Fixes
13
+ * Stop command string was being ignored
14
+
15
+ == 0.9.0 / 2010-04-03
16
+ * Minor Enhancements
17
+ * Allow kqueue for OpenBSD and NetBSD
18
+ * Add err_log and err_log_cmd
19
+ * Add God.terminate_timeout option
20
+ * Respect --log-level in Syslog
21
+ * Add configuration parameters to set permissions on socket
22
+ * Add Scout contact
23
+ * Add Prowl contact
24
+ * Bug Fixes
25
+ * Fix interleaved log messages
26
+ * Experimental
27
+ * Ruby 1.9 support
28
+
29
+ == 0.8.0 / 2009-11-30
30
+ * Minor Enhancements
31
+ * Rubygems decontamination
32
+ * Use Monitor instead of Mutex to provide ability to wait with a timeout
33
+ * Only generate log messages when they're being used
34
+ * Remove usage of Thread.critical in DriverEventQueue
35
+ * Update to work with latest bleak-house
36
+ * Cache some frequent lookups to reduce object creation
37
+ * Changing the @io.print call in SimpleLogger to not concatenate
38
+ the formatted results before printing
39
+ * Bug fixes
40
+ * Make sure we don't leak hash slots when processes die
41
+ * Make sure the driver is shutdown on Task#unregister!
42
+ * Fix memory leak when issuing "god load" successfully
43
+ * Fix defunct process
44
+
45
+ == NOTE
46
+ At this point I will stop giving credit in the history. Look at the author
47
+ and committer in the commit for that info.
48
+
49
+ == 0.7.22 / 2009-10-29
50
+ * Minor Enhancements
51
+ * Save ARGV so we can get access to it later if we want [github.com/eric]
52
+
53
+ == 0.7.21 / 2009-10-29
54
+ * Minor Enhancements
55
+ * Cache some frequent lookups to reduce object creation [github.com/eric]
56
+ * Try to make SimpleLogger less leaky [github.com/eric]
57
+
58
+ == 0.7.20 / 2009-09-24
59
+ * Minor Enhancements
60
+ * Rewrite `god status` command to be not as horrible. Add ability to get
61
+ status for individual tasks.
62
+
63
+ == 0.7.19 / 2009-09-21
64
+ * Minor Enhancements
65
+ * Teach `god status` to take a task name as a param and return
66
+ an exit code of 0 if all watches are up or a non-zero exit code
67
+ (equal to the number of non-up watches) if they are not.
68
+
69
+ == 0.7.18 / 2009-09-09
70
+ * Minor Enhancements
71
+ * Better handling of unexpected exceptions in conditions
72
+ * Added support for running processes in a directory other than '/' [github.com/samhendley]
73
+ * Bug Fixes
74
+ * Generate an actual unique identifier for email contact [github.com/underley]
75
+
76
+ == 0.7.17 / 2009-08-25
77
+ * Bug Fixes
78
+ * Fix the glob and directory config loading for -c option
79
+
80
+ == 0.7.16 / 2009-08-24
81
+ * Minor Enhancements
82
+ * Better logging for disk_usage condition [github.com/lettherebecode]
83
+ * Bug Fixes
84
+ * Only sleep if driver delay is > 0 [github.com/ps2]
85
+ * Rescue Timeout::Error exception due to smtp server timing out [github.com/ps2]
86
+ * Disk usage condition should use `df -P` to prevent line splitting [github.com/mseppae]
87
+ * Always require YAML so binary works on dumb systems
88
+
89
+ == 0.7.15 / 2009-08-19
90
+ * Minor Enhancements
91
+ * Support SSL Campfire connections [github.com/eric]
92
+ * Allow wildcards in -c configuration file option
93
+
94
+ == 0.7.14 / 2009-08-10
95
+ * Minor Enhancements
96
+ * Only store log lines when a client wishes to see them
97
+ * Add an lsb-compliant init script into god/init [Woody Peterson]
98
+ * Never require stop command; use default killer if none is specified
99
+ * Bug Fixes
100
+ * Fix redefinition error for time.h and allow it to compile on Ubuntu Edgy [github.com/tbuser]
101
+ * Fix a memory leak in jabber by adding a call to jabber_client.close [github.com/woahdae]
102
+ * Make jabber code manage one connection to make it faster, use less memory,
103
+ and not leak [github.com/woahdae]
104
+
105
+ == 0.7.13 / 2009-05-04
106
+ * Bug Fixes
107
+ * Auto daemonized processes are now stopped/unmonitored correctly [github.com/jcapote]
108
+
109
+ == 0.7.12 / 2008-12-10
110
+ * Bug Fixes
111
+ * Fix capistrano deployability [github.com/eric]
112
+ * Fix event handling [brianw]
113
+
114
+ == 0.7.11 / 2008-11-14
115
+ * Bug Fixes
116
+ * Make notifications work inside lifecycle blocks
117
+
118
+ == 0.7.10 / 2008-11-13
119
+ * Major Enhancements
120
+ * Enable sending of arbitrary signals to a task or group via `god signal`
121
+ * Bug Fixes
122
+ * setup logging *after* loading a given config file when daemonized.
123
+ enables logging to the 'God.log_file' specified in a config file. [github.com/jnewland]
124
+ * New Conditions
125
+ * FileMtime < PollCondition - trigger on file mtime durations [github.com/jwilkins]
126
+ * New Contacts
127
+ * Twitter - allow messages to twitter [github.com/jwilkins]
128
+ * Campfire - send messages to 37signals' Campfire [github.com/hellvinz]
129
+ * Minor Enhancements
130
+ * Add watch log_cmd that can be reopened with STDOUT instead of a log file [github.com/jberkel]
131
+ * Added webhook output support [Martyn Loughran]
132
+
133
+ == 0.7.9 / 2008-08-06
134
+ * Major Enhancements
135
+ * Use a psuedo-priority queue for more efficient driver loop [Darrell Kresge]
136
+ * Bug Fixes
137
+ * Fix file_writable? when using chroot [github.com/eric]
138
+
139
+ == 0.7.8 / 2008-07-09
140
+ * Bug Fixes
141
+ * Catch all Exceptions from HttpResponseCode condition [github.com/rliebling]
142
+ * Don't error out if the process went away in SlashProcPoller [Kevin Clark]
143
+ * Correction of Task#handle_poll to prevent crash under event registration failure conditions. [github.com/raggi]
144
+ * Cleaned up logging of failed e-mail sends. [github.com/raggi]
145
+ * Listen on 127.0.0.1 when using God as a client. [github.com/halorgium]
146
+ * New Behaviors
147
+ * clean_unix_socket [github.com/gma]
148
+ * New Contacts
149
+ * jabber [github.com/jwulff]
150
+ * email via sendmail [github.com/monde]
151
+ * Minor Enhancements
152
+ * chroot support [github.com/eric]
153
+ * Added God.log_file for the main god log, overridden by command line option. [github.com/raggi]
154
+ * Print groups from `god status` command if present [github.com/pdlug]
155
+ * Allow headers to be specified for http_response_code condition [github.com/pdlug]
156
+
157
+ == 0.7.7 / 2008-06-17
158
+ * Bug Fixes
159
+ * Fix detection of proc file system [raggi]
160
+
161
+ == 0.7.6 / 2008-05-13
162
+ * Major Enhancements
163
+ * Implement System::Process methods for Linux based on /proc [Kevin Clark]
164
+ * Minor Enhancements
165
+ * Allowing directories to be loaded at start [Bert Goethals]
166
+ * Bug Fixes
167
+ * Don't leak events on error in the kqueue handler [Kevin Clark]
168
+
169
+ == 0.7.5 / 2008-02-21
170
+ * Bug Fixes
171
+ * Remove Ruby's Logger and replace with custom SimpleLogger to stop threaded leak
172
+
173
+ == 0.7.4 / 2008-02-18
174
+ * Bug Fixes
175
+ * Introduce local scope to prevent faulty optimization that causes memory to leak
176
+
177
+ == 0.7.3 / 2008-02-14
178
+ * Minor Enhancements
179
+ * Add --bleakhouse to make running diagnostics easier
180
+ * Bug Fixes
181
+ * Use ::Process.kill(0, ...) instead of `kill -0` [queso]
182
+ * Fix pid_file behavior in process-centric conditions so they work with tasks [matias]
183
+ * Redirect output of daemonized god to log file or /dev/null earlier [_eric]
184
+
185
+ == 0.7.2 / 2008-02-04
186
+ * Bug Fixes
187
+ * Start event system for CLI commands
188
+ * Up internal history to 100 lines per watch
189
+
190
+ == 0.7.1 / 2008-02-04
191
+ * Minor Enhancements
192
+ * Add --no-events option to completely disable events system
193
+
194
+ == 0.7.0 / 2008-02-01
195
+ * Minor Enhancements
196
+ * Better default pid_file_directory behavior
197
+ * Add --attach <pid> to specify that god should quit if <pid> exits
198
+ * Bug Fixes
199
+ * Handle ECONNRESET in HttpResponseCode
200
+
201
+ == 0.6.12 / 2008-01-31
202
+ * Minor Enhancements
203
+ * Allow log file output for non-daemonized god
204
+ * Switch to SIGTERM from SIGHUP for default lambda killer
205
+
206
+ == 0.6.11 / 2008-01-31
207
+ * Major Enhancements
208
+ * HUGE refactor of timer system to simplify scheduling
209
+ * Minor Enhancements
210
+ * Check for a truly working event system and disallow event conditions if none is present
211
+
212
+ == 0.6.10 / 2008-01-24
213
+ * Bug Fixes
214
+ * Fix ensure_stop nil pid no local variable bug
215
+
216
+ == 0.6.9 / 2008-01-23
217
+ * Bug Fixes
218
+ * Fix Timer condition dedup behavior
219
+
220
+ == 0.6.8 / 2008-01-23
221
+ * Minor Enhancements
222
+ * Warn if a command returns a non-zero exit code
223
+ * Ensure that stop command actually stops process
224
+
225
+ == 0.6.7 / 2008-01-22
226
+ * Minor Enhancements
227
+ * Add --no-syslog option to disable Syslog
228
+ * Allow contact redeclaration (dups are ignored)
229
+
230
+ == 0.6.6 / 2008-01-07
231
+ * Bug Fixes
232
+ * Redo Timer mutexing to reduce synchronization needs
233
+
234
+ == 0.6.5 / 2008-01-04
235
+ * Bug Fixes
236
+ * Fix Timer descheduling deadlock issue
237
+ * Change HttpResponseCode to use GET instead of HEAD
238
+
239
+ == 0.6.4 / 2008-12-31
240
+ * Bug Fixes
241
+ * Refactor Hub to clarify mutexing
242
+ * Eliminate potential iteration problem in Timer
243
+ * Add caching PID accessor to process to solve event deregistration failure
244
+
245
+ == 0.6.3 / 2007-12-18
246
+ * Minor Enhancements
247
+ * Output ProcessExits registration/deregistration info
248
+
249
+ == 0.6.2 / 2007-12-17
250
+ * Minor Enhancements
251
+ * Output registered PID for ProcessExits
252
+ * Bug Fixes
253
+ * Fix `god remove <group>` not working for unmonitored watches
254
+
255
+ == 0.6.1 / 2007-12-14
256
+
257
+ * Minor Enhancement
258
+ * Log when state change is complete
259
+
260
+ == 0.6.0 / 2007-12-4
261
+
262
+ * Minor Enhancement
263
+ * Move Syslog calls into God::Logger and clean up all calling code
264
+ * Remove god's pid file on user requested termination
265
+ * Better handling and cleanup of DRb server's unix domain socket
266
+ * Allow shorthand for requesting a god log
267
+ * Add `god check` to make it easier to diagnose event problems
268
+ * Refactor god binary into class/method structure
269
+ * Implement `god remove` to remove a Task altogether
270
+ * New Conditions
271
+ * DiskUsage < PollCondition - trigger if disk usage is above limit on mount [Rudy Desjardins]
272
+
273
+ == 0.5.2 / 2007-10-10
274
+
275
+ * Minor Enhancement
276
+ * Allow extra args to pass through to config file
277
+
278
+ == 0.5.1 / 2007-10-08
279
+
280
+ * Bug Fixes
281
+ * Rescue connection refused in http response code condition
282
+
283
+ == 0.5.0 / 2007-10-05
284
+
285
+ * Major Enhancements
286
+ * Implement lifecycle scoped metric to allow for cross-state conditions
287
+ * Add TriggerCondition for conditions that need info about state changes
288
+ * Implement notification system
289
+ * Add Tasks (a generalization of Watches) to do non-process related tasks
290
+ * Add example init.d file in GOD_INSTALL_DIR/init/god [scott becker]
291
+ * Add human readable info to conditions (and make low level log lines debug)
292
+ * Switch DRb to use a unix domain socket for security reasons
293
+ * Minor Enchancements
294
+ * Allow EventConditions to do transition overloading
295
+ * Report errors during god startup instead of failing silently
296
+ * Make transition block optional (default to Always condition returning true)
297
+ * Better usage info for `god --help`
298
+ * Explain what's going on when attempting to rebind to an in-use port
299
+ * Add -b option to god binary to auto-bind to an unused port
300
+ * Add `god quit` to stop god without stopping any tasks
301
+ * Make self-daemonized Watch commands synchronous (as they should be)
302
+ * Allow self-daemonized Watches to specify a log (could be useful)
303
+ * Check for existence of config file if specified
304
+ * Robustify `god load` and report errors back to the command issuer
305
+ * Warn when `god load` tries to set global options
306
+ * Add Configurable.clear method and make built-in conditions clear on entry
307
+ * New Conditions
308
+ * Flapping < TriggerCondition - trigger on state change
309
+ * HttpResponseCode < PollCondition - trigger on http response code or timeout (thx scott becker)
310
+ * New Contacts
311
+ * Email < Contact - notify via email (smtp)
312
+ * Bug Fixes
313
+ * Fix abort not aborting problem
314
+ * Fix -p option not working for god binary
315
+ * Fix God.init not accepting block (thx _eric)
316
+ * Fix SIGHUP ignore (thx _eric)
317
+ * Fix error reporting on `god --help` (don't error report a normal SystemExit)
318
+
319
+ == 0.4.3 / 2007-09-10
320
+ * Bug Fixes
321
+ * fix Process#alive? to not raise on no such file (affects `god terminate`)
322
+
323
+ == 0.4.2 / 2007-09-10
324
+ * Bug Fixes
325
+ * fix netlink buffer issue that prevented events on Linux from working consistently [dkresge]
326
+
327
+ == 0.4.1 / 2007-09-10
328
+ * Bug Fixes
329
+ * require 'stringio' for ruby 1.8.5
330
+
331
+ == 0.4.0 / 2007-09-10
332
+
333
+ * Major Enhancements
334
+ * Add the ability for conditions to override transition state (for exceptional cases)
335
+ * Implement dynamic load of config files while god is running (god load <filename>)
336
+ * Add ability to save auto-daemonized process output to a log file
337
+ * Add robust default stop lambda command for auto-daemonized processes (inspired by _eric)
338
+ * Add status command for god binary (shows status of each watch)
339
+ * Create proper logger with timestamps
340
+ * Add log command to god binary to get real time logs for a specific watch from a running god instance
341
+ * Add terminate command for god binary (stop god and all watches)
342
+ * Minor Enhancements
343
+ * Enforce validity of Watches
344
+ * Enforce that God.init is not called after a Watch
345
+ * Move pid_file_directory creation and validation to God.start
346
+ * Remove check for at least one Watch during startup (now that dynamic loading exists)
347
+ * New Conditions
348
+ * Tries < PollCondition - triggers after the specified number of tries
349
+ * Add :notify_when_flapping behavior to check for oscillation [kevinclark]
350
+ * Add :degrading_lambda condition. [kevinclark]
351
+ It uses a decaying interval (1/2 rate) for 3 cycles before failing.
352
+ * Bug Fixes
353
+ * Use exit!(0) instead of exit! in god binary to exit with code 0 (instead of default -1)
354
+ * Command line group control fixed
355
+ * Fix cross-thread return problem
356
+
357
+ == 0.3.0 / 2007-08-17
358
+
359
+ * Fix netlink header problem on Ubuntu Edgy [Dan Sully]
360
+ * Add uid/gid setting for processes [kevinclark]
361
+ * Add autostart flag for watches so they don't necessarily startup with god [kevinclark]
362
+ * Change command line call options for god binary to accommodate watch start/stop functionality
363
+ * Add individual start/stop/restart grace periods for finer grained control
364
+ * Change default DRb port to 17165 ('god'.to_i(32))
365
+ * Implement command line control to start/restart/stop/monitor/unmonitor watches/groups by name
366
+ * Watches can now belong to a group that can be controlled as a whole
367
+ * Allow god to be installed (sans events) on systems that don't support events
368
+ * Daemonize and handle PID files for non-daemonizing scripts [kevinclark]
369
+ * Fix simple mode lifecycle gap
370
+ * Remove necessity to specify pid_file for conditions
371
+ * Change config file to use God.init and God.watch directly instead of God.meddle block
372
+ * Move god binary command logic to main library
373
+ * Enhance god binary with better reporting
374
+ * Fix synchronization bug in Timer (reported by Srini Panguluri)
375
+ * Add Lambda condition for easy custom conditions [Mike Mintz]
376
+ * Add sugar for numerics (seconds, minutes, kilobytes, megabytes, percent, etc)
377
+ * Add optional PID and log file generation to god binary for daemon mode
378
+ * Add God.load to do glob enabled loading
379
+ * Add -V option to god binary for detailed version/build info
380
+
381
+ == 0.2.0 / 2007-07-18
382
+
383
+ * Rewrote innards to use a state and event based lifecycle
384
+ * Basic support for events via kqueue (bsd/darwin) and netlink/pec (linux) [kevinclark]
385
+ * Added advanced syntax (simple syntax calls advanced api underneath)
386
+ * Condition returns have changed meaning. With simple syntax, a true return activates block
387
+ * Updated http://god.rubyforge.org with updated simple config and new advanced config
388
+
389
+ == 0.1.0 / 2007-07-07
390
+
391
+ * 1 major enhancement
392
+ * Birthday!
393
+