Sha256: fcbb0674a2c05aadaa306cc428de1c76680d82ff9e43a3ff9fb773edc7d70e3c

Contents?: true

Size: 733 Bytes

Versions: 22

Compression:

Stored size: 733 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"

  stop_on_delete true # this option means, when we change pids and load config,
                      # deleted processes will be stops

  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

22 entries across 22 versions & 3 rubygems

Version Path
eye-0.7.pre examples/thin-farm.eye
eye-0.6.4 examples/thin-farm.eye
eye-0.6.3 examples/thin-farm.eye
eye-0.6.2 examples/thin-farm.eye
eye-0.6.2.pre examples/thin-farm.eye
ace-eye-0.6.5 examples/thin-farm.eye
ace-eye-0.6.4 examples/thin-farm.eye
eye-0.6.1 examples/thin-farm.eye
ace-eye-0.6.3 examples/thin-farm.eye
ace-eye-0.6.2 examples/thin-farm.eye
ace-eye-0.6.1 examples/thin-farm.eye
eye-0.6 examples/thin-farm.eye
reel-eye-0.5.2.1 examples/thin-farm.eye
reel-eye-0.5.2 examples/thin-farm.eye
eye-0.5.2 examples/thin-farm.eye
reel-eye-0.5.1 examples/thin-farm.eye
eye-0.5.1 examples/thin-farm.eye
reel-eye-0.5 examples/thin-farm.eye
eye-0.5 examples/thin-farm.eye
eye-0.4.2 examples/thin-farm.eye