storagenode/retain: Move summary and start logs to info level (#4954)
We currently do not log the GC information/stats under normal circumstances. This is not good for monitoring and troubleshooting.
This commit is contained in:
parent
43286dbc37
commit
c3171b4ba4
@ -367,7 +367,7 @@ func (s *Service) retainPieces(ctx context.Context, req Request) (err error) {
|
|||||||
mon.IntVal("garbage_collection_filter_size").Observe(filter.Size())
|
mon.IntVal("garbage_collection_filter_size").Observe(filter.Size())
|
||||||
mon.IntVal("garbage_collection_started").Observe(started.Unix())
|
mon.IntVal("garbage_collection_started").Observe(started.Unix())
|
||||||
|
|
||||||
s.log.Debug("Prepared to run a Retain request.",
|
s.log.Info("Prepared to run a Retain request.",
|
||||||
zap.Time("Created Before", createdBefore),
|
zap.Time("Created Before", createdBefore),
|
||||||
zap.Int64("Filter Size", filter.Size()),
|
zap.Int64("Filter Size", filter.Size()),
|
||||||
zap.Stringer("Satellite ID", satelliteID))
|
zap.Stringer("Satellite ID", satelliteID))
|
||||||
@ -430,7 +430,7 @@ func (s *Service) retainPieces(ctx context.Context, req Request) (err error) {
|
|||||||
mon.IntVal("garbage_collection_pieces_to_delete_count").Observe(piecesToDeleteCount)
|
mon.IntVal("garbage_collection_pieces_to_delete_count").Observe(piecesToDeleteCount)
|
||||||
mon.IntVal("garbage_collection_pieces_deleted").Observe(int64(numDeleted))
|
mon.IntVal("garbage_collection_pieces_deleted").Observe(int64(numDeleted))
|
||||||
mon.DurationVal("garbage_collection_loop_duration").Observe(time.Now().UTC().Sub(started))
|
mon.DurationVal("garbage_collection_loop_duration").Observe(time.Now().UTC().Sub(started))
|
||||||
s.log.Debug("Moved pieces to trash during retain", zap.Int("num deleted", numDeleted), zap.String("Retain Status", s.config.Status.String()))
|
s.log.Info("Moved pieces to trash during retain", zap.Int("num deleted", numDeleted), zap.String("Retain Status", s.config.Status.String()))
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user