Skip to content

Commit

Permalink
add comment on MaxPodsPerBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 committed Nov 19, 2021
1 parent 0ce3452 commit 65a200e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controllers/provisioning/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 65a200e

Please sign in to comment.