Readme.md in zombie_passenger_killer-0.1.0 vs Readme.md in zombie_passenger_killer-0.1.1
- old
+ new
@@ -1,11 +1,11 @@
-
+
Guaranteed zombie passengers death.
- - no longer in passenger-status ?
- - high CPU load over long period (Optional) ?
+ - passenger process no longer listed in passenger-status ? => Death
+ - high CPU load over long period (Optional) ? => Death
strace of killed zombies is printed, so debugging is easier.
(god/bluepill are not suited to monitor passenger apps because of ever-changing pids)
@@ -19,17 +19,30 @@
=====
zombie_passenger_killer [options]
Options:
- -m, --max [SIZE] Max high CPU entries in history before killing
- --history [SIZE] History size
- -c, --cpu [PERCENT] Mark as high CPU when above PERCENT
- -g, --grace [SECONDS] Wait SECONDS before hard-killing (-9) a process
- -i, --interval [SECONDS] Check every SECONDS
- -p, --pattern [PATTERN] Find processes with this pattern
+ -m, --max [SIZE] Max high CPU entries in history before killing (default: off)
+ --history [SIZE] History size (default: 5)
+ -c, --cpu [PERCENT] Mark as high CPU when above PERCENT (default: 70)
+ -g, --grace [SECONDS] Wait SECONDS before hard-killing (-9) a process (default: 5)
+ -i, --interval [SECONDS] Check every SECONDS (default: 10)
+ -p, --pattern [PATTERN] Find processes with this pattern (default: ' Rack: ')
-h, --help Show this.
-v, --version Show Version
+
+
+### Bluepill script
+
+ app.process("zombie_passenger_killer") do |process|
+ process.start_command = "zombie_passenger_killer --max 5 --history 10 --cpu 30 --interval 10 >> /var/log/autorotate/zombie_passenger_killer.log 2>&1"
+ process.pid_file = "/var/run/zombie_passenger_killer.pid"
+ process.daemonize = true
+ end
+
+### God script
+
+TODO
Author
======