INNER CODE UNIT · Go
totalWorkers
kubernetes-sigs/agent-sandbox · cmd/agent-sandbox-controller/main.go:236
totalWorkers := sandboxConcurrentWorkers + sandboxClaimConcurrentWorkers + sandboxWarmPoolConcurrentWorkers + sandboxTemplateConcurrentWorkers
if totalWorkers > 1000 {
setupLog.Info("Warning: total concurrent workers exceeds 1000, which could lead to resource exhaustion", "total", totalWorkers)
}
if kubeAPIBurst <= 0 {
setupLog.Error(nil, "kube-api-burst must be greater than 0")
os.Exit(1)
}
if apiConnections < 1 {
setupLog.Error(nil, "api-connections must be greater than or equal to 1")
os.Exit(1)
}
// Warning if the total number of workers exceeds the kube API burst limit
if kubeAPIQPS > 0 && totalWorkers > kubeAPIBurst {
setupLog.Info("Warning: Total concurrent workers exceeds the kube API burst limit. Workers may experience client-side throttling.",
"totalWorkers", totalWorkers,
"kubeAPIBurst", kubeAPIBurst,