summary refs log tree commit diff
path: root/playgrounds/aurora/fio.aurora
blob: b26debf2bd02db7903863f147eab3bbaa501dbd3 (plain) (blame)
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
downloadFIO = Process(
  name='download-fio',
  cmdline='curl -o fio.rpm https://svn.twitter.biz/rpms/fio.x86_64/RPMS/x86_64/fio-1.50-2.twitter.x86_64.rpm'
)

installBenchs = Packer.install(
  'fio-bench',
  role = 'fcuny',
  version = 'latest'
)

mvFIO = Process(
  name='move-fio',
  cmdline='mv fio/* . && rm -rf fio',
)

extractFIO = Process(
  name='extract-fio',
  cmdline='rpm2cpio fio.rpm | cpio -idmv'
)

runFIO = Process(
  name='run-fio',
  cmdline='./runner.sh',
)

jobs = [
  Job(
    cluster='smf1',
    role='fcuny',
    environment='devel',
    name='fio',
    task=Task(
      processes=[downloadFIO, extractFIO, runFIO, installBenchs, mvFIO],
      resources=Resources(cpu=4, ram=4096 * MB, disk=10 * GB),
      constraints=order(installBenchs, mvFIO, downloadFIO, extractFIO, runFIO)
    ),
    instances=3,
    constraints={
      'base_platform': 'f4ww',
      'dedicated': '*/manhattan',
      'host': 'limit:1',
    }
  )
]