File: stress_test.eye

package info (click to toggle)
ruby-eye 0.7-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 672 kB
  • sloc: ruby: 5,003; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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