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', } ) ]