Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getProportion (0.23 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc.go

    }
    
    func (rap *relativeAllocProblem) getProportion(idx int) float64 {
    	prop, _, _ := rap.decode(idx)
    	return prop
    }
    
    func (rap *relativeAllocProblem) Len() int { return len(rap.items) * 2 }
    
    func (rap *relativeAllocProblem) Less(i, j int) bool {
    	return rap.getProportion(i) < rap.getProportion(j)
    }
    
    func (rap *relativeAllocProblem) Swap(i, j int) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  2. pkg/controller/deployment/util/deployment_util.go

    	return maxSurge
    }
    
    // GetProportion will estimate the proportion for the provided replica set using 1. the current size
    // of the parent deployment, 2. the replica count that needs be added on the replica sets of the
    // deployment, and 3. the total replicas added in the replica sets of the deployment so far.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  3. pkg/controller/deployment/sync.go

    			// Estimate proportions if we have replicas to add, otherwise simply populate
    			// nameToSize with the current sizes for each replica set.
    			if deploymentReplicasToAdd != 0 {
    				proportion := deploymentutil.GetProportion(logger, rs, *deployment, deploymentReplicasToAdd, deploymentReplicasAdded)
    
    				nameToSize[rs.Name] = *(rs.Spec.Replicas) + proportion
    				deploymentReplicasAdded += proportion
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 24.5K bytes
    - Viewed (0)
Back to top