This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Rate limiti joins per-room, accounting for joins created by other servers #13169
Closed
Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
bd873e6
Define config for room-level join limiter
453f621
Rate limiter: describe leaky bucket
c2e3025
Rate limiter: Pull out some small methods
c594ab7
Rate limiter: Introduce `record_action`
9d4cdae
Notifier: accept callbacks to fire on room joins
77de159
Room member: drive-by-comment
ae788ca
Replication: include `outlier` in event rows
4230112
Add helper to determine if we persist event or not
6b47e82
Track per-room join rates actioned by this worker
0bb4122
Snoop on replication to learn about joins on other workers
7a14b94
Test cases
240e32f
Fixes to unit tests
121590a
Changelog
dcb1683
Move comment translating between bucket terminology
4da8f29
Tweak phrasing; note the version adding the option
9d92531
Announce new config option in the changelog
e16294e
Be more explicit about the default values
81eb4ab
Update rate limiter in the event persister logic
8377172
Use `add_hashes_and_signatures_from_other_server`
47acf46
Don't require `ratelimit` to notify for joins
fda6252
Also notify of join events via another path
5cf6700
Monstrous test update of doom
80e2e0b
Don't use newsfiles for config changes
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 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
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
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.
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.
Would you mind adding info here about what release this config option will be added in?
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.
Can do.