René's URL Explorer Experiment


Title: Event Loop Additional Metrics to make event-loop stalls more visible · Issue #67649 · nodejs/node · GitHub

Open Graph Title: Event Loop Additional Metrics to make event-loop stalls more visible · Issue #67649 · nodejs/node

X Title: Event Loop Additional Metrics to make event-loop stalls more visible · Issue #67649 · nodejs/node

Description: What is the problem this feature will solve? Hey! This feature will help with more precise detection of long-running tasks in Node.js event loop. When calculating p99, it will help make long event-loop stalls more visible What is the fea...

Open Graph Description: What is the problem this feature will solve? Hey! This feature will help with more precise detection of long-running tasks in Node.js event loop. When calculating p99, it will help make long event-...

X Description: What is the problem this feature will solve? Hey! This feature will help with more precise detection of long-running tasks in Node.js event loop. When calculating p99, it will help make long event-...

Opengraph URL: https://github.com/nodejs/node/issues/67649

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Event Loop Additional Metrics to make event-loop stalls more visible","articleBody":"### What is the problem this feature will solve?\n\nHey!\nThis feature will help with more precise detection of long-running tasks in Node.js event loop. \nWhen calculating p99, it will help make long event-loop stalls more visible\n\n\n\n### What is the feature you are proposing to solve the problem?\n\nMy proposal is to add additional metrics like:\n- exceededIntervalCounter / okIntervalCounter\n   - to calculate ratio between both of them\n- exceededIntervalDelay\n\nThanks to them, it would be easier to detect event-loop stalls.\nCause `ok samples` and `exceeded samples` are treated separately.\n\n\n\nBefore going further let me first explain current metrics, to be sure, that my understanding is correct.\nCause maybe there is something, I still don't understand well and this issue doesn't make sense.\n\nNote: During issue I'm writing typically about `task duration`. But I'm aware that more precise interpretation is `event loop probe delay`.\n\n#### Event Loop Utilisation\n\nMy understanding of Event Loop Utilization (ELU) is:\n- ELU isn't aware about task duration\n- ELU is similar to CPU utilization, but it's not CPU utilization\n- ELU like 85% may mean:\n  - there is a problem with event loop\n  - there is no problem with event loop, all tasks are short and event loop is healthy\n- ELU is great to detect skew in node.js cluster mode\n  - worker1: ELU 20%\n  - worker2: ELU 15%\n  - worker3: ELU 85% - probably something wrong with this worker\n\n\u003cimg width=\"1808\" height=\"768\" alt=\"utilization\" src=\"https://github.com/user-attachments/assets/01a9b21d-af07-4080-bde5-fadfa20c4359\" />\n\n#### Event Loop Delay\n\nMy understanding of Event Loop Delay (ELD) is:\n- when calculating `p99`\n  - it can be low, because a lot of short tasks can hide long tasks\n- `max` is always helpful\n- it's rather like: catastrophe detector\n\nCode looks like this:\n```javascript\nfunction monitorSample(diffNanos) {\n  delay.observe(diffNanos / 1e9);\n  // delay.observe((diffNanos - intervalNanos ) / 1e9); i'm not sure\n}\n```\n\n\n\u003cimg width=\"3168\" height=\"2048\" alt=\"event_loop_delay\" src=\"https://github.com/user-attachments/assets/adcb5a75-9547-44fb-a5a4-3a7dc1e488a2\" />\n\nAbout those metrics:\n- exceededIntervalCounter\n- exceededIntervalDelay\n\nMy understanding of those Event Loop those metrics is:\n- exceededIntervalCounter ( together with okIntervalCounter )\n  - how often event loop was doing tasks longer than interval?\n    - to be more precise: how often probe wasn't able to execute?\n    - `okIntervalCounter` is needed to calculate ratio\n    - `exceededRatio = exceededIntervalCounter / (okIntervalCounter + exceededIntervalCounter)`\n- exceededIntervalDelay\n  - if probe wasn't able to execute, how long it was delayed?\n\nLet's assume interval 10ms to describe event loop status:\n- event loop idle or tasks below 10ms\n  - always healthy sample\n- task between 10ms and 20ms - healthy or unhealthy sample\n  - cause we don't know when task started\n- task higher than 20ms \n  - always unhealthy sample\n\nCode could look like this:\n```javascript\nfunction monitorSample(diffNanos) {\n  const lagNanos = Math.max(0, diffNanos - intervalNanos - intervalNanos);\n\n  if (lagNanos > 0) {\n    const missedSamples = Math.floor(diffNanos / intervalNanos);\n    exceededCounter.inc(missedSamples);\n    exceededHistogram.observe(lagNanos / 1e9);\n  } else {\n    okCounter.inc();\n  }\n}\n```\n\n\u003cimg width=\"5368\" height=\"2928\" alt=\"exceeded\" src=\"https://github.com/user-attachments/assets/eb29f5c1-e76c-4d03-9978-84df8c530c94\" />\n\n#### The best part in all of that\n- all of those metrics still do not directly measure end-user latency\n  - splitting one big task into smaller tasks may cause tasks overlap\n  - from logical point of view, there is a lot of concurrent cpu tasks\n- so higher response times during day, faster during night, may suggest, that tasks are overlapping\n  - healthy event loop metric won't tell anything about that\n\n\u003cimg width=\"3048\" height=\"2688\" alt=\"yield_and_semaphore\" src=\"https://github.com/user-attachments/assets/383aff7f-7f6e-494b-ac9d-ca62a54f2be1\" />\n\n### What alternatives have you considered?\n\nJust use current Event Loop Utilization and Event Loop Delay metrics.\n\nI'm open to your feedback!","author":{"url":"https://github.com/mateusz-nalepa","@type":"Person","name":"mateusz-nalepa"},"datePublished":"2026-11-20T11:34:55Z","url":"https://github.com/nodejs/node/issues/67649"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8dc6cf55-a812-1f10-2ad8-3f8500ee43df
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD00:107A1:3ACF65:4D393E:6B06199F
html-safe-nonce4d9488a6467427f3aebd6f6a53a982aca4715fab5b8b0297247e33fe41cbfa2f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDAwOjEwN0ExOjNBQ0Y2NTo0RDM5M0U6NkIwNjE5OUYiLCJ2aXNpdG9yX2lkIjoiNjM5MDkzOTY1MDY2Nzk3NzExOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac66d9e4d11027f466789939e20098988c7535cab71bc9d6a953d9bd1b85a0524d
hovercard-subject-tagissue:6510617732
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/67649/issue_layout
twitter:imagehttps://opengraph.githubassets.com/84be20ad849951f8bdb7565e6bc0106343cab7422ae7f42514b679c058e23eb0/nodejs/node/issues/67649
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/84be20ad849951f8bdb7565e6bc0106343cab7422ae7f42514b679c058e23eb0/nodejs/node/issues/67649
og:image:altWhat is the problem this feature will solve? Hey! This feature will help with more precise detection of long-running tasks in Node.js event loop. When calculating p99, it will help make long event-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemateusz-nalepa
hostnamegithub.com
expected-hostnamegithub.com
None97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release866f202ebf7ac5aff8f633417d9fd8a53818a977
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/67649#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F67649
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F67649
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/67649
Reloadhttps://github.com/nodejs/node/issues/67649
Reloadhttps://github.com/nodejs/node/issues/67649
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues630 (630)https://github.com/nodejs/node/issues
Pull requests659 (659)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/insights
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/67649
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/67649
Event Loop Additional Metrics to make event-loop stalls more visiblehttps://github.com/nodejs/node/issues/67649#top
feature requesthttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
https://github.com/mateusz-nalepa
mateusz-nalepahttps://github.com/mateusz-nalepa
on Nov 20, 2026https://github.com/nodejs/node/issues/67649#issue-6510617732
https://private-user-images.githubusercontent.com/24458964/713475078-01a9b21d-af07-4080-bde5-fadfa20c4359.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NjIxODcsIm5iZiI6MTc5NTU2MTg4NywicGF0aCI6Ii8yNDQ1ODk2NC83MTM0NzUwNzgtMDFhOWI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TVkYjQ2M2EyN2ZhOTE2YjQ2OTdmZDA3ZTYzNzQxZTI1ZmM1MThmOTM3YmMxOThjMzMyNGM5MjAyYjZiNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.2UC-RJqTbErrnMuQ47kDP_pGzk8WpnCxX-I4boulto4
https://private-user-images.githubusercontent.com/24458964/713483387-eb29f5c1-e76c-4d03-9978-84df8c530c94.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NjIxODcsIm5iZiI6MTc5NTU2MTg4NywicGF0aCI6Ii8yNDQ1ODk2NC83MTM0ODMzODctZWIyOWY1YzEtZTc2Yy00ZDAzLTk5NzgtODRkZjhjNTMwYzk0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI0VDIzMTEyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVlNmI2NzdkYjllM2Y2MTU2YTEwNjQ3MGFlOGYzNTA4Y2ZhMGNhNTI5OWUyNmNjN2VhYjk3MzZiMTZmMWI4OGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.1ET_fxsxATv1HznrHV5MvJGR8oAL1T0GIOOpp7IP1Z4
https://private-user-images.githubusercontent.com/24458964/713475557-383aff7f-7f6e-494b-ac9d-ca62a54f2be1.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU1NjIxODcsIm5iZiI6MTc5NTU2MTg4NywicGF0aCI6Ii8yNDQ1ODk2NC83MTM0NzU1NTctMzgzYWZmN2YtN2Y2ZS00OTRiLWFjOWQtY2E2MmE1NGYyYmUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI0VDIzMTEyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmNzllZTNhNGQ3M2U2MzhjYjA3YmZlZmNkZjFmMjVhNGE4MTBiOWE5YjQ0N2RjNTE2NjdiNzQ2NmNlNDI2OTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.K6CKwwYP71M04tMdjYvyUPq8-V0ML0stxTY_dJ7Ocyo
mateusz-nalepahttps://github.com/mateusz-nalepa
feature requesthttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
on Nov 20, 2026https://github.com/nodejs/node/issues/67649#event-36763483353
github-project-automationhttps://github.com/apps/github-project-automation
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Nov 20, 2026https://github.com/nodejs/node/issues/67649#event-36763486381
github-project-automationhttps://github.com/apps/github-project-automation
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
on Nov 20, 2026https://github.com/nodejs/node/issues/67649
https://github.com/mateusz-nalepa
mateusz-nalepahttps://github.com/mateusz-nalepa
on Nov 23, 2026https://github.com/nodejs/node/issues/67649#issuecomment-7114350493
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/67649
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/67649
feature requesthttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22feature%20request%22
Node.js feature requestshttps://github.com/orgs/nodejs/projects/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.