example/testjob.yaml (52 lines of code) (raw):
changelog: null
name: TestPelotonJob_123
owningteam: team6
ldapgroups:
- money
- team6
- otto
description: "A dummy test job for peloton"
labels:
- key: testKey0
value: testVal0
- key: testKey1
value: testVal1
- key: testKey2
value: testVal2
instancecount: 10
sla:
priority: 22
minimuminstancecount: 12
minimuminstancepercent: 50
preemptible: false
maxrunningtime: 300
defaultconfig:
resource:
cpulimit: 1.0
memlimitmb: 2.0
disklimitmb: 10
fdlimit: 10
healthcheck: null
ports: []
container: null
command:
shell: true
value: 'echo "Job $PELOTON_JOB_ID instance $PELOTON_INSTANCE_ID: $PELOTON_TASK_ID" && sleep 30'
instanceconfig:
0:
name: controller0
controller: true
command:
shell: true
value: 'echo Hello instance 0 && sleep 100'
killgraceperiodseconds: 40
1:
name: instance1
command:
shell: true
value: 'echo Hello instance 0 && sleep 15'
2:
name: instance2
command:
shell: true
value: 'echo Hello instance 0 && sleep 20'