Sha256: 328f6b7c11615590f1edb33c326bb01b288380a7ec93f58fdb0efb8ccc4a8568

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

RUBY = 'ruby'
BUNDLE = 'bundle'

Eye.load("process_thin.rb")

Eye.config do
  logger "/tmp/eye.log"
end

Eye.app 'thin-farm' do
  working_dir File.expand_path(File.join(File.dirname(__FILE__), %w[ processes ]))
  env "RAILS_ENV" => "production"

  # more about stop_on_delete: https://github.com/kostya/eye/wiki/About-stop_on_delete-=-true
  stop_on_delete true

  trigger :flapping, :times => 10, :within => 1.minute
  check :memory, :below => 60.megabytes, :every => 30.seconds, :times => 5
  start_timeout 30.seconds

  group :web do
    chain :action => :restart, :grace => 5.seconds
    chain :action => :start, :grace => 0.2.seconds

    (5555..5560).each do |port|
      thin self, port
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eye-0.8.pre2 examples/thin-farm.eye
eye-0.8.pre examples/thin-farm.eye
eye-0.7 examples/thin-farm.eye