Merge pull request #135348 from brejman/issue-134393-perf

Add perf test for scheduling pods matching existing pods antiaffinity
This commit is contained in:
Kubernetes Prow Robot 2025-12-17 21:41:29 -08:00 committed by GitHub
commit fefd7ddc37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 74 additions and 0 deletions

View file

@ -78,6 +78,61 @@
initPods: 1000
measurePods: 2000
- name: SchedulingPodMatchingAntiAffinity
defaultPodTemplatePath: ../templates/pod-with-pod-anti-affinity.yaml
workloadTemplate:
- opcode: createNodes
countParam: $initNodes
- opcode: createNamespaces
prefix: sched
count: 2
- opcode: createPods
countParam: $initPods
namespace: sched-0
- opcode: createPods
podTemplatePath: ../templates/pod-with-pod-anti-affinity-label.yaml
countParam: $measurePods
collectMetrics: true
namespace: sched-1
workloads:
- name: 5Nodes
featureGates:
SchedulerQueueingHints: false
labels: [integration-test, short]
params:
initNodes: 5
initPods: 1
measurePods: 4
- name: 5Nodes_QueueingHintsEnabled
featureGates:
SchedulerQueueingHints: true
labels: [integration-test, short]
params:
initNodes: 5
initPods: 1
measurePods: 4
- name: 500Nodes
params:
initNodes: 500
initPods: 100
measurePods: 400
- name: 5000Nodes_5000Pods
featureGates:
SchedulerQueueingHints: false
labels: [performance]
params:
initNodes: 5000
initPods: 1000
measurePods: 5000
- name: 5000Nodes_5000Pods_QueueingHintsEnabled
featureGates:
SchedulerQueueingHints: true
labels: [performance]
params:
initNodes: 5000
initPods: 1000
measurePods: 5000
- name: SchedulingPodAffinity
defaultPodTemplatePath: ../templates/pod-with-pod-affinity.yaml
workloadTemplate:

View file

@ -0,0 +1,19 @@
apiVersion: v1
kind: Pod
metadata:
generateName: anti-affinity-matching-pod-
labels:
color: green
spec:
containers:
- image: registry.k8s.io/pause:3.10.1
name: pause
ports:
- containerPort: 80
resources:
limits:
cpu: 100m
memory: 500Mi
requests:
cpu: 100m
memory: 500Mi