twosigma / Cook

Fair job scheduler on Kubernetes and Mesos for batch workloads and Spark
Apache License 2.0
337 stars 63 forks source link

Add special version of add-starting-pods-reverse #2144

Closed scrosby closed 2 years ago

scrosby commented 2 years ago

Changes proposed in this PR

Why are we making these changes?

It is more efficient to add the smaller set to the larger set. In other contexts, we want to add the starting pods to the set of all pods. But in the specific context of calculating pods on a machine, the number of pods on the machine is the smaller set.