diff --git a/pkg/controllers/provisioning/provisioner.go b/pkg/controllers/provisioning/provisioner.go index 4ef3ff99705b..e2fbcc1cbdeb 100644 --- a/pkg/controllers/provisioning/provisioner.go +++ b/pkg/controllers/provisioning/provisioner.go @@ -29,7 +29,8 @@ import ( var ( MaxBatchDuration = time.Second * 10 MinBatchDuration = time.Second * 1 - MaxPodsPerBatch = 2_000 + // MaxPodsPerBatch limits the number of pods we process at one time to avoid using too much memory + MaxPodsPerBatch = 2_000 ) // Provisioner waits for enqueued pods, batches them, creates capacity and binds the pods to the capacity.