-
Notifications
You must be signed in to change notification settings - Fork 514
Open
Description
While keeping a process up is useful, it would be even better if we could make sure our process was behaving well and restart it when resource utilization exceeds our specifications. With a few additions, we can easily have our process restarted when memory usage or CPU goes above certain limits. Edit your sample.god config file to look like this:
God.watch do |w|
w.name = "simple"
w.start = "ruby /full/path/to/simple.rb"
w.keepalive(:memory_max => 150.megabytes,
:cpu_max => 50.percent)
endThe 'sample.god' should be 'simple.god', I think this is typical misspelling.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels