set numberOfWorkers for netpol suite to the ideal value (3) that is non-disruptive

This commit is contained in:
jay vyas 2021-01-04 21:59:50 -05:00
parent e765ab2e7e
commit ba0a87015a

View File

@ -42,7 +42,7 @@ type ProbeJobResults struct {
// ProbePodToPodConnectivity runs a series of probes in kube, and records the results in `testCase.Reachability` // ProbePodToPodConnectivity runs a series of probes in kube, and records the results in `testCase.Reachability`
func ProbePodToPodConnectivity(k8s *kubeManager, model *Model, testCase *TestCase) { func ProbePodToPodConnectivity(k8s *kubeManager, model *Model, testCase *TestCase) {
numberOfWorkers := 30 numberOfWorkers := 3 // See https://github.com/kubernetes/kubernetes/pull/97690
allPods := model.AllPods() allPods := model.AllPods()
size := len(allPods) * len(allPods) size := len(allPods) * len(allPods)
jobs := make(chan *ProbeJob, size) jobs := make(chan *ProbeJob, size)