Repository navigation
Expand file tree
/
Copy pathbenchmark.yaml
More file actions
81 lines (81 loc) · 2.58 KB
/
Copy pathbenchmark.yaml
File metadata and controls
81 lines (81 loc) · 2.58 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: batch/v1
kind: Job
metadata:
name: tensorizer-benchmark-read-size
spec:
parallelism: 10
completions: 100
template:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: ethernet.coreweave.cloud/speed
operator: In
values:
- 10G
- 40G
- 100G
- key: topology.kubernetes.io/region
operator: In
values:
- LGA1
- LAS1
- ORD1
containers:
- name: benchmark
image: ghcr.io/coreweave/tensorizer:benchmark-b7459e6
imagePullPolicy: IfNotPresent
command: [ "/bin/bash" ]
args: [ "-c", "redis-server --daemonize yes >/dev/null & lighttpd -f /app/lighttpd.conf & python /app/benchmark.py --json" ]
#--redis redis://redis-master:6379" ]
resources:
requests:
cpu: "8"
memory: 64Gi
nvidia.com/gpu: "1"
limits:
cpu: "8"
memory: 64Gi
nvidia.com/gpu: "1"
env:
- name: PYTHONUNBUFFERED
value: "1"
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: K8S_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
#- name: K8S_POD_REGION
# valueFrom:
# fieldRef:
# fieldPath: metadata.labels.topology.kubernetes.io/region
#- name: K8S_LINK_SPEED
# valueFrom:
# fieldRef:
# fieldPath: metadata.labels.ethernet.coreweave.cloud/speed
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
job-name: tensorizer-benchmark-read-size
- maxSkew: 1
topologyKey: topology.kubernetes.io/region
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
job-name: tensorizer-benchmark-read-size
- maxSkew: 1
topologyKey: kubernetes.io/instance-type
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
job-name: tensorizer-benchmark-read-size
restartPolicy: OnFailure