Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for PoolStats (0.05 sec)

  1. cmd/erasure-server-pool-rebalance_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "PoolStats")
    				return
    			}
    			if cap(z.PoolStats) >= int(zb0002) {
    				z.PoolStats = (z.PoolStats)[:zb0002]
    			} else {
    				z.PoolStats = make([]*rebalanceStats, zb0002)
    			}
    			for za0001 := range z.PoolStats {
    				if dc.IsNil() {
    					err = dc.ReadNil()
    					if err != nil {
    						err = msgp.WrapError(err, "PoolStats", za0001)
    						return
    					}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-rebalance.go

    	r := z.rebalMeta
    	poolStats := r.PoolStats[poolIdx]
    	if poolStats.Info.Status == rebalCompleted {
    		return true
    	}
    
    	pfi := float64(poolStats.InitFreeSpace+poolStats.Bytes) / float64(poolStats.InitCapacity)
    	// Mark pool rebalance as done if within 5% from PercentFreeGoal.
    	if diff := math.Abs(pfi - r.PercentFreeGoal); diff <= 0.05 {
    		r.PoolStats[poolIdx].Info.Status = rebalCompleted
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  3. cmd/rebalance-admin.go

    	}
    
    	stopTime := meta.StoppedAt
    	r = rebalanceAdminStatus{
    		ID:        meta.ID,
    		StoppedAt: meta.StoppedAt,
    		Pools:     make([]rebalancePoolStatus, len(meta.PoolStats)),
    	}
    	for i, ps := range meta.PoolStats {
    		r.Pools[i] = rebalancePoolStatus{
    			ID:     i,
    			Status: ps.Info.Status.String(),
    			Used:   float64(diskStats[i].TotalSpace-diskStats[i].AvailableSpace) / float64(diskStats[i].TotalSpace),
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 22 00:56:43 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top