-
Notifications
You must be signed in to change notification settings - Fork 525
txHandler: applications rate limiter #5734
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
Merged
algorandskiy
merged 33 commits into
algorand:master
from
algorandskiy:pavel/txhandler-appid-cache
Nov 9, 2023
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
698221f
txHandler: sliding windows rate limiter
algorandskiy b780eb2
Add remote IP addr to app idx filtering
algorandskiy 4227408
More tests + linter fixes
algorandskiy d912853
remove some code duplication
algorandskiy a142581
Shards per app
algorandskiy ad931f6
make interval atomic
algorandskiy 21722be
move rate limiter configuration into local config + test
algorandskiy 43ea42e
Fix max size checks for buckets
algorandskiy 39ec627
Add salt to prevent censoring with reduced key size to 8 bytes
algorandskiy 785a229
go benchmarks
algorandskiy e05d839
Implement LRU eviction
algorandskiy 17127ac
Fix cache size less than number of buckets
algorandskiy c7e7d0b
Add app limter drop counter
algorandskiy c30298b
CR fixes
algorandskiy f5fabd5
Use admission rate instead attempted rate
algorandskiy 7b7d4f6
Revert "Use admission rate instead attempted rate"
algorandskiy 8902be4
Reimplement cache admission
algorandskiy e5c98d5
CR fixes: config rename, buckets restructure
algorandskiy 70a6ba4
CR: use part of ipv6 address
algorandskiy a53c07a
start app rate limiting only of congested
algorandskiy 612156a
use rawmsg.Received timestamp for testability and cut some ns of math
algorandskiy 61e0264
use sync.Pool for keys and buckets
algorandskiy 1a00cf4
set TxBacklogAppTxPerSecondRate=100
algorandskiy 3459298
CR fixes
algorandskiy 1e9b73d
perf: upgrade go-deadlock
algorandskiy d83565b
CR: do not use rawmsg.Received for limiting
algorandskiy ab25e9b
Merge remote-tracking branch 'upstream/master' into pavel/txhandler-a…
algorandskiy 7d32f6e
config: migrate to v32
algorandskiy a66abbf
CR: enable app limiter separately with EnableAppTxBacklogRateLimiting
algorandskiy 4ede214
wip: txgroupToKeysDups
algorandskiy 5fc75b6
CR: dedup appids and zeros
algorandskiy 8c4c28b
marginally optimize txnToDigest a bit
algorandskiy eb977e2
CR: config renaming/comment fix
algorandskiy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.