We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b99c0b commit 9d692efCopy full SHA for 9d692ef
controllers/controller-manager/problemenvironment_controller.go
@@ -181,6 +181,11 @@ func (r *ProblemEnvironmentReconciler) electWorker(
181
memoryUsedPercent = MAX_USED_PERCENT
182
}
183
184
+ // If resource usage is above 90%, it's too danger to deploy to this worker.
185
+ if cpuUsedPercent > 90.0 || memoryUsedPercent > 90.0 {
186
+ continue
187
+ }
188
+
189
arr = append(arr, WorkerResource{
190
Name: workers.Items[i].Name,
191
Count: count,
0 commit comments