-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
txHandler: applications rate limiter (#5734)
* Rate limit incoming apps based on app id + sender IP addr when the backlog is more than 1/2 full. * Implemented as a sharded map with sliding window limiter. The sliding window data is used to for least recently used eviction (list based). * Two hash functions are used: 1) memhash64 for app to bucket mapping 2) salted blake2b for app id + sender caching (shrank to 8 bytes to save on memory)
- Loading branch information
1 parent
3605084
commit 8e30dd4
Showing
13 changed files
with
1,353 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.