-
Notifications
You must be signed in to change notification settings - Fork 57
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: Added flexible rate limit checks for store, legacy store and lightpush #2668
Conversation
…h. Also added rate and traffic metrics.
You can find the image built from this PR at
Built from f1345b3 |
You can find the image built from this PR at
Built from f1345b3 |
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.
Loved this PR! 😍 Thanks so much!
Now I noticed that we don't really write tests to make sure counters work correctly. Maybe it would be good idea to start doing it in the future, counters are underrated IMO :))
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.
LGTM! Super professional PR and a great use of templates 🥳
I just added some comments that I hope you find useful
Co-authored-by: Ivan FB <[email protected]>
Co-authored-by: Ivan FB <[email protected]>
Co-authored-by: Ivan FB <[email protected]>
…ghtpush (#2668) * Added flexible rate limit checks for store, legacy store and lightpush. Also added rate and traffic metrics. * Fix chat2 after WakuLegacyStoreCodec rename * Update waku/common/ratelimit.nim Co-authored-by: Ivan FB <[email protected]> * Update waku/common/ratelimit.nim Co-authored-by: Ivan FB <[email protected]> * Update waku/waku_store_legacy/protocol.nim Co-authored-by: Ivan FB <[email protected]> * Fix review findings, added limit to debug logs --------- Co-authored-by: Ivan FB <[email protected]>
Also added rate and traffic metrics.
Description
This PR addresses most of the weakness of phase1 implementation and extend it with bandwidth metrics for the protocols.
For convenience it fixes some nuances on other aspects.
Changes
Missing
Will be applied in a separate PR:
Issue
#2589
#2032