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

feat(tx-pool-metrics): calculate txs in out and median wait time #1752

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

elliothllm
Copy link
Collaborator

Description

Calculate tx/s in/out averaged over 1 minute.
Calculate median wait time of tx/s in pool

Example

INFO[02-13|16:17:56.781] [txpool] stat pending=70 baseFee=0 queued=0 tx-in-1m=10 tx-out-1m=0 median-wait-time= 10/seconds alloc=33.6MB sys=47.0MB

@elliothllm elliothllm force-pushed the feat/tx-pool-metrics branch 3 times, most recently from 7dcf16d to cc2f60a Compare February 19, 2025 12:39
IvanBelyakoff
IvanBelyakoff previously approved these changes Feb 19, 2025
IvanBelyakoff
IvanBelyakoff previously approved these changes Feb 21, 2025
tweak(tx-pool): add metrics

tweak(tx-pool): metrics

tweak(tx-pool): metrics run time
tweak(tx-pool): pre allocate memory for wait times
feat(txpool-metrics): remove sort as they will come sorted
@revitteth revitteth enabled auto-merge (squash) February 24, 2025 15:28
@revitteth revitteth merged commit e538335 into zkevm Feb 24, 2025
14 checks passed
@revitteth revitteth deleted the feat/tx-pool-metrics branch February 24, 2025 15:57
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.

3 participants