Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for initRebalanceMeta (0.15 sec)

  1. cmd/admin-handlers-pools.go

    		return
    	}
    
    	buckets := make([]string, 0, len(bucketInfos))
    	for _, bInfo := range bucketInfos {
    		buckets = append(buckets, bInfo.Name)
    	}
    
    	var id string
    	if id, err = pools.initRebalanceMeta(ctx, buckets); err != nil {
    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Rebalance routine is run on the first node of any pool participating in rebalance.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 00:22:30 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-rebalance.go

    	}
    	for i := 0; i < len(z.rebalMeta.PoolStats); i++ {
    		if i == index {
    			return index
    		}
    	}
    	return -1
    }
    
    // initRebalanceMeta initializes rebalance metadata for a new rebalance
    // operation and saves it in the object store.
    func (z *erasureServerPools) initRebalanceMeta(ctx context.Context, buckets []string) (arn string, err error) {
    	r := &rebalanceMeta{
    		ID:        shortuuid.New(),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
Back to top