-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(security): Randomly drop connections when inbound service is over…
…loaded (#6790) * fix(security): Randomly drop connections when inbound service is overloaded * Uses progressively higher drop probabilities * Replaces Error::Overloaded with Fatal when internal services shutdown * Applies suggestions from code review. * Quickens initial drop probability decay and updates comment * Applies suggestions from code review. * Fixes drop connection probablity calc * Update connection state metrics for different overload/error outcomes * Split overload handler into separate methods * Add unit test for drop probability function properties * Add respond_error methods to zebra-test to help with type resolution * Initial test that Overloaded errors cause some continues and some closes * Tune the number of test runs and test timing * Fix doctests and replace some confusing example requests --------- Co-authored-by: arya2 <[email protected]>
- Loading branch information
Showing
5 changed files
with
498 additions
and
38 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
Oops, something went wrong.