Skip to content

Commit

Permalink
Merge pull request kubernetes#125550 from sanposhiho/scheduler_perf-g…
Browse files Browse the repository at this point in the history
…ated

add a test case with gated pod-affinity pods to scheduler_perf
  • Loading branch information
k8s-ci-robot committed Jun 29, 2024
2 parents a7832cc + d6d5519 commit fa75b43
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/integration/scheduler_perf/config/performance-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1075,3 +1075,29 @@
gatedPods: 10000
deletingPods: 20000
measurePods: 20000

- name: SchedulingGatedPodsWithPodAffinityImpactForThroughput
defaultPodTemplatePath: config/templates/pod-with-label.yaml
workloadTemplate:
- opcode: createNodes
count: 1
nodeTemplatePath: config/templates/node-with-name.yaml
- opcode: createPods
countParam: $gatedPods
podTemplatePath: config/templates/gated-pod-with-pod-affinity.yaml
skipWaitToCompletion: true
- opcode: sleep
# To produce a stable scheduler_perf result, here we make sure all gated Pods are stored in the scheduling queue.
duration: 5s
- opcode: createPods
# The scheduling of those Pods will result in many cluster events (AssignedPodAdded)
# and each of them will be processed by the scheduling queue.
# But, the scheduling throughput should only be minimally impacted by the number of gated Pods.
countParam: $measurePods
collectMetrics: true
workloads:
- name: 1000Node
labels: [performance, fast]
params:
gatedPods: 10000
measurePods: 20000
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Pod
metadata:
generateName: pod-
labels:
app: scheduler-perf
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: scheduler-perf
topologyKey: kubernetes.io/hostname
schedulingGates:
- name: "scheduling-gate-1"
containers:
- image: registry.k8s.io/pause:3.10
name: pause
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ apiVersion: v1
kind: Node
metadata:
name: scheduler-perf-node
labels:
kubernetes.io/hostname: scheduler-perf-node
spec: {}
status:
capacity:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Pod
metadata:
generateName: pod-
labels:
app: scheduler-perf
spec:
containers:
- image: registry.k8s.io/pause:3.10
name: pause

0 comments on commit fa75b43

Please sign in to comment.