3 ms·
One of the comments on the Heroku article mentions this gem, which does just that: https://github.com/kzk/unicorn-worker-killer https://github.com/kzk/unicorn-
by swampthing 14y ago
One of the comments on the Heroku article mentions this gem, which does just that:
https://github.com/kzk/unicorn-worker-killer https://github.com/kzk/unicorn-worker-killer
- kawsper 14y agoRegarding memory, I think you can do something like this in your Unicorn config: after_fork do |server, worker| size_in_bytes = 60010241024 # megabytes Process.setrlimit(Process::RLIMIT_AS, size_in_bytes)