ChainSafe / lodestar

🌟 TypeScript Implementation of Ethereum Consensus
https://lodestar.chainsafe.io
Apache License 2.0
1.19k stars 292 forks source link

Event loop utilization (ELU) metrics #7147

Open nflaig opened 1 month ago

nflaig commented 1 month ago

I think it's not as useful to track this as an average over time or at least I don't see which questions this helps to answer.

What we might be interested in is the event loop utilization (ELU) during a certain time frame of the slot, e.g. 1-4, 4-8, 8-12, or even on a per second basis. Should be able to achieve this via labels on metrics + running an interval on a clock timer.

This could help us analyze what parts of the slot we are overloaded, and if a change improves the ELU for a specific slot frame or not.

Originally posted by @nflaig in https://github.com/ChainSafe/lodestar/issues/6820#issuecomment-2190189746

nflaig commented 1 month ago
philknows commented 2 weeks ago

Nice to have.