Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for nominator (0.15 sec)

  1. pkg/scheduler/internal/queue/scheduling_queue.go

    }
    
    // NewPodNominator creates a nominator as a backing of framework.PodNominator.
    // A podLister is passed in so as to check if the pod exists
    // before adding its nominatedNode info.
    func NewPodNominator(podLister listersv1.PodLister) framework.PodNominator {
    	return newPodNominator(podLister)
    }
    
    func newPodNominator(podLister listersv1.PodLister) *nominator {
    	return &nominator{
    		podLister:          podLister,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/python/testing.py

    
    def get_size_ratio(path_a: str, path_b: str) -> float:
      """Return the size ratio of the given paths.
    
      Args:
        path_a: Path of a directory or a file to be the nominator of the ratio.
        path_b: Path of a directory or a file to be the denominator of the ratio.
    
      Returns:
        Ratio of size of path_a / size of path_b.
      """
      size_a = get_dir_size(path_a)
      size_b = get_dir_size(path_b)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	}
    	if len(q.nominator.nominatedPods) != 1 {
    		t.Errorf("Expected nomindatePods to have only 'unschedulablePodInfo': %v", q.nominator.nominatedPods)
    	}
    	if err := q.Delete(unschedulablePodInfo.Pod); err != nil {
    		t.Errorf("delete failed: %v", err)
    	}
    	if len(q.nominator.nominatedPods) != 0 {
    		t.Errorf("Expected nomindatePods to be empty: %v", q.nominator)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/interface.go

    	if ni == nil {
    		return ModeNoop
    	}
    	return ni.NominatingMode
    }
    
    // PodNominator abstracts operations to maintain nominated Pods.
    type PodNominator interface {
    	// AddNominatedPod adds the given pod to the nominator or
    	// updates it if it already exists.
    	AddNominatedPod(logger klog.Logger, pod *PodInfo, nominatingInfo *NominatingInfo)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/runtime/framework.go

    	// nominated pods, we run them when those pods are added to PreFilter state and nodeInfo.
    	// If all filters succeed in this pass, we run them again when these
    	// nominated pods are not added. This second pass is necessary because some
    	// filters such as inter-pod affinity may not pass without the nominated pods.
    	// If there are no nominated pods for the node or if the first run of the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/dom_test.go

    			t.Errorf("expected %s as dominator of %s, found %s", d, n, blockNames[domNode])
    		default:
    			t.Fatal("unexpected dominator condition")
    		}
    	}
    
    	for id, d := range calcDom {
    		// If nil, we've already verified it
    		if d == nil {
    			continue
    		}
    		for _, b := range fut.blocks {
    			if int(b.ID) == id {
    				t.Errorf("unexpected dominator of %s for %s", blockNames[d], blockNames[b])
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/preemption/preemption.go

    // priority of the given "pod" and are nominated to run on the given node.
    // Note: We could possibly check if the nominated lower priority pods still fit
    // and return those that no longer fit, but that would require lots of
    // manipulation of NodeInfo and PreFilter state per nominated pod. It may not be
    // worth the complexity, especially because we generally expect to have a very
    // small number of nominated pods per node.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/route/route_internal_test.go

    						Numerator:   uint32(50 * 10000),
    						Denominator: xdstype.FractionalPercent_MILLION,
    					},
    					FaultDelaySecifier: &xdsfault.FaultDelay_FixedDelay{
    						FixedDelay: &durationpb.Duration{
    							Seconds: int64(3),
    						},
    					},
    				},
    				Abort: &xdshttpfault.FaultAbort{
    					Percentage: &xdstype.FractionalPercent{
    						Numerator:   uint32(50 * 10000),
    						Denominator: xdstype.FractionalPercent_MILLION,
    					},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 02:47:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/LongMath.java

        x /= commonDivisor;
        denominator /= commonDivisor;
        // We know gcd(x, denominator) = 1, and x * numerator / denominator is exact,
        // so denominator must be a divisor of numerator.
        return x * (numerator / denominator);
      }
    
      /*
       * binomial(biggestBinomials[k], k) fits in a long, but not binomial(biggestBinomials[k] + 1, k).
       */
      static final int[] biggestBinomials = {
        Integer.MAX_VALUE,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  10. cmd/utils.go

    }
    
    // ceilFrac takes a numerator and denominator representing a fraction
    // and returns its ceiling. If denominator is 0, it returns 0 instead
    // of crashing.
    func ceilFrac(numerator, denominator int64) (ceil int64) {
    	if denominator == 0 {
    		// do nothing on invalid input
    		return
    	}
    	// Make denominator positive
    	if denominator < 0 {
    		numerator = -numerator
    		denominator = -denominator
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
Back to top