- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for numPods (0.35 sec)
-
pkg/controller/podgc/gc_controller.go
} } deleteCount := len(terminatingPods) if deleteCount == 0 { return } logger.V(4).Info("Garbage collecting pods that are terminating on node tainted with node.kubernetes.io/out-of-service", "numPods", deleteCount) // sort only when necessary sort.Sort(byEvictionAndCreationTimestamp(terminatingPods)) var wait sync.WaitGroup for i := 0; i < deleteCount; i++ { wait.Add(1) go func(pod *v1.Pod) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/controller/deployment/deployment_controller.go
if err != nil { return } podMap, err := dc.getPodMapForDeployment(d, rsList) if err != nil { return } numPods := 0 for _, podList := range podMap { numPods += len(podList) } if numPods == 0 { dc.enqueueDeployment(d) } } } func (dc *DeploymentController) enqueue(deployment *apps.Deployment) { key, err := controller.KeyFunc(deployment)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 24.2K bytes - Viewed (0) -
pkg/controller/controller_utils_test.go
"oldest", }, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { numPods := len(test.pods) for i := 0; i < 20; i++ { idx := rand.Perm(numPods) randomizedPods := make([]*v1.Pod, numPods) for j := 0; j < numPods; j++ { randomizedPods[j] = &test.pods[idx[j]] } sort.Sort(ActivePods(randomizedPods))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 39.4K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption.go
// candidates returned will never be greater than <numNodes>. func (pl *DefaultPreemption) calculateNumCandidates(numNodes int32) int32 { n := (numNodes * pl.args.MinCandidateNodesPercentage) / 100 if n < pl.args.MinCandidateNodesAbsolute { n = pl.args.MinCandidateNodesAbsolute } if n > numNodes { n = numNodes } return n }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 25 19:36:04 UTC 2023 - 12.7K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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)