Make scheduler_perf stable

This commit is contained in:
sanposhiho
2022-02-24 01:24:22 +09:00
parent 76cdb57ccf
commit 1080c2d717
8 changed files with 123 additions and 40 deletions

View File

@@ -27,15 +27,18 @@
countParam: $initNodes
uniqueNodeLabelStrategy:
labelKey: kubernetes.io/hostname
- opcode: createNamespaces
prefix: sched
count: 2
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-with-pod-anti-affinity.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $measurePods
podTemplatePath: config/pod-with-pod-anti-affinity.yaml
collectMetrics: true
namespace: sched-test
namespace: sched-1
workloads:
- name: 500Nodes
params:
@@ -173,14 +176,17 @@
labelNodePrepareStrategy:
labelKey: "topology.kubernetes.io/zone"
labelValues: ["zone1"]
- opcode: createNamespaces
prefix: sched
count: 2
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-with-pod-affinity.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $measurePods
podTemplatePath: config/pod-with-pod-affinity.yaml
namespace: sched-test
namespace: sched-1
collectMetrics: true
workloads:
- name: 500Nodes
@@ -200,14 +206,17 @@
countParam: $initNodes
uniqueNodeLabelStrategy:
labelKey: kubernetes.io/hostname
- opcode: createNamespaces
prefix: sched
count: 2
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-with-preferred-pod-affinity.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $measurePods
podTemplatePath: config/pod-with-preferred-pod-affinity.yaml
namespace: sched-test
namespace: sched-1
collectMetrics: true
workloads:
- name: 500Nodes
@@ -227,14 +236,17 @@
countParam: $initNodes
uniqueNodeLabelStrategy:
labelKey: kubernetes.io/hostname
- opcode: createNamespaces
prefix: sched
count: 2
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-with-preferred-pod-anti-affinity.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $measurePods
podTemplatePath: config/pod-with-preferred-pod-anti-affinity.yaml
namespace: sched-test
namespace: sched-1
collectMetrics: true
workloads:
- name: 500Nodes
@@ -337,26 +349,29 @@
labelNodePrepareStrategy:
labelKey: "topology.kubernetes.io/zone"
labelValues: ["zone1"]
- opcode: createNamespaces
prefix: sched
count: 1
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-default.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-with-pod-affinity.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-with-pod-anti-affinity.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-with-preferred-pod-affinity.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $initPods
podTemplatePath: config/pod-with-preferred-pod-anti-affinity.yaml
namespace: sched-setup
namespace: sched-0
- opcode: createPods
countParam: $measurePods
podTemplatePath: config/pod-default.yaml
@@ -478,7 +493,7 @@
- name: SchedulingRequiredPodAntiAffinityWithNSSelector
featureGates:
PodAffinityNamespaceSelector: true
PodAffinityNamespaceSelector: true
workloadTemplate:
- opcode: createNodes
countParam: $initNodes
@@ -511,10 +526,10 @@
initPodsPerNamespace: 40
initNamespaces: 100
measurePods: 1000
- name: SchedulingPreferredAntiAffinityWithNSSelector
featureGates:
PodAffinityNamespaceSelector: true
PodAffinityNamespaceSelector: true
workloadTemplate:
- opcode: createNodes
countParam: $initNodes
@@ -550,7 +565,7 @@
- name: SchedulingRequiredPodAffinityWithNSSelector
featureGates:
PodAffinityNamespaceSelector: true
PodAffinityNamespaceSelector: true
workloadTemplate:
- opcode: createNodes
countParam: $initNodes
@@ -584,10 +599,10 @@
initPodsPerNamespace: 50
initNamespaces: 100
measurePods: 1000
- name: SchedulingPreferredAffinityWithNSSelector
featureGates:
PodAffinityNamespaceSelector: true
PodAffinityNamespaceSelector: true
workloadTemplate:
- opcode: createNodes
countParam: $initNodes
@@ -620,4 +635,4 @@
initPodsPerNamespace: 50
initNamespaces: 100
measurePods: 1000

View File

@@ -12,7 +12,7 @@ spec:
matchLabels:
color: blue
topologyKey: topology.kubernetes.io/zone
namespaces: ["sched-test", "sched-setup"]
namespaces: ["sched-1", "sched-0"]
containers:
- image: k8s.gcr.io/pause:3.6
name: pause

View File

@@ -12,7 +12,7 @@ spec:
matchLabels:
color: green
topologyKey: kubernetes.io/hostname
namespaces: ["sched-test", "sched-setup"]
namespaces: ["sched-1", "sched-0"]
containers:
- image: k8s.gcr.io/pause:3.6
name: pause

View File

@@ -13,7 +13,7 @@ spec:
matchLabels:
color: red
topologyKey: kubernetes.io/hostname
namespaces: ["sched-test", "sched-setup"]
namespaces: ["sched-1", "sched-0"]
weight: 1
containers:
- image: k8s.gcr.io/pause:3.6

View File

@@ -13,7 +13,7 @@ spec:
matchLabels:
color: yellow
topologyKey: kubernetes.io/hostname
namespaces: ["sched-test", "sched-setup"]
namespaces: ["sched-1", "sched-0"]
weight: 1
containers:
- image: k8s.gcr.io/pause:3.6