Sha256: 23719813a03d64c0eac3d7337f7df2072422b6d37e7babd0fd69597df05608c6

Contents?: true

Size: 432 Bytes

Versions: 15

Compression:

Stored size: 432 Bytes

Contents

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

PREFIX = ENV['PRE'] || ENV['EYE_V'] || 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

15 entries across 15 versions & 1 rubygems

Version Path
eye-0.10.1.pre examples/stress_test.eye
eye-0.10.0 examples/stress_test.eye
eye-0.10.0.alpha2 examples/stress_test.eye
eye-0.10.0.alpha examples/stress_test.eye
eye-0.9.4.nosigar examples/stress_test.eye
eye-0.9.4 examples/stress_test.eye
eye-0.9.3 examples/stress_test.eye
eye-0.9.2.nosigar examples/stress_test.eye
eye-0.9.2 examples/stress_test.eye
eye-0.9.1 examples/stress_test.eye
eye-0.9.pre examples/stress_test.eye
eye-0.8.1 examples/stress_test.eye
eye-0.8.celluloid15 examples/stress_test.eye
eye-0.8 examples/stress_test.eye
eye-0.8.rc examples/stress_test.eye