-
Notifications
You must be signed in to change notification settings - Fork 43
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 metrics and revamp logic #206
Conversation
Declare prometheus metrics in gossipsub Add missing metric labels Fix metrics types Add onReportValidation
Codecov Report
@@ Coverage Diff @@
## master #206 +/- ##
==========================================
- Coverage 86.28% 78.98% -7.30%
==========================================
Files 19 24 +5
Lines 5452 7696 +2244
Branches 621 760 +139
==========================================
+ Hits 4704 6079 +1375
- Misses 748 1617 +869
Continue to review full report at Codecov.
|
Update on gossipsub debugging Low scores are caused by P3 and P7 penalties
|
* Add checkReceivedSubscriptions * Add checkReceivedSubscriptions to 'test gossipsub multihops' * Add checkReceivedSubscriptions to 'test gossipsub tree topology' * test gossipsub star topology with signed peer records * Fix 'test gossipsub direct peers' * Fix 'test gossipsub flood publish' * Fix 'test gossipsub star topology with signed peer records' * 'direct peers' test: wait for subscriptions event again * 'direct peer': await for 2 peer:connect events * 'direct peers': add missing Promise.all * Expect topic peers to contain peer id
* Forward messages to floodsub peers * Add comments Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com>
* Fix minMeshMessageDeliveriesWindow * Fix gossipsubIWantFollowupTime for metric * Fix tracer prune() * Change to maxMeshMessageDeliveriesWindow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure looks good to me.
Curious about the status of this regarding the many TODOs
Hello, I'm one of the engineering managers at PL EngRes. I was wondering if there's a estimated completion date for this work? I'm asking because we're waiting on it before doing the next js-libp2p release with the TypeScript refactor (libp2p/js-libp2p#1178 ). |
It may take some time since we are continually iterating changes here and in Lodestar until we have a peering performance level that good enough. If this is a blocker we can port the MVP changes to master and do a faster release that does not include this work. The blocker is moving to ESM only (if yes see ChainSafe/lodestar#3863) or what specifically? |
@dapplion : thanks for the response. I'll let @achingbrain speak to the minimum he needs to be unblocked. @achingbrain : can you please provide input? |
The When consuming this module though, you can use dynamic imports to load it from CJS or ESM, so maybe it's not a complete blocker? You will have to do that for all new |
Closes #194