MCPcopy
hub / github.com/uber/aresdb / ReportManagedObject

Method ReportManagedObject

memstore/host_memory_manager.go:197–205  ·  view source on GitHub ↗

ReportManagedObject : Report space usage for a managed object (archive batch vector party).

(table string, shard, batchID, columnID int, bytes int64)

Source from the content-addressed store, hash-verified

195
196// ReportManagedObject : Report space usage for a managed object (archive batch vector party).
197func (h *hostMemoryManager) ReportManagedObject(table string, shard, batchID, columnID int, bytes int64) {
198 if bytes <= 0 {
199 h.deleteManagedObject(table, shard, batchID, columnID)
200 } else {
201 h.addOrUpdateManagedObject(table, shard, batchID, columnID, bytes)
202 h.TriggerEviction()
203 }
204 utils.GetRootReporter().GetGauge(utils.ManagedMemorySize).Update(float64(h.getManagedSpaceUsage()))
205}
206
207// Start will do a blocking preloading first and then start the go routines to do
208// data preloading and eviction.

Callers

nothing calls this directly

Calls 7

deleteManagedObjectMethod · 0.95
TriggerEvictionMethod · 0.95
getManagedSpaceUsageMethod · 0.95
GetRootReporterFunction · 0.92
GetGaugeMethod · 0.80
UpdateMethod · 0.65

Tested by

no test coverage detected