Sha256: 33ffd01f46e2471fcdfdf688742a99acb53fb96a7bed5888df6bb9720e21f082

Contents?: true

Size: 806 Bytes

Versions: 12

Compression:

Stored size: 806 Bytes

Contents

  process 'unicorn' do
    pid_file "<%= fetch(:unicorn_pid) %>"
    start_command "<%= fetch(:rbenv_prefix) %> bundle exec unicorn -Dc <%= fetch(:unicorn_config_path) %> -E <%= fetch(:rails_env) %>"
    stdall "<%= fetch(:unicorn_log) %>"

    # stop signals:
    # http://unicorn.bogomips.org/SIGNALS.html
    stop_signals [:TERM, 10.seconds]

    # soft restart
    restart_command "kill -USR2 {PID}"

    check :cpu, :every => 30, :below => 80, :times => 3
    check :memory, :every => 30, :below => 150.megabytes, :times => [3,5]

    start_timeout 100.seconds
    restart_grace 30.seconds

    monitor_children do
      stop_command "kill -QUIT {PID}"
      check :cpu, :every => 30, :below => 80, :times => 3
      check :memory, :every => 30, :below => 150.megabytes, :times => [3,5]
    end
  end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
negroku-2.3.5 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.3.4 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.3.3 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.3.2 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.3.1 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.3.0 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.2.0 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.1.0 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.0.3 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.0.2 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.0.1 lib/negroku/templates/tasks/eye/_unicorn.erb
negroku-2.0.0 lib/negroku/templates/tasks/eye/_unicorn.erb