@@ -31,7 +31,6 @@ import (
31
31
"time"
32
32
33
33
"github.com/eapache/go-resiliency/retrier"
34
- "github.com/gogo/protobuf/proto"
35
34
"github.com/hashicorp/go-multierror"
36
35
qmutils "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/quotaplugins/util"
37
36
@@ -71,7 +70,6 @@ import (
71
70
"github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/controller/queuejobdispatch"
72
71
73
72
clusterstateapi "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/controller/clusterstate/api"
74
- clusterstatecache "github.com/project-codeflare/multi-cluster-app-dispatcher/pkg/controller/clusterstate/cache"
75
73
)
76
74
77
75
// XController the AppWrapper Controller type
@@ -110,7 +108,7 @@ type XController struct {
110
108
111
109
//TODO: Do we need this local cache?
112
110
// our own local cache, used for computing total amount of resources
113
- cache clusterstatecache.Cache
111
+ // cache clusterstatecache.Cache
114
112
115
113
// is dispatcher or deployer?
116
114
isDispatcher bool
@@ -207,8 +205,8 @@ func NewJobController(config *rest.Config, serverOption *options.ServerOption) *
207
205
initQueue : cache .NewFIFO (GetQueueJobKey ),
208
206
updateQueue : cache .NewFIFO (GetQueueJobKey ),
209
207
qjqueue : NewSchedulingQueue (),
210
- //TODO: do we still need cache to be initialized?
211
- cache : clusterstatecache .New (config ),
208
+ //cache is turned-off, issue: https://github.com/project-codeflare/multi-cluster-app-dispatcher/issues/588
209
+ // cache: clusterstatecache.New(config),
212
210
schedulingAW : nil ,
213
211
}
214
212
//TODO: work on enabling metrics adapter for correct MCAD mode
@@ -1157,12 +1155,12 @@ func (qjm *XController) ScheduleNext(qj *arbv1.AppWrapper) {
1157
1155
// Assume preemption will remove low priroity AWs in the system, optimistically dispatch such AWs
1158
1156
1159
1157
if aggqj .LessEqual (resources ) {
1160
- //TODO: should we turn -off histograms?
1161
- unallocatedHistogramMap := qjm .cache .GetUnallocatedHistograms ()
1162
- if ! qjm .nodeChecks (unallocatedHistogramMap , qj ) {
1163
- klog .Infof ("[ScheduleNext] [Agent Mode] Optimistic dispatch for AW '%s/%s' requesting aggregated resources %v histogram for point in-time fragmented resources are available in the cluster %s" ,
1164
- qj .Name , qj .Namespace , qjm .GetAggregatedResources (qj ), proto .MarshalTextString (unallocatedHistogramMap ["gpu" ]))
1165
- }
1158
+ //cache is turned -off, refer issue: https://github.com/project-codeflare/multi-cluster-app-dispatcher/issues/588
1159
+ // unallocatedHistogramMap := qjm.cache.GetUnallocatedHistograms()
1160
+ // if !qjm.nodeChecks(unallocatedHistogramMap, qj) {
1161
+ // klog.Infof("[ScheduleNext] [Agent Mode] Optimistic dispatch for AW '%s/%s' requesting aggregated resources %v histogram for point in-time fragmented resources are available in the cluster %s",
1162
+ // qj.Name, qj.Namespace, qjm.GetAggregatedResources(qj), proto.MarshalTextString(unallocatedHistogramMap["gpu"]))
1163
+ // }
1166
1164
// Now evaluate quota
1167
1165
fits := true
1168
1166
klog .Infof ("[ScheduleNext] [Agent Mode] available resourse successful check for '%s/%s' at %s activeQ=%t Unsched=%t &qj=%p Version=%s Status=%+v." ,
@@ -1464,7 +1462,7 @@ func (cc *XController) Run(stopCh <-chan struct{}) {
1464
1462
1465
1463
cache .WaitForCacheSync (stopCh , cc .appWrapperSynced )
1466
1464
1467
- //TODO: do we still need to run cache every second?
1465
+ //cache is turned off, issue: https://github.com/project-codeflare/multi-cluster-app-dispatcher/issues/588
1468
1466
// update snapshot of ClientStateCache every second
1469
1467
//cc.cache.Run(stopCh)
1470
1468
0 commit comments