Sha256: a53356abd54774107bdfe8ffc68a88636abaea6703c84841460412ba63f210a4

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

# this is not example, just config for eye stress test

PREFIX = ENV['PRE'] || 1

Eye.app :stress_test do
  working_dir "/tmp"

  100.times do |i|
    process "sleep-#{i}" do
      pid_file "sleep-#{PREFIX}-#{i}.pid"
      start_command "sleep 120"
      daemonize true

      checks :cpu, :every => 5.seconds, :below => 10, :times => 5
      checks :memory, :every => 6.seconds, :below => 50.megabytes, :times => 5
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eye-0.6.4 examples/stress_test.eye
eye-0.6.3 examples/stress_test.eye