Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for NumNodes (0.33 sec)

  1. pkg/scheduler/framework/plugins/imagelocality/image_locality.go

    // a few nodes due to image locality.
    func scaledImageScore(imageState *framework.ImageStateSummary, totalNumNodes int) int64 {
    	spread := float64(imageState.NumNodes) / float64(totalNumNodes)
    	return int64(float64(imageState.Size) * spread)
    }
    
    // normalizedImageName returns the CRI compliant name for a given image.
    // TODO: cover the corner cases of missed matches, e.g,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 06:17:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. pkg/scheduler/schedule_one.go

    		if percentage < minFeasibleNodesPercentageToFind {
    			percentage = minFeasibleNodesPercentageToFind
    		}
    	}
    
    	numNodes = numAllNodes * percentage / 100
    	if numNodes < minFeasibleNodesToFind {
    		return minFeasibleNodesToFind
    	}
    
    	return numNodes
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/attach_detach_controller_test.go

    				pod.Spec.Volumes[0].Name,
    				pod.Spec.NodeName)
    		}
    	}
    }
    
    func largeClusterClient(t testing.TB, numNodes int) *fake.Clientset {
    	// Arrange
    	fakeKubeClient := fake.NewSimpleClientset()
    
    	// populate numNodes nodes, each with 100 volumes
    	for i := 0; i < numNodes; i++ {
    		nodeName := fmt.Sprintf("node-%d", i)
    		node := &v1.Node{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: nodeName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/types_pluginargs.go

    	// MinCandidateNodesAbsolute is the absolute minimum number of candidates to
    	// shortlist. The likely number of candidates enumerated for dry running
    	// preemption is given by the formula:
    	// numCandidates = max(numNodes * minCandidateNodesPercentage, minCandidateNodesAbsolute)
    	// We say "likely" because there are other factors such as PDB violations
    	// that play a role in the number of candidates shortlisted. Must be at least
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 13 23:15:53 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    	const numNodes = 50
    	const podsPerNode = 100
    	makeNodes := func() []*v1.Node {
    		nodes := make([]*v1.Node, numNodes)
    		// Node created long time ago, with status updated by kubelet exceeds grace period.
    		// Expect pods status updated and Unknown node status posted from node controller
    		for i := 0; i < numNodes; i++ {
    			nodes[i] = &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

    	logger.V(5).Info("remembering potential nodes", "pod", klog.KObj(pod), "potentialnodes", klog.KObjSlice(nodes))
    	numNodes := len(nodes)
    	if numNodes > resourcev1alpha2.PodSchedulingNodeListMaxSize {
    		numNodes = resourcev1alpha2.PodSchedulingNodeListMaxSize
    	}
    	potentialNodes := make([]string, 0, numNodes)
    	if numNodes == len(nodes) {
    		// Copy all node names.
    		for _, node := range nodes {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:22:37 UTC 2024
    - 75.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/types.go

    type ImageStateSummary struct {
    	// Size of the image
    	Size int64
    	// Used to track how many nodes have this image, it is computed from the Nodes field below
    	// during the execution of Snapshot.
    	NumNodes int
    	// A set of node names for nodes having this image present. This field is used for
    	// keeping track of the nodes during update/add/remove events.
    	Nodes sets.Set[string]
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 19:28:17 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  8. pkg/controller/daemon/daemon_controller_test.go

    			},
    			Allocatable: v1.ResourceList{
    				v1.ResourcePods: resource.MustParse("100"),
    			},
    		},
    	}
    }
    
    func addNodes(nodeStore cache.Store, startIndex, numNodes int, label map[string]string) {
    	for i := startIndex; i < startIndex+numNodes; i++ {
    		nodeStore.Add(newNode(fmt.Sprintf("node-%d", i), label))
    	}
    }
    
    func newPod(podName string, nodeName string, label map[string]string, ds *apps.DaemonSet) *v1.Pod {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  9. src/compress/flate/inflate.go

    	// additional proviso in section 3.2.5 which implies that distance codes
    	// 30 and 31 should never occur in compressed data.
    	maxNumLit  = 286
    	maxNumDist = 30
    	numCodes   = 19 // number of codes in Huffman meta-code
    )
    
    // Initialize the fixedHuffmanDecoder only once upon first use.
    var fixedOnce sync.Once
    var fixedHuffmanDecoder huffmanDecoder
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  10. pkg/generated/openapi/zz_generated.openapi.go

    							Description: "MinCandidateNodesAbsolute is the absolute minimum number of candidates to shortlist. The likely number of candidates enumerated for dry running preemption is given by the formula: numCandidates = max(numNodes * minCandidateNodesPercentage, minCandidateNodesAbsolute) We say \"likely\" because there are other factors such as PDB violations that play a role in the number of candidates shortlisted. Must be at least 0 nodes. Defaults to 100 nodes if unspecified.",...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
Back to top