forked from broadinstitute/cromwell-monitor-deprecated
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTestMonitoring.wdl
65 lines (54 loc) · 911 Bytes
/
TestMonitoring.wdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version 1.0
workflow TestMonitoring {
Int timeout = 150
call SleepTest {
input:
timeout = timeout
}
call StressTest {
input:
timeout = timeout
}
}
task SleepTest {
input {
Int timeout
}
command <<<
sleep ~{timeout}
>>>
runtime {
docker: 'debian:stable-slim'
disks: 'local-disk 1 HDD'
memory: '1G'
cpu: 1
preemptible: 3
maxRetries: 0
}
}
task StressTest {
input {
Int timeout
}
Int cpu = 4
Int memory = 8192
Int memoryTest = ceil(memory * 0.8 / cpu)
Int disk = cpu + 1
command <<<
apt-get update -qq
apt-get install -qq stress
stress \
--vm ~{cpu} \
--vm-bytes ~{memoryTest}M \
-d ~{cpu} \
-t ~{timeout}s
>>>
runtime {
docker: 'debian:stable-slim'
disks: 'local-disk ~{disk} HDD'
memory: '~{memory}M'
cpu: cpu
preemptible: 3
maxRetries: 0
}
}