"--scheduler-profile" option to allow different orchestration patterns (#224)

* "--scheduler-profile" option to allow different orchestration patterns

* API(cluster settings): provide a default value for scheduler profile
This commit is contained in:
Nikolay Edigaryev
2024-11-28 20:07:46 +04:00
committed by GitHub
parent 4c63cea062
commit 7fe0414981
14 changed files with 338 additions and 99 deletions
+2 -2
View File
@@ -350,10 +350,10 @@ func (controller *Controller) initializeMetrics() error {
return err
}
_, workerToResources := scheduler.ProcessVMs(vms)
_, workerInfos := scheduler.ProcessVMs(vms)
for _, worker := range workers {
resourcesUsed := workerToResources.Get(worker.Name)
resourcesUsed := workerInfos.Get(worker.Name).ResourcesUsed
for key, value := range resourcesUsed {
observer.Observe(int64(value), metric.WithAttributes(