repo.or.cz
/
god.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update manifest, up version constants to 0.4.0, add stress test config
[god.git]
/
test
/
configs
/
stress
/
stress.god
blob
3a4fbfe11e4b6506e958efc7b2d51f386137c564
1
(1..20).each do |i|
2
God.watch do |w|
3
w.name = "stress-#{i}"
4
w.start = 'ruby ' + File.join(File.dirname(__FILE__), *%w[simple_server.rb])
5
w.stop = ''
6
w.interval = 1
7
w.grace = 2
8
w.group = 'test'
9
10
w.start_if do |start|
11
start.condition(:process_running) do |c|
12
c.running = false
13
end
14
end
15
end
16
end