-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Introduce throttler in the activator (do not use it yet) #3082
Introduce throttler in the activator (do not use it yet) #3082
Conversation
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.
@vvraskin: 2 warnings.
In response to this:
Proposed Changes
This PR doesn't change the existing behaviour of the Activator, rather introduces the throttler which will be integrated in the next PRs. This is the result of splitting #2653
- Add helper method to generate mock Endpoints for testing.
- Introduce throttler. The throttler manages the map of Breakers that are updated as new Endpoints get available.
- Add unit tests for the throttler.
- Update
names.go
to get revision name from the service, e.g. remove "-service" suffix.Release Note
Introduce throttler in the activator.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
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.
Looks good overall! I like the functional approach of passing getter functions to avoid hard-wiring. 🙂
To send feedback early (haven't fully gone through the tests just yet).
The comments mainly propose a restructure of some of the code to make bits and bobs more clear. Shouldn't be a huge deal.
…dpoints, some other refactoring
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.
Getting there 👍
^^ Unrelated unit test failure |
The following is the coverage report on pkg/.
|
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.
Very nice, thanks for all the adjustments made 🎉
/lgtm
/approve
/assign @tcnghia |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markusthoemmes, tcnghia, vvraskin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Introduce throttler in activator (do not use it yet) * Update comments, restructure helper method * Restructure the creation of the breaker, add more tests for update endpoints, some other refactoring * Assume revision method is inlined, reshuffle the lock * Update comments, test appearance * Inline update capacity error in forceUpdateCapacity
Proposed Changes
This PR doesn't change the existing behaviour of the Activator, rather introduces the throttler which will be integrated in the next PRs. This is the result of splitting #2653
names.go
to get revision name from the service, e.g. remove "-service" suffix.Release Note