Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for Prioritize (0.14 sec)

  1. pkg/scheduler/testing/framework/fake_extender.go

    }
    
    // Prioritize implements the extender Prioritize function.
    func (f *FakeExtender) Prioritize(pod *v1.Pod, nodes []*framework.NodeInfo) (*extenderv1.HostPriorityList, int64, error) {
    	result := extenderv1.HostPriorityList{}
    	combinedScores := map[string]int64{}
    	for _, prioritizer := range f.Prioritizers {
    		weight := prioritizer.Weight
    		if weight == 0 {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/types.go

    	PreemptVerb string
    	// Verb for the prioritize call, empty if not supported. This verb is appended to the URLPrefix when issuing the prioritize call to extender.
    	PrioritizeVerb string
    	// The numeric multiplier for the node scores that the prioritize call generates.
    	// The weight should be a positive integer
    	Weight int64
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 18:47:23 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. pkg/scheduler/extender.go

    }
    
    // Prioritize based on extender implemented priority functions. Weight*priority is added
    // up for each such priority function. The returned score is added to the score computed
    // by Kubernetes scheduler. The total score is used to do the host selection.
    func (h *HTTPExtender) Prioritize(pod *v1.Pod, nodes []*framework.NodeInfo) (*extenderv1.HostPriorityList, int64, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/validation/validation_test.go

    					Enabled: []config.Plugin{{Name: "CustomSort"}},
    				},
    				Bind: config.PluginSet{
    					Enabled: []config.Plugin{{Name: "CustomBind"}},
    				},
    			},
    		}},
    		Extenders: []config.Extender{{
    			PrioritizeVerb: "prioritize",
    			Weight:         1,
    		}},
    	}
    
    	invalidParallelismValue := validConfig.DeepCopy()
    	invalidParallelismValue.Parallelism = 0
    
    	resourceNameNotSet := validConfig.DeepCopy()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. maven-di/src/main/java/org/apache/maven/di/impl/ReflectionUtils.java

                    },
                    toDependencies(method.getDeclaringClass(), method));
    
            Priority priority = method.getAnnotation(Priority.class);
            if (priority != null) {
                binding = binding.prioritize(priority.value());
            }
    
            return binding;
        }
    
        public static <T> Binding<T> bindingFromConstructor(Key<T> key, Constructor<T> constructor) {
            constructor.setAccessible(true);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. pkg/scheduler/extender_test.go

    				EvaluatedNodes: 2,
    				FeasibleNodes:  2,
    			}, // node2 has higher score
    			name: "test 7",
    		},
    		{
    			// Scheduler is expected to not send pod to extender in
    			// Filter/Prioritize phases if the extender is not interested in
    			// the pod.
    			//
    			// If scheduler sends the pod by mistake, the test would fail
    			// because of the errors from errorPredicateExtender and/or
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/initorder.go

    	x.index, y.index = j, i
    }
    
    func (a nodeQueue) Less(i, j int) bool {
    	x, y := a[i], a[j]
    
    	// Prioritize all constants before non-constants. See go.dev/issue/66575/.
    	_, xConst := x.obj.(*Const)
    	_, yConst := y.obj.(*Const)
    	if xConst != yConst {
    		return xConst
    	}
    
    	// nodes are prioritized by number of incoming dependencies (1st key)
    	// and source order (2nd key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. src/go/types/initorder.go

    	x.index, y.index = j, i
    }
    
    func (a nodeQueue) Less(i, j int) bool {
    	x, y := a[i], a[j]
    
    	// Prioritize all constants before non-constants. See go.dev/issue/66575/.
    	_, xConst := x.obj.(*Const)
    	_, yConst := y.obj.(*Const)
    	if xConst != yConst {
    		return xConst
    	}
    
    	// nodes are prioritized by number of incoming dependencies (1st key)
    	// and source order (2nd key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. pkg/controller/resourcequota/resource_quota_controller.go

    	// if we declared an intent that is not yet captured in status (prioritize it)
    	if !apiequality.Semantic.DeepEqual(resourceQuota.Spec.Hard, resourceQuota.Status.Hard) {
    		rq.missingUsageQueue.Add(key)
    		return
    	}
    
    	// if we declared a constraint that has no usage (which this controller can calculate, prioritize it)
    	for constraint := range resourceQuota.Status.Hard {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactLinkedHashMap.java

     * java.util.LinkedHashMap}. Generally speaking, this class reduces object allocation and memory
     * consumption at the price of moderately increased constant factors of CPU. Only use this class
     * when there is a specific reason to prioritize memory over CPU.
     *
     * @author Louis Wasserman
     */
    @J2ktIncompatible // no support for access-order mode in LinkedHashMap delegate
    @GwtIncompatible // not worth using in GWT for now
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top