lib/negroku/tasks/unicorn.rake in negroku-2.3.5 vs lib/negroku/tasks/unicorn.rake in negroku-2.4.0
- old
+ new
@@ -48,9 +48,13 @@
## capistrano3/nginx variables
# Set the app server socket if nginx is being used
set :app_server_socket, -> { fetch(:unicorn_socket) } if required? 'capistrano/nginx'
+ ## Eye monitoring
+ set :unicorn_master_cpu_checks, "check :cpu, :every => 30, :below => 80, :times => 3"
+ set :unicorn_master_memory_checks, "check :memory, :every => 30, :below => 150.megabytes, :times => [3,5]"
+
end
end
# Adds some task on complement the capistrano3-unicorn tasks
# This tasks are under the negroku namespace for easier identification