Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for SHUFFLE (0.13 sec)

  1. cmd/metacache-set.go

    		askDisks = len(disks) // use all available drives
    	}
    
    	// However many we ask, versions must exist on ~50%
    	listingQuorum := (askDisks + 1) / 2
    
    	if askDisks > 0 && len(disks) > askDisks {
    		rand.Shuffle(len(disks), func(i, j int) {
    			disks[i], disks[j] = disks[j], disks[i]
    		})
    		fallbackDisks = disks[askDisks:]
    		disks = disks[:askDisks]
    	}
    
    	// How to resolve results.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    // upon return or (b) locking is irrelevant.
    
    // StartFunction begins the process of handling a request.  If the
    // request gets queued then this function uses the given hashValue as
    // the source of entropy as it shuffle-shards the request into a
    // queue.  The descr1 and descr2 values play no role in the logic but
    // appear in log messages.  This method does not return until the
    // queuing, if any, for this request is done.  If `execute` is false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
Back to top