Half the no. of endpoints in load test

This commit is contained in:
Shyam Jeedigunta 2018-06-18 14:59:45 +02:00
parent 6d3f5b75f5
commit 3768d8a9a3

View File

@ -535,8 +535,11 @@ func GenerateConfigsForGroup(
MemRequest: 26214400, // 25MB
SecretNames: secretNames,
ConfigMapNames: configMapNames,
// Define a label to group every 2 RCs into one service.
Labels: map[string]string{svcLabelKey: groupName + "-" + strconv.Itoa((i+1)/2)},
}
// Add a label to alternate RCs, to include only half of them in services.
if i%2 == 0 {
baseConfig.Labels = map[string]string{svcLabelKey: groupName + "-" + strconv.Itoa(i/2)}
}
if kind == randomKind {