Skip to content

Commit 2f7df33

Browse files
authored
Merge pull request kubernetes#127615 from macsko/add_node_add_event_benchmark_to_scheduler_perf
Add scheduler_perf test case for NodeAdd event handling
2 parents 1b6c993 + 25850ca commit 2f7df33

12 files changed

+296
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v1
2+
kind: Node
3+
metadata:
4+
generateName: node-high-capacity-
5+
spec:
6+
taints:
7+
- key: allow
8+
effect: NoSchedule
9+
status:
10+
capacity:
11+
pods: "3000"
12+
cpu: "200"
13+
memory: 200Gi
14+
conditions:
15+
- status: "True"
16+
type: Ready
17+
phase: Running
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v1
2+
kind: Node
3+
metadata:
4+
generateName: node-low-capacity-
5+
spec:
6+
taints:
7+
- key: allow
8+
effect: NoSchedule
9+
status:
10+
capacity:
11+
pods: "3000"
12+
cpu: "0.1"
13+
memory: 100Mi
14+
conditions:
15+
- status: "True"
16+
type: Ready
17+
phase: Running
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Node unschedulable is similar to node unblocker but has unschedulable: true.
2+
apiVersion: v1
3+
kind: Node
4+
metadata:
5+
generateName: node-unschedulable-
6+
labels:
7+
topology.kubernetes.io/zone: zone1
8+
affinity: allow
9+
topology: allow
10+
spec:
11+
unschedulable: true
12+
taints:
13+
- key: allow
14+
effect: NoSchedule
15+
status:
16+
capacity:
17+
pods: "3000"
18+
cpu: "4"
19+
memory: 32Gi
20+
conditions:
21+
- status: "True"
22+
type: Ready
23+
phase: Running
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
kind: Node
3+
metadata:
4+
generateName: node-unblocker-
5+
labels:
6+
topology.kubernetes.io/zone: zone1
7+
affinity: allow
8+
topology: allow
9+
spec:
10+
taints:
11+
- key: allow
12+
effect: NoSchedule
13+
status:
14+
capacity:
15+
pods: "3000"
16+
cpu: "4"
17+
memory: 32Gi
18+
conditions:
19+
- status: "True"
20+
type: Ready
21+
phase: Running
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v1
2+
kind: Node
3+
metadata:
4+
generateName: node-with-taint-
5+
spec:
6+
taints:
7+
- key: toleration
8+
effect: NoSchedule
9+
status:
10+
capacity:
11+
pods: "3000"
12+
cpu: "4"
13+
memory: 32Gi
14+
conditions:
15+
- status: "True"
16+
type: Ready
17+
phase: Running
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
generateName: pod-unsched-
5+
labels:
6+
color: green
7+
spec:
8+
tolerations:
9+
- key: allow
10+
operator: Exists
11+
effect: NoSchedule
12+
affinity:
13+
podAffinity:
14+
requiredDuringSchedulingIgnoredDuringExecution:
15+
- labelSelector:
16+
matchLabels:
17+
color: green
18+
topologyKey: topology.kubernetes.io/zone
19+
containers:
20+
- image: registry.k8s.io/pause:3.10
21+
name: pause
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
generateName: pod-unsched-
5+
spec:
6+
tolerations:
7+
- key: allow
8+
operator: Exists
9+
effect: NoSchedule
10+
affinity:
11+
nodeAffinity:
12+
requiredDuringSchedulingIgnoredDuringExecution:
13+
nodeSelectorTerms:
14+
- matchExpressions:
15+
- key: affinity
16+
operator: In
17+
values:
18+
- allow
19+
containers:
20+
- image: registry.k8s.io/pause:3.10
21+
name: pause
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
generateName: pod-unsched-
5+
spec:
6+
tolerations:
7+
- key: allow
8+
operator: Exists
9+
effect: NoSchedule
10+
containers:
11+
- image: registry.k8s.io/pause:3.10
12+
name: pause
13+
resources:
14+
requests:
15+
cpu: 0.2
16+
memory: 200Mi
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
generateName: pod-unsched-
5+
spec:
6+
tolerations:
7+
- key: allow
8+
operator: Exists
9+
effect: NoSchedule
10+
containers:
11+
- image: registry.k8s.io/pause:3.10
12+
name: pause
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
generateName: pod-unsched-
5+
labels:
6+
color: blue
7+
spec:
8+
tolerations:
9+
- key: allow
10+
operator: Exists
11+
effect: NoSchedule
12+
topologySpreadConstraints:
13+
- maxSkew: 1000
14+
minDomains: 10000
15+
topologyKey: topology
16+
whenUnsatisfiable: DoNotSchedule
17+
labelSelector:
18+
matchLabels:
19+
color: blue
20+
containers:
21+
- image: registry.k8s.io/pause:3.10
22+
name: pause

0 commit comments

Comments
 (0)