e3: recon metrics (#5984)

This commit is contained in:
Alex Sharov 2022-11-07 12:02:46 +07:00 committed by GitHub
parent 1e5a513657
commit 160407b36a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -878,6 +878,7 @@ func ReconstituteState(ctx context.Context, s *StageState, dirs datadir.Dirs, wo
prevTime = currentTime
prevCount = count
prevRollbackCount = rollbackCount
syncMetrics[stages.Execution].Set(bn)
log.Info("State reconstitution", "workers", workerCount, "progress", fmt.Sprintf("%.2f%%", progress),
"tx/s", fmt.Sprintf("%.1f", speedTx), "workCh", fmt.Sprintf("%d/%d", len(workCh), cap(workCh)),
"repeat ratio", fmt.Sprintf("%.2f%%", repeatRatio), "queue.len", rs.QueueLen(), "blk", bn,