Add multiple init pods to perf test cases

Add test case with several init pods with affinity or antiaffinity.

Signed-off-by: Aldo Culquicondor <acondor@google.com>
This commit is contained in:
Aldo Culquicondor
2020-03-23 14:55:12 -04:00
parent 0e66e56e70
commit 5adc4c41e3
6 changed files with 113 additions and 86 deletions

View File

@@ -1,60 +1,60 @@
- template:
desc: SchedulingBasic
initPods:
podTemplatePath: config/pod-default.yaml
- podTemplatePath: config/pod-default.yaml
podsToSchedule:
podTemplatePath: config/pod-default.yaml
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: SchedulingPodAntiAffinity
nodes:
uniqueNodeLabelStrategy:
labelKey: kubernetes.io/hostname
initPods:
podTemplatePath: config/pod-with-pod-anti-affinity.yaml
- podTemplatePath: config/pod-with-pod-anti-affinity.yaml
podsToSchedule:
podTemplatePath: config/pod-with-pod-anti-affinity.yaml
params:
- numNodes: 500
numInitPods: 100
numPodsToSchedule: 400
- numNodes: 5000
numInitPods: 1000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [100]
numPodsToSchedule: 400
- numNodes: 5000
numInitPods: [1000]
numPodsToSchedule: 1000
- template:
desc: SchedulingSecrets
initPods:
podTemplatePath: config/pod-with-secret-volume.yaml
- podTemplatePath: config/pod-with-secret-volume.yaml
podsToSchedule:
podTemplatePath: config/pod-with-secret-volume.yaml
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: SchedulingInTreePVs
initPods:
persistentVolumeTemplatePath: config/pv-aws.yaml
- persistentVolumeTemplatePath: config/pv-aws.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml
podsToSchedule:
persistentVolumeTemplatePath: config/pv-aws.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: SchedulingMigratedInTreePVs
nodes:
@@ -66,9 +66,9 @@
ebs.csi.aws.com:
count: 39
migratedPlugins:
- "kubernetes.io/aws-ebs"
- "kubernetes.io/aws-ebs"
initPods:
persistentVolumeTemplatePath: config/pv-aws.yaml
- persistentVolumeTemplatePath: config/pv-aws.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml
podsToSchedule:
persistentVolumeTemplatePath: config/pv-aws.yaml
@@ -77,12 +77,12 @@
CSIMigration: true
CSIMigrationAWS: true
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: SchedulingCSIPVs
nodes:
@@ -94,18 +94,18 @@
ebs.csi.aws.com:
count: 39
initPods:
persistentVolumeTemplatePath: config/pv-csi.yaml
- persistentVolumeTemplatePath: config/pv-csi.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml
podsToSchedule:
persistentVolumeTemplatePath: config/pv-csi.yaml
persistentVolumeClaimTemplatePath: config/pvc.yaml
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: SchedulingPodAffinity
nodes:
@@ -114,48 +114,48 @@
labelKey: "failure-domain.beta.kubernetes.io/zone"
labelValue: "zone1"
initPods:
podTemplatePath: config/pod-with-pod-affinity.yaml
- podTemplatePath: config/pod-with-pod-affinity.yaml
podsToSchedule:
podTemplatePath: config/pod-with-pod-affinity.yaml
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: SchedulingPreferredPodAffinity
nodes:
uniqueNodeLabelStrategy:
labelKey: kubernetes.io/hostname
initPods:
podTemplatePath: config/pod-with-preferred-pod-affinity.yaml
- podTemplatePath: config/pod-with-preferred-pod-affinity.yaml
podsToSchedule:
podTemplatePath: config/pod-with-preferred-pod-affinity.yaml
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: SchedulingPreferredPodAntiAffinity
nodes:
uniqueNodeLabelStrategy:
labelKey: kubernetes.io/hostname
initPods:
podTemplatePath: config/pod-with-preferred-pod-anti-affinity.yaml
- podTemplatePath: config/pod-with-preferred-pod-anti-affinity.yaml
podsToSchedule:
podTemplatePath: config/pod-with-preferred-pod-anti-affinity.yaml
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: SchedulingNodeAffinity
nodes:
@@ -164,13 +164,30 @@
labelKey: "failure-domain.beta.kubernetes.io/zone"
labelValue: "zone1"
initPods:
podTemplatePath: config/pod-with-node-affinity.yaml
- podTemplatePath: config/pod-with-node-affinity.yaml
podsToSchedule:
podTemplatePath: config/pod-with-node-affinity.yaml
params:
- numNodes: 500
numInitPods: 500
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: 5000
numPodsToSchedule: 1000
- numNodes: 500
numInitPods: [500]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [5000]
numPodsToSchedule: 1000
- template:
desc: MixedSchedulingBasePod
initPods:
- podTemplatePath: config/pod-default.yaml
- podTemplatePath: config/pod-with-pod-affinity.yaml
- podTemplatePath: config/pod-with-pod-anti-affinity.yaml
- podTemplatePath: config/pod-with-preferred-pod-affinity.yaml
- podTemplatePath: config/pod-with-preferred-pod-anti-affinity.yaml
podsToSchedule:
podTemplatePath: config/pod-default.yaml
params:
- numNodes: 500
numInitPods: [200, 200, 200, 200, 200]
numPodsToSchedule: 1000
- numNodes: 5000
numInitPods: [2000, 2000, 2000, 2000, 2000]
numPodsToSchedule: 1000

View File

@@ -3,14 +3,14 @@ kind: Pod
metadata:
generateName: affinity-pod-
labels:
foo: ""
color: blue
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
foo: ""
color: blue
topologyKey: failure-domain.beta.kubernetes.io/zone
namespaces: ["sched-test", "sched-setup"]
containers:

View File

@@ -4,7 +4,6 @@ metadata:
generateName: anti-affinity-pod-
labels:
color: green
name: test
spec:
affinity:
podAntiAffinity:

View File

@@ -3,7 +3,7 @@ kind: Pod
metadata:
generateName: preferred-affinity-pod-
labels:
foo: ""
color: red
spec:
affinity:
podAffinity:
@@ -11,7 +11,7 @@ spec:
- podAffinityTerm:
labelSelector:
matchLabels:
foo: ""
color: red
topologyKey: kubernetes.io/hostname
namespaces: ["sched-test", "sched-setup"]
weight: 1

View File

@@ -3,7 +3,7 @@ kind: Pod
metadata:
generateName: preferred-anti-affinity-pod-
labels:
foo: ""
color: yellow
spec:
affinity:
podAntiAffinity:
@@ -11,7 +11,7 @@ spec:
- podAffinityTerm:
labelSelector:
matchLabels:
foo: ""
color: yellow
topologyKey: kubernetes.io/hostname
namespaces: ["sched-test", "sched-setup"]
weight: 1