Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add statistics logs and metric for sequencer #1766

Open
wants to merge 3 commits into
base: zkevm
Choose a base branch
from

Conversation

zjg555543
Copy link

@zjg555543 zjg555543 commented Feb 18, 2025

When stress-testing the sequencer, we added a new stats log to give better insights. Hope it helps!

[INFO] [02-18|04:15:37.370] Batch<50>, TotalDuration<279ms>, GasUsed<5450276>, Block<1>, Tx<30>, GetTxPause<26>, ReprocessTx<0>, GasOverTx<0>, ZKOverflowBlock<1>, InvalidTx<0>, SequencingBatchTiming<302ms>, GetTxTiming<1ms>, ProcessTx<178ms>, GetTxPauseTiming<131ms>, PbStateTiming<39ms>, ZkIncIntermediateHashesTiming<18ms>, FinaliseBlockWriteTiming<0ms>, BatchCommitDBTiming<15ms>, BatchCloseReason<> 
  • Batch<50>: Indicates the batch ID being processed (Batch 50).
  • TotalDuration<279ms>: The total time taken to process this batch, including all operations.
  • GasUsed<5450276>: The total amount of gas consumed by transactions in this batch.
  • Block<1>: The number of blocks generated during this batch.
  • Tx<30>: The number of transactions included in this batch.
  • GetTxPause<26>: The number of times the system paused while fetching transactions.
  • ReprocessTx<0>: The number of transactions that had to be reprocessed.
  • GasOverTx<0>: The number of transactions that exceeded gas limits.
  • ZKOverflowBlock<1>: The number of blocks where ZK (Zero-Knowledge proof) constraints were exceeded.
  • InvalidTx<0>: The number of invalid transactions found in this batch.
  • SequencingBatchTiming<302ms>: The total time spent sequencing the batch, including delays.
  • GetTxTiming<1ms>: The time taken to fetch transactions for this batch.
  • ProcessTx<178ms>: The total time spent processing transactions.
  • GetTxPauseTiming<131ms>: The cumulative time spent in transaction retrieval pauses.
  • PbStateTiming<39ms>: The time taken to update the protocol buffer (Pb) state.
  • ZkIncIntermediateHashesTiming<18ms>: The time spent computing intermediate hashes for ZK proofs.
  • FinaliseBlockWriteTiming<0ms>: The time taken to finalize writing the block (0ms indicates no additional delay).
  • BatchCommitDBTiming<15ms>: The time taken to commit the batch data to the database.
  • BatchCloseReason<>: The reason for closing the batch (empty in this case, meaning no specific reason was logged).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant