Reduce CEL runtime cost limits by 1/2 based on latency goals

This commit is contained in:
Joe Betz 2022-03-29 14:37:57 -04:00
parent 1ea07d482a
commit 0d30e21867

View File

@ -44,11 +44,11 @@ const (
// PerCallLimit specify the actual cost limit per CEL validation call
// current PerCallLimit gives roughly 0.1 second for each expression validation call
PerCallLimit = 2000000
PerCallLimit = 1000000
// RuntimeCELCostBudget is the overall cost budget for runtime CEL validation cost per CustomResource
// current RuntimeCELCostBudget gives roughly 1 seconds for CR validation
RuntimeCELCostBudget = 20000000
RuntimeCELCostBudget = 10000000
// checkFrequency configures the number of iterations within a comprehension to evaluate
// before checking whether the function evaluation has been interrupted