Sha256: ac7f1f9e2e3d2c6fead210d10b93471a656d9217e6512be208f8eac9ac3373d9

Contents?: true

Size: 836 Bytes

Versions: 18

Compression:

Stored size: 836 Bytes

Contents

BUNDLE = 'bundle'
RAILS_ENV = 'production'
ROOT = File.expand_path(File.join(File.dirname(__FILE__), %w[ processes ]))

Eye.config do
  logger "#{ROOT}/eye.log"
end

Eye.application :puma do
  env 'RAILS_ENV' => RAILS_ENV
  working_dir ROOT
  trigger :flapping, :times => 10, :within => 1.minute

  process :puma do
    daemonize true
    pid_file "puma.pid"
    stdall "puma.log"

    start_command "#{BUNDLE} exec puma --port 33280 --environment #{RAILS_ENV} thin.ru"
    stop_signals [:TERM, 5.seconds, :KILL]
    restart_command "kill -USR2 {PID}"

    restart_grace 10.seconds # just sleep this until process get up status
                             # (maybe enought to puma soft restart)

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

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
eye-0.8.pre2 examples/puma.eye
eye-0.8.pre examples/puma.eye
eye-0.7 examples/puma.eye
eye-0.7.pre examples/puma.eye
eye-0.6.4 examples/puma.eye
eye-0.6.3 examples/puma.eye
eye-0.6.2 examples/puma.eye
eye-0.6.2.pre examples/puma.eye
ace-eye-0.6.5 examples/puma.eye
ace-eye-0.6.4 examples/puma.eye
eye-0.6.1 examples/puma.eye
ace-eye-0.6.3 examples/puma.eye
ace-eye-0.6.2 examples/puma.eye
ace-eye-0.6.1 examples/puma.eye
eye-0.6 examples/puma.eye
reel-eye-0.5.2.1 examples/puma.eye
reel-eye-0.5.2 examples/puma.eye
eye-0.5.2 examples/puma.eye