Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for numPods (0.14 sec)

  1. pkg/kubelet/runonce.go

    		}
    	}
    
    	select {
    	case u := <-updates:
    		klog.InfoS("Processing manifest with pods", "numPods", len(u.Pods))
    		result, err := kl.runOnce(ctx, u.Pods, runOnceRetryDelay)
    		klog.InfoS("Finished processing pods", "numPods", len(u.Pods))
    		return result, err
    	case <-time.After(runOnceManifestDelay):
    		return nil, fmt.Errorf("no pod manifest update after %v", runOnceManifestDelay)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  2. pkg/kubelet/pod_workers_test.go

    	podWorkers, _, processed := createPodWorkers()
    
    	numPods := 20
    	for i := 0; i < numPods; i++ {
    		for j := i; j < numPods; j++ {
    			podWorkers.UpdatePod(UpdatePodOptions{
    				Pod:        newNamedPod(strconv.Itoa(j), "ns", strconv.Itoa(i), false),
    				UpdateType: kubetypes.SyncPodCreate,
    			})
    		}
    	}
    	drainWorkers(podWorkers, numPods)
    
    	if len(processed) != numPods {
    		t.Fatalf("Not all pods processed: %v", len(processed))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	deletedPods := deleted.(*example.PodList)
    	if len(deletedPods.Items) != numPods {
    		t.Errorf("Unexpected number of pods deleted: %d, expected: %d", len(deletedPods.Items), numPods)
    	}
    	expectedCalls := (int64(numPods) + deleteCollectionPageSize - 1) / deleteCollectionPageSize
    	if listCalls := atomic.LoadInt64(&storeWithCounter.listCounter); listCalls != expectedCalls {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/queue/scheduling_queue.go

    		}
    	}
    
    	p.moveRequestCycle = p.schedulingCycle
    
    	if p.isSchedulingQueueHintEnabled && len(p.inFlightPods) != 0 {
    		logger.V(5).Info("Event received while pods are in flight", "event", event.Label, "numPods", len(p.inFlightPods))
    		// AddUnschedulableIfNotPresent might get called for in-flight Pods later, and in
    		// AddUnschedulableIfNotPresent we need to know whether events were
    		// observed while scheduling them.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  8. pkg/scheduler/internal/cache/node_tree.go

    // over nodes in a round robin fashion.
    func (nt *nodeTree) list() ([]string, error) {
    	if len(nt.zones) == 0 {
    		return nil, nil
    	}
    	nodesList := make([]string, 0, nt.numNodes)
    	numExhaustedZones := 0
    	nodeIndex := 0
    	for len(nodesList) < nt.numNodes {
    		if numExhaustedZones >= len(nt.zones) { // all zones are exhausted.
    			return nodesList, errors.New("all zones exhausted before reaching count of nodes expected")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. samples/kind-lb/setupkind.sh

      exit 1
    fi
    
    if [[ "${MODE}" == "ambient" ]]; then
      NUMNODES=${NUMNODES:-2}
    fi
    
    NODES=$(cat <<-EOM
    nodes:
    - role: control-plane
    EOM
    )
    
    if [[ -n "${NUMNODES}" ]]; then
    for _ in $(seq 1 "${NUMNODES}"); do
      NODES+=$(printf "\n%s" "- role: worker")
    done
    fi
    
    CONFIG=$(cat <<-EOM
    kind: Cluster
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 02 19:08:19 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  10. 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)
Back to top