reorganize the scheduler_perf testcases

Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
kerthcet 2024-05-31 16:47:19 +08:00
parent 4bb434501d
commit e678496c6e
26 changed files with 68 additions and 68 deletions

View File

@ -222,23 +222,23 @@ dependencies:
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/benchmark-controller.json - path: test/integration/benchmark-controller.json
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-default.yaml - path: test/integration/scheduler_perf/config/templates/pod-default.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-with-node-affinity.yaml - path: test/integration/scheduler_perf/config/templates/pod-with-node-affinity.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-with-pod-affinity.yaml - path: test/integration/scheduler_perf/config/templates/pod-with-pod-affinity.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-with-pod-anti-affinity.yaml - path: test/integration/scheduler_perf/config/templates/pod-with-pod-anti-affinity.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-with-preferred-pod-affinity.yaml - path: test/integration/scheduler_perf/config/templates/pod-with-preferred-pod-affinity.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-with-preferred-pod-anti-affinity.yaml - path: test/integration/scheduler_perf/config/templates/pod-with-preferred-pod-anti-affinity.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-with-preferred-topology-spreading.yaml - path: test/integration/scheduler_perf/config/templates/pod-with-preferred-topology-spreading.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-with-secret-volume.yaml - path: test/integration/scheduler_perf/config/templates/pod-with-secret-volume.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/integration/scheduler_perf/config/pod-with-topology-spreading.yaml - path: test/integration/scheduler_perf/config/templates/pod-with-topology-spreading.yaml
match: registry.k8s.io\/pause:\d+\.\d+ match: registry.k8s.io\/pause:\d+\.\d+
- path: test/utils/image/manifest.go - path: test/utils/image/manifest.go
match: configs\[Pause\] = Config{list\.GcRegistry, "pause", "\d+\.\d+(.\d+)?"} match: configs\[Pause\] = Config{list\.GcRegistry, "pause", "\d+\.\d+(.\d+)?"}

View File

@ -13,7 +13,7 @@
# before/after comparisons with benchstat. # before/after comparisons with benchstat.
- name: SchedulingBasic - name: SchedulingBasic
defaultPodTemplatePath: config/pod-default.yaml defaultPodTemplatePath: config/templates/pod-default.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
@ -37,7 +37,7 @@
measurePods: 1000 measurePods: 1000
- name: SchedulingPodAntiAffinity - name: SchedulingPodAntiAffinity
defaultPodTemplatePath: config/pod-with-pod-anti-affinity.yaml defaultPodTemplatePath: config/templates/pod-with-pod-anti-affinity.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
@ -66,7 +66,7 @@
measurePods: 1000 measurePods: 1000
- name: SchedulingSecrets - name: SchedulingSecrets
defaultPodTemplatePath: config/pod-with-secret-volume.yaml defaultPodTemplatePath: config/templates/pod-with-secret-volume.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
@ -96,12 +96,12 @@
countParam: $initNodes countParam: $initNodes
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
persistentVolumeTemplatePath: config/pv-aws.yaml persistentVolumeTemplatePath: config/templates/pv-aws.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml persistentVolumeClaimTemplatePath: config/templates/pvc.yaml
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
persistentVolumeTemplatePath: config/pv-aws.yaml persistentVolumeTemplatePath: config/templates/pv-aws.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml persistentVolumeClaimTemplatePath: config/templates/pvc.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 500Nodes - name: 500Nodes
@ -121,7 +121,7 @@
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
nodeTemplatePath: config/node-default.yaml nodeTemplatePath: config/templates/node-default.yaml
nodeAllocatableStrategy: nodeAllocatableStrategy:
nodeAllocatable: nodeAllocatable:
attachable-volumes-csi-ebs.csi.aws.com: "39" attachable-volumes-csi-ebs.csi.aws.com: "39"
@ -132,12 +132,12 @@
- "kubernetes.io/aws-ebs" - "kubernetes.io/aws-ebs"
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
persistentVolumeTemplatePath: config/pv-aws.yaml persistentVolumeTemplatePath: config/templates/pv-aws.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml persistentVolumeClaimTemplatePath: config/templates/pvc.yaml
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
persistentVolumeTemplatePath: config/pv-aws.yaml persistentVolumeTemplatePath: config/templates/pv-aws.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml persistentVolumeClaimTemplatePath: config/templates/pvc.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 500Nodes - name: 500Nodes
@ -157,7 +157,7 @@
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
nodeTemplatePath: config/node-default.yaml nodeTemplatePath: config/templates/node-default.yaml
nodeAllocatableStrategy: nodeAllocatableStrategy:
nodeAllocatable: nodeAllocatable:
attachable-volumes-csi-ebs.csi.aws.com: "39" attachable-volumes-csi-ebs.csi.aws.com: "39"
@ -166,12 +166,12 @@
count: 39 count: 39
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
persistentVolumeTemplatePath: config/pv-csi.yaml persistentVolumeTemplatePath: config/templates/pv-csi.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml persistentVolumeClaimTemplatePath: config/templates/pvc.yaml
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
persistentVolumeTemplatePath: config/pv-csi.yaml persistentVolumeTemplatePath: config/templates/pv-csi.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml persistentVolumeClaimTemplatePath: config/templates/pvc.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 500Nodes - name: 500Nodes
@ -187,11 +187,11 @@
measurePods: 1000 measurePods: 1000
- name: SchedulingPodAffinity - name: SchedulingPodAffinity
defaultPodTemplatePath: config/pod-with-pod-affinity.yaml defaultPodTemplatePath: config/templates/pod-with-pod-affinity.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
nodeTemplatePath: config/node-default.yaml nodeTemplatePath: config/templates/node-default.yaml
labelNodePrepareStrategy: labelNodePrepareStrategy:
labelKey: "topology.kubernetes.io/zone" labelKey: "topology.kubernetes.io/zone"
labelValues: ["zone1"] labelValues: ["zone1"]
@ -221,7 +221,7 @@
- name: SchedulingPreferredPodAffinity - name: SchedulingPreferredPodAffinity
labels: [performance] labels: [performance]
defaultPodTemplatePath: config/pod-with-preferred-pod-affinity.yaml defaultPodTemplatePath: config/templates/pod-with-preferred-pod-affinity.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
@ -249,7 +249,7 @@
measurePods: 1000 measurePods: 1000
- name: SchedulingPreferredPodAntiAffinity - name: SchedulingPreferredPodAntiAffinity
defaultPodTemplatePath: config/pod-with-preferred-pod-affinity.yaml defaultPodTemplatePath: config/templates/pod-with-preferred-pod-affinity.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
@ -278,11 +278,11 @@
measurePods: 1000 measurePods: 1000
- name: SchedulingNodeAffinity - name: SchedulingNodeAffinity
defaultPodTemplatePath: config/pod-with-node-affinity.yaml defaultPodTemplatePath: config/templates/pod-with-node-affinity.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
nodeTemplatePath: config/node-default.yaml nodeTemplatePath: config/templates/node-default.yaml
labelNodePrepareStrategy: labelNodePrepareStrategy:
labelKey: "topology.kubernetes.io/zone" labelKey: "topology.kubernetes.io/zone"
labelValues: ["zone1"] labelValues: ["zone1"]
@ -309,16 +309,16 @@
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
nodeTemplatePath: config/node-default.yaml nodeTemplatePath: config/templates/node-default.yaml
labelNodePrepareStrategy: labelNodePrepareStrategy:
labelKey: "topology.kubernetes.io/zone" labelKey: "topology.kubernetes.io/zone"
labelValues: ["moon-1", "moon-2", "moon-3"] labelValues: ["moon-1", "moon-2", "moon-3"]
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-default.yaml podTemplatePath: config/templates/pod-default.yaml
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
podTemplatePath: config/pod-with-topology-spreading.yaml podTemplatePath: config/templates/pod-with-topology-spreading.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 500Nodes - name: 500Nodes
@ -339,16 +339,16 @@
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
nodeTemplatePath: config/node-default.yaml nodeTemplatePath: config/templates/node-default.yaml
labelNodePrepareStrategy: labelNodePrepareStrategy:
labelKey: "topology.kubernetes.io/zone" labelKey: "topology.kubernetes.io/zone"
labelValues: ["moon-1", "moon-2", "moon-3"] labelValues: ["moon-1", "moon-2", "moon-3"]
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-default.yaml podTemplatePath: config/templates/pod-default.yaml
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
podTemplatePath: config/pod-with-preferred-topology-spreading.yaml podTemplatePath: config/templates/pod-with-preferred-topology-spreading.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 500Nodes - name: 500Nodes
@ -365,11 +365,11 @@
- name: MixedSchedulingBasePod - name: MixedSchedulingBasePod
labels: [performance] labels: [performance]
defaultPodTemplatePath: config/pod-default.yaml defaultPodTemplatePath: config/templates/pod-default.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
nodeTemplatePath: config/node-default.yaml nodeTemplatePath: config/templates/node-default.yaml
labelNodePrepareStrategy: labelNodePrepareStrategy:
labelKey: "topology.kubernetes.io/zone" labelKey: "topology.kubernetes.io/zone"
labelValues: ["zone1"] labelValues: ["zone1"]
@ -381,19 +381,19 @@
namespace: sched-0 namespace: sched-0
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-with-pod-affinity.yaml podTemplatePath: config/templates/pod-with-pod-affinity.yaml
namespace: sched-0 namespace: sched-0
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-with-pod-anti-affinity.yaml podTemplatePath: config/templates/pod-with-pod-anti-affinity.yaml
namespace: sched-0 namespace: sched-0
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-with-preferred-pod-affinity.yaml podTemplatePath: config/templates/pod-with-preferred-pod-affinity.yaml
namespace: sched-0 namespace: sched-0
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-with-preferred-pod-anti-affinity.yaml podTemplatePath: config/templates/pod-with-preferred-pod-anti-affinity.yaml
namespace: sched-0 namespace: sched-0
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
@ -418,10 +418,10 @@
countParam: $initNodes countParam: $initNodes
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-low-priority.yaml podTemplatePath: config/templates/pod-low-priority.yaml
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
podTemplatePath: config/pod-high-priority.yaml podTemplatePath: config/templates/pod-high-priority.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 500Nodes - name: 500Nodes
@ -446,12 +446,12 @@
countParam: $initNodes countParam: $initNodes
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-low-priority.yaml podTemplatePath: config/templates/pod-low-priority.yaml
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
podTemplatePath: config/pod-high-priority.yaml podTemplatePath: config/templates/pod-high-priority.yaml
persistentVolumeTemplatePath: config/pv-aws.yaml persistentVolumeTemplatePath: config/templates/pv-aws.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml persistentVolumeClaimTemplatePath: config/templates/pvc.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 500Nodes - name: 500Nodes
@ -475,11 +475,11 @@
countParam: $initNodes countParam: $initNodes
- opcode: createPods - opcode: createPods
countParam: $initPods countParam: $initPods
podTemplatePath: config/pod-large-cpu.yaml podTemplatePath: config/templates/pod-large-cpu.yaml
skipWaitToCompletion: true skipWaitToCompletion: true
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
podTemplatePath: config/pod-default.yaml podTemplatePath: config/templates/pod-default.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 500Nodes/200InitPods - name: 500Nodes/200InitPods
@ -509,12 +509,12 @@
number: 1 number: 1
templatePaths: templatePaths:
- config/churn/node-default.yaml - config/churn/node-default.yaml
- config/pod-high-priority-large-cpu.yaml - config/templates/pod-high-priority-large-cpu.yaml
- config/churn/service-default.yaml - config/churn/service-default.yaml
intervalMilliseconds: 1000 intervalMilliseconds: 1000
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods
podTemplatePath: config/pod-default.yaml podTemplatePath: config/templates//pod-default.yaml
collectMetrics: true collectMetrics: true
workloads: workloads:
- name: 1000Nodes - name: 1000Nodes
@ -530,18 +530,18 @@
- name: SchedulingRequiredPodAntiAffinityWithNSSelector - name: SchedulingRequiredPodAntiAffinityWithNSSelector
labels: [performance] labels: [performance]
defaultPodTemplatePath: config/pod-anti-affinity-ns-selector.yaml defaultPodTemplatePath: config/templates/pod-anti-affinity-ns-selector.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
- opcode: createNamespaces - opcode: createNamespaces
prefix: init-ns prefix: init-ns
countParam: $initNamespaces countParam: $initNamespaces
namespaceTemplatePath: config/namespace-with-labels.yaml namespaceTemplatePath: config/templates/namespace-with-labels.yaml
- opcode: createNamespaces - opcode: createNamespaces
prefix: measure-ns prefix: measure-ns
count: 1 count: 1
namespaceTemplatePath: config/namespace-with-labels.yaml namespaceTemplatePath: config/templates/namespace-with-labels.yaml
- opcode: createPodSets - opcode: createPodSets
countParam: $initNamespaces countParam: $initNamespaces
namespacePrefix: init-ns namespacePrefix: init-ns
@ -569,18 +569,18 @@
- name: SchedulingPreferredAntiAffinityWithNSSelector - name: SchedulingPreferredAntiAffinityWithNSSelector
labels: [performance] labels: [performance]
defaultPodTemplatePath: config/pod-preferred-anti-affinity-ns-selector.yaml defaultPodTemplatePath: config/templates/pod-preferred-anti-affinity-ns-selector.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
- opcode: createNamespaces - opcode: createNamespaces
prefix: init-ns prefix: init-ns
countParam: $initNamespaces countParam: $initNamespaces
namespaceTemplatePath: config/namespace-with-labels.yaml namespaceTemplatePath: config/templates/namespace-with-labels.yaml
- opcode: createNamespaces - opcode: createNamespaces
prefix: measure-ns prefix: measure-ns
count: 1 count: 1
namespaceTemplatePath: config/namespace-with-labels.yaml namespaceTemplatePath: config/templates/namespace-with-labels.yaml
- opcode: createPodSets - opcode: createPodSets
countParam: $initNamespaces countParam: $initNamespaces
namespacePrefix: init-ns namespacePrefix: init-ns
@ -608,7 +608,7 @@
- name: SchedulingRequiredPodAffinityWithNSSelector - name: SchedulingRequiredPodAffinityWithNSSelector
labels: [performance] labels: [performance]
defaultPodTemplatePath: config/pod-affinity-ns-selector.yaml defaultPodTemplatePath: config/templates/pod-affinity-ns-selector.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
@ -618,11 +618,11 @@
- opcode: createNamespaces - opcode: createNamespaces
prefix: init-ns prefix: init-ns
countParam: $initNamespaces countParam: $initNamespaces
namespaceTemplatePath: config/namespace-with-labels.yaml namespaceTemplatePath: config/templates/namespace-with-labels.yaml
- opcode: createNamespaces - opcode: createNamespaces
prefix: measure-ns prefix: measure-ns
count: 1 count: 1
namespaceTemplatePath: config/namespace-with-labels.yaml namespaceTemplatePath: config/templates/namespace-with-labels.yaml
- opcode: createPodSets - opcode: createPodSets
countParam: $initNamespaces countParam: $initNamespaces
namespacePrefix: init-ns namespacePrefix: init-ns
@ -650,18 +650,18 @@
- name: SchedulingPreferredAffinityWithNSSelector - name: SchedulingPreferredAffinityWithNSSelector
labels: [performance] labels: [performance]
defaultPodTemplatePath: config/pod-preferred-affinity-ns-selector.yaml defaultPodTemplatePath: config/templates/pod-preferred-affinity-ns-selector.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $initNodes countParam: $initNodes
- opcode: createNamespaces - opcode: createNamespaces
prefix: init-ns prefix: init-ns
countParam: $initNamespaces countParam: $initNamespaces
namespaceTemplatePath: config/namespace-with-labels.yaml namespaceTemplatePath: config/templates/namespace-with-labels.yaml
- opcode: createNamespaces - opcode: createNamespaces
prefix: measure-ns prefix: measure-ns
count: 1 count: 1
namespaceTemplatePath: config/namespace-with-labels.yaml namespaceTemplatePath: config/templates/namespace-with-labels.yaml
- opcode: createPodSets - opcode: createPodSets
countParam: $initNamespaces countParam: $initNamespaces
namespacePrefix: init-ns namespacePrefix: init-ns
@ -690,12 +690,12 @@
- name: SchedulingWithNodeInclusionPolicy - name: SchedulingWithNodeInclusionPolicy
featureGates: featureGates:
NodeInclusionPolicyInPodTopologySpread: true NodeInclusionPolicyInPodTopologySpread: true
defaultPodTemplatePath: config/pod-with-node-inclusion-policy.yaml defaultPodTemplatePath: config/templates/pod-with-node-inclusion-policy.yaml
workloadTemplate: workloadTemplate:
- opcode: createNodes - opcode: createNodes
countParam: $normalNodes countParam: $normalNodes
- opcode: createNodes - opcode: createNodes
nodeTemplatePath: config/node-with-taint.yaml nodeTemplatePath: config/templates/node-with-taint.yaml
countParam: $taintNodes countParam: $taintNodes
- opcode: createPods - opcode: createPods
countParam: $measurePods countParam: $measurePods