Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for numPods (0.13 sec)

  1. pkg/scheduler/internal/cache/node_tree_test.go

    	expectedNumNodes := int(0)
    	for _, na := range expectedTree {
    		expectedNumNodes += len(na)
    	}
    	if numNodes := nt.numNodes; numNodes != expectedNumNodes {
    		t.Errorf("unexpected nodeTree.numNodes. Expected: %v, Got: %v", expectedNumNodes, numNodes)
    	}
    	if diff := cmp.Diff(expectedTree, nt.tree); diff != "" {
    		t.Errorf("Unexpected node tree (-want, +got):\n%s", diff)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. src/math/big/nat.go

    				zz = zz.montgomery(z, z, m, k0, numWords)
    				z = z.montgomery(zz, zz, m, k0, numWords)
    				zz = zz.montgomery(z, z, m, k0, numWords)
    				z = z.montgomery(zz, zz, m, k0, numWords)
    			}
    			zz = zz.montgomery(z, powers[yi>>(_W-n)], m, k0, numWords)
    			z, zz = zz, z
    			yi <<= n
    		}
    	}
    	// convert to regular number
    	zz = zz.montgomery(z, one, m, k0, numWords)
    
    	// One last reduction, just in case.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/cache/snapshot.go

    	return s
    }
    
    // StorageInfos returns a StorageInfoLister.
    func (s *Snapshot) StorageInfos() framework.StorageInfoLister {
    	return s
    }
    
    // NumNodes returns the number of nodes in the snapshot.
    func (s *Snapshot) NumNodes() int {
    	return len(s.nodeInfoList)
    }
    
    // List returns the list of nodes in the snapshot.
    func (s *Snapshot) List() ([]*framework.NodeInfo, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. pkg/scheduler/internal/cache/snapshot_test.go

    				"gcr.io/200:v1": sets.New("node-0"),
    			},
    			expected: map[string]*framework.ImageStateSummary{
    				"gcr.io/10:v1": {
    					Size:     int64(10 * mb),
    					NumNodes: 2,
    				},
    				"gcr.io/200:v1": {
    					Size:     int64(200 * mb),
    					NumNodes: 1,
    				},
    			},
    		},
    		{
    			node: &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{Name: "node-0"},
    				Status:     v1.NodeStatus{},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 12K bytes
    - Viewed (0)
  5. internal/bucket/bandwidth/monitor.go

    // NewMonitor returns a monitor with defaults.
    func NewMonitor(ctx context.Context, numNodes uint64) *Monitor {
    	m := &Monitor{
    		bucketsMeasurement:    make(map[BucketOptions]*bucketMeasurement),
    		bucketsThrottle:       make(map[BucketOptions]*bucketThrottle),
    		bucketMovingAvgTicker: time.NewTicker(2 * time.Second),
    		ctx:                   ctx,
    		NodeCount:             numNodes,
    	}
    	go m.trackEWMA()
    	return m
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/volumezone/volume_zone_test.go

    	tests := []struct {
    		Name      string
    		Pod       *v1.Pod
    		NumPV     int
    		NumPVC    int
    		NumNodes  int
    		PreFilter bool
    	}{
    		{
    			Name:      "with prefilter",
    			Pod:       createPodWithVolume("pod_0", "PVC_Stable_0"),
    			NumPV:     1000,
    			NumPVC:    1000,
    			NumNodes:  1000,
    			PreFilter: true,
    		},
    		{
    			Name:      "without prefilter",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 05:17:04 UTC 2023
    - 20K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/cache/cache.go

    	snapshot.havePodsWithRequiredAntiAffinityNodeInfoList = make([]*framework.NodeInfo, 0, cache.nodeTree.numNodes)
    	snapshot.usedPVCSet = sets.New[string]()
    	if updateAll {
    		// Take a snapshot of the nodes order in the tree
    		snapshot.nodeInfoList = make([]*framework.NodeInfo, 0, cache.nodeTree.numNodes)
    		nodesList, err := cache.nodeTree.list()
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 09:56:48 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  8. 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)
  9. pkg/scheduler/internal/cache/cache_test.go

    	if len(snapshot.nodeInfoList) != cache.nodeTree.numNodes {
    		return fmt.Errorf("unexpected number of nodes in NodeInfoList. Expected: %v, got: %v", cache.nodeTree.numNodes, len(snapshot.nodeInfoList))
    	}
    
    	expectedNodeInfoList := make([]*framework.NodeInfo, 0, cache.nodeTree.numNodes)
    	expectedHavePodsWithAffinityNodeInfoList := make([]*framework.NodeInfo, 0, cache.nodeTree.numNodes)
    	expectedUsedPVCSet := sets.New[string]()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 63.8K bytes
    - Viewed (0)
  10. 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)
Back to top