Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for tierStats (0.1 sec)

  1. cmd/data-usage-cache_gen_test.go

    	}
    }
    
    func BenchmarkMarshalMsgtierStats(b *testing.B) {
    	v := tierStats{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgtierStats(b *testing.B) {
    	v := tierStats{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. cmd/data-usage-cache.go

    			NumObjects:  st.NumObjects,
    		}
    	}
    	return
    }
    
    // tierStats holds per-tier stats of a remote tier.
    type tierStats struct {
    	TotalSize   uint64 `msg:"ts"`
    	NumVersions int    `msg:"nv"`
    	NumObjects  int    `msg:"no"`
    }
    
    func (ts tierStats) add(u tierStats) tierStats {
    	return tierStats{
    		TotalSize:   ts.TotalSize + u.TotalSize,
    		NumVersions: ts.NumVersions + u.NumVersions,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  3. cmd/object-api-datatypes.go

    	}
    	cinfo.UserDefined = make(map[string]string, len(o.UserDefined))
    	for k, v := range o.UserDefined {
    		cinfo.UserDefined[k] = v
    	}
    	return cinfo
    }
    
    func (o ObjectInfo) tierStats() tierStats {
    	ts := tierStats{
    		TotalSize:   uint64(o.Size),
    		NumVersions: 1,
    	}
    	// the current version of an object is accounted towards objects count
    	if o.IsLatest {
    		ts.NumObjects = 1
    	}
    	return ts
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle.go

    					}
    				}
    			} else {
    				ts := tierStats{
    					TotalSize:   uint64(task.objInfo.Size),
    					NumVersions: 1,
    				}
    				if task.objInfo.IsLatest {
    					ts.NumObjects = 1
    				}
    				t.addLastDayStats(task.event.StorageClass, ts)
    			}
    			t.activeTasks.Add(-1)
    		}
    	}
    }
    
    func (t *transitionState) addLastDayStats(tier string, ts tierStats) {
    	t.lastDayMu.Lock()
    	defer t.lastDayMu.Unlock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  5. cmd/data-scanner.go

    	failedSize      int64
    	replicaSize     int64
    	replicaCount    int64
    	pendingCount    uint64
    	failedCount     uint64
    	replTargetStats map[string]replTargetSizeSummary
    	tiers           map[string]tierStats
    }
    
    // replTargetSizeSummary holds summary of replication stats by target
    type replTargetSizeSummary struct {
    	replicatedSize  int64
    	replicatedCount int64
    	pendingSize     int64
    	failedSize      int64
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top