Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getAvailablePoolIdx (0.31 sec)

  1. docs/distributed/DESIGN.md

    MinIO places new objects in server pools based on proportionate free space, per pool. Following pseudo code demonstrates this behavior.
    
    ```go
    func getAvailablePoolIdx(ctx context.Context) int {
            serverPools := z.getServerPoolsAvailableSpace(ctx)
            total := serverPools.TotalAvailable()
            // choose when we reach this many
            choose := rand.Uint64() % total
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 8K bytes
    - Viewed (0)
  2. cmd/metacache-server-pool.go

    	}
    	return
    }
    
    func (z *erasureServerPools) listAndSave(ctx context.Context, o *listPathOptions) (entries metaCacheEntriesSorted, err error) {
    	// Use ID as the object name...
    	o.pool = z.getAvailablePoolIdx(ctx, minioMetaBucket, o.ID, 10<<20)
    	if o.pool < 0 {
    		// No space or similar, don't persist the listing.
    		o.pool = 0
    		o.Create = false
    		o.ID = ""
    		o.Transient = true
    		return entries, errDiskFull
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    		if z.Available > 0 && z.MaxUsedPct < max {
    			continue
    		}
    		p[i].Available = 0
    	}
    }
    
    // getAvailablePoolIdx will return an index that can hold size bytes.
    // -1 is returned if no serverPools have available space for the size given.
    func (z *erasureServerPools) getAvailablePoolIdx(ctx context.Context, bucket, object string, size int64) int {
    	serverPools := z.getServerPoolsAvailableSpace(ctx, bucket, object, size)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
Back to top