Clean up logging, update website filter hint
This commit is contained in:
@@ -62,8 +62,10 @@ func Backfill(ctx context.Context, collectorAddrs []string, cache *Cache) {
|
||||
mergeDump(r.coarse, coarseByTS)
|
||||
}
|
||||
|
||||
mergeStart := time.Now()
|
||||
fine := buildSnapshots(fineByTS, st.FineTopK, st.FineRingSize)
|
||||
coarse := buildSnapshots(coarseByTS, st.CoarseTopK, st.CoarseRingSize)
|
||||
log.Printf("backfill: merge+topk took %s", time.Since(mergeStart).Round(time.Microsecond))
|
||||
|
||||
if len(fine)+len(coarse) == 0 {
|
||||
log.Printf("backfill: no data received from any collector")
|
||||
@@ -71,7 +73,7 @@ func Backfill(ctx context.Context, collectorAddrs []string, cache *Cache) {
|
||||
}
|
||||
loadStart := time.Now()
|
||||
cache.LoadHistorical(fine, coarse)
|
||||
log.Printf("backfill: loaded %d fine + %d coarse buckets in %s total",
|
||||
log.Printf("backfill: loaded %d fine + %d coarse buckets in %s",
|
||||
len(fine), len(coarse), time.Since(loadStart).Round(time.Microsecond))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user