mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #127236 from macsko/scheduler_perf_test_case_for_hints_memory_leak_scenario
Add scheduler_perf test case for queueing hints memory leak scenario
This commit is contained in:
commit
c3ebd95c83
@ -1383,3 +1383,39 @@
|
||||
params:
|
||||
gatedPods: 10000
|
||||
measurePods: 20000
|
||||
|
||||
# This test case simulates the scheduling when pods selected to schedule have deletionTimestamp set.
|
||||
# There was a memory leak related to this path of code fixed in:
|
||||
# https://github.com/kubernetes/kubernetes/pull/126962
|
||||
# Main goal of this test case is to verify if InFlightEvents is empty after the test.
|
||||
- name: SchedulingDeletedPodsWithFinalizers
|
||||
featureGates:
|
||||
SchedulerQueueingHints: true
|
||||
defaultPodTemplatePath: config/templates/light-pod.yaml
|
||||
workloadTemplate:
|
||||
- opcode: createNodes
|
||||
countParam: $initNodes
|
||||
- opcode: createPods
|
||||
# Create pods with finalizers and delete them before they are scheduled.
|
||||
# DeletionTimestamp field should be populated then,
|
||||
# but a few pods should still be chosen into the scheduling.
|
||||
countParam: $deletingPods
|
||||
podTemplatePath: config/templates/pod-with-finalizer.yaml
|
||||
skipWaitToCompletion: true
|
||||
deletePodsPerSecond: 100
|
||||
- opcode: createPods
|
||||
countParam: $measurePods
|
||||
collectMetrics: true
|
||||
workloads:
|
||||
- name: 10Node_100DeletingPods
|
||||
labels: [integration-test, fast]
|
||||
params:
|
||||
initNodes: 10
|
||||
deletingPods: 100
|
||||
measurePods: 10
|
||||
- name: 1000Node_1000DeletingPods
|
||||
labels: [performance, fast]
|
||||
params:
|
||||
initNodes: 1000
|
||||
deletingPods: 1000
|
||||
measurePods: 1000
|
||||
|
@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
generateName: pod-
|
||||
finalizers:
|
||||
- test.k8s.io/finalizer
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.k8s.io/pause:3.10
|
||||
name: pause
|
Loading…
Reference in New Issue
Block a user