Skip to content

Commit 953932b

Browse files
committed
feat(parallel_jobs): Use ab (apache benchmark) in the example
1 parent fd98f4a commit 953932b

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

parallel_jobs.yml

+17-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
apiVersion: batch/v1
22
kind: Job
33
metadata:
4-
name: pi10
4+
name: ab
55
spec:
66
ttlSecondsAfterFinished: 60
77
activeDeadlineSeconds: 600
8-
completions: 30
9-
parallelism: 10
8+
completions: 20
9+
parallelism: 4
1010
template:
1111
metadata:
12-
name: pi
12+
name: ab
1313
spec:
1414
restartPolicy: Never
1515
containers:
1616
- name: pi
17-
image: perl:slim
18-
command: ["perl"]
19-
args: ["-Mbignum=bpi", "-wle", "print bpi(1000)"]
17+
image: sikalabs/dev
18+
command:
19+
- /bin/bash
20+
- -c
21+
- |
22+
ab -n 2000 -c 4 http://example/
23+
resources:
24+
requests:
25+
memory: 10Mi
26+
cpu: 200m
27+
limits:
28+
memory: 20Mi
29+
cpu: 400m

0 commit comments

Comments
 (0)