Skip to content
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

http fault: add active fault stat and overflow setting #6167

Merged
merged 8 commits into from
Mar 8, 2019

Conversation

mattklein123
Copy link
Member

  1. Add stat to track number of active injected faults
  2. Add config/runtime control over how many concurrent
    faults can be injected. This is useful in cases where
    we want to allow 100% fault injection, but want to
    protect against too many concurrent requests using too
    many resources.
  3. Add stat for faults that overflowed.
  4. Misc code cleanup / modernization.

Part of #5942.

Risk Level: Low
Testing: New UTs (note I plan on adding fault integration tests in a follow up change)
Docs Changes: Added
Release Notes: Added

1) Add stat to track number of active injected faults
2) Add config/runtime control over how many concurrent
   faults can be injected. This is useful in cases where
   we want to allow 100% fault injection, but want to
   protect against too many concurrent requests using too
   many resources.
3) Add stat for faults that overflowed.
4) Misc code cleanup / modernization.

Part of #5942.

Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123
Copy link
Member Author

@rshriram do you mind taking a first pass?

@mattklein123
Copy link
Member Author

cc @goaway

Copy link
Member

@rshriram rshriram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

rshriram
rshriram previously approved these changes Mar 7, 2019
Copy link
Member

@rshriram rshriram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarifications.. per HCM stats make sense now, given that there is only one fault filter per HCM on a port.

@htuch htuch self-assigned this Mar 8, 2019
@htuch htuch self-requested a review March 8, 2019 03:08
Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mattklein123 mattklein123 merged commit 191c8b0 into master Mar 8, 2019
@mattklein123 mattklein123 deleted the fault_rl_headers branch March 8, 2019 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants