-
Notifications
You must be signed in to change notification settings - Fork 3.4k
health-server: implement rate-limiting #35163
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
Conversation
62cdc77
to
0c6278d
Compare
/test |
23238dd
to
97b901b
Compare
/test |
cc0c3a5
to
0de7611
Compare
/test |
4114845
to
103a873
Compare
/test |
Thanks for the PR @jshr-w ! I will review it early next week, knowing how health-checking is subtle I will need to pay extra attention 😅 |
Sounds good to me, thanks @marseel! For sure this one has a lot of cases to think about 😅 |
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.
Thanks @jshr-w this looks great.
It's so much easier to understand the whole logic now.
I left a few small nits to further simplify this part of the code.
Once you address them, I will do a final pass of review and experiment manually with a new implementation to check it at a larger scale and also from correctness point of view.
Thanks!
3423214
to
ca94aa3
Compare
/test |
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.
Thanks!
I didn't look at the code changes in details. Doc changes are trivial and look good; I have a few nits below, although not blocking.
bf09eea
to
7330cc8
Compare
/test |
1 similar comment
/test |
/ci-eks |
Head branch was pushed to by a user without write access
7ab3bb7
to
8cce006
Compare
/test |
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.
🎏
8cce006
to
bf2e181
Compare
This commit changes the package for the health package ICMP pinger to the prometheus/pro-bing library, anticipating changes for CFP-32820. Probe timeouts are set to 10s for both HTTP and ICMP probers to prevent timing out too quickly or waiting too long. Signed-off-by: jshr-w <shjayaraman@microsoft.com>
This commit spreads the health probes across the probing interval. The rate limit is set to (# of IPs to ping / probing interval) probes per second for both the ICMP and HTTP probes. Signed-off-by: jshr-w <shjayaraman@microsoft.com>
bf2e181
to
d3fe129
Compare
/test |
This PR adds preliminary changes necessary to fully address #32820 & the corresponding CFP design-cfps/#57.
Specifically, this PR:
Other changes to implement the CFP will be made in separate future PRs.