2024-12-06 15:42:56 -03:00
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
|
|
|
name: testrunner
|
|
|
|
namespace: codex-benchmarks
|
|
|
|
labels:
|
|
|
|
app: testrunner
|
2024-12-09 16:27:14 -03:00
|
|
|
|
2024-12-06 15:42:56 -03:00
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: testrunner
|
2024-12-09 16:27:14 -03:00
|
|
|
|
2024-12-06 15:42:56 -03:00
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: testrunner
|
|
|
|
image: codexstorage/bittorrent-benchmarks:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
args: [ "run", "deluge_experiment" ]
|
|
|
|
env:
|
|
|
|
- name: NETWORK_SIZE
|
2024-12-09 16:27:14 -03:00
|
|
|
value: "10"
|
2024-12-06 15:42:56 -03:00
|
|
|
- name: SEEDERS
|
2024-12-06 18:27:47 -03:00
|
|
|
value: "4"
|
2024-12-06 15:42:56 -03:00
|
|
|
- name: REPETITIONS
|
2024-12-06 18:27:47 -03:00
|
|
|
value: "10"
|
2024-12-09 16:27:14 -03:00
|
|
|
- name: SEEDER_SETS
|
2024-12-11 15:43:52 -03:00
|
|
|
value: "5"
|
2024-12-06 15:42:56 -03:00
|
|
|
- name: FILE_SIZE
|
2024-12-06 18:27:47 -03:00
|
|
|
value: "104857600"
|
2024-12-06 15:42:56 -03:00
|
|
|
- name: TRACKER_ANNOUNCE_URL
|
|
|
|
value: "http://tracker-service.codex-benchmarks.svc.cluster.local:8000/announce"
|
|
|
|
- name: SHARED_VOLUME_PATH
|
|
|
|
value: "/opt/bittorrent-benchmarks/volume"
|
|
|
|
- name: DELUGE_STATEFULSET
|
|
|
|
value: "deluge-nodes"
|
|
|
|
- name: DELUGE_SERVICE
|
|
|
|
value: "deluge-service"
|
|
|
|
- name: NAMESPACE
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
|
|
|
volumeMounts:
|
|
|
|
- name: benchmark-volume
|
|
|
|
mountPath: /opt/bittorrent-benchmarks/volume
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: "1"
|
|
|
|
memory: "2Gi"
|
|
|
|
limits:
|
|
|
|
cpu: "1"
|
|
|
|
memory: "2Gi"
|
2024-12-09 16:27:14 -03:00
|
|
|
|
2024-12-06 15:42:56 -03:00
|
|
|
volumes:
|
|
|
|
- name: benchmark-volume
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: deluge-pvc
|
|
|
|
restartPolicy: Never
|
2024-12-09 16:27:14 -03:00
|
|
|
|
2024-12-06 15:42:56 -03:00
|
|
|
backoffLimit: 0
|