-
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
Allow configuring activator max idle connections #9027
Conversation
Inject the transport into activatorHandler and allow configuring its default maxIdleConns using a flag. As a bonus, this means the tests for activatorHandler no longer need to do casts and set the private transport field. Using a flag rather than a configmap here because maxIdleConns can't be easily changed dynamically so we really need the value on startup.
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.
@julz: 0 warnings.
In response to this:
Inject the transport into activatorHandler and allow configuring maxIdleConns using a flag. As a bonus, this means the tests for activatorHandler no longer need to do casts and set the private transport field \o/.
Using a flag rather than a configmap here because maxIdleConns can't be easily changed dynamically, so we really need the value on startup.
/assign @markusthoemmes @vagababov
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.
(looks like cmd/activator isn't owned by same owners as pkg/activator, seems wrong! Opened #9028). |
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.
LGTM but I'd like others to have a chance to look to.
/retest |
cmd/activator/main.go
Outdated
@@ -195,9 +199,11 @@ func main() { | |||
concurrencyReporter := activatorhandler.NewConcurrencyReporter(ctx, env.PodName, statCh) | |||
go concurrencyReporter.Run(ctx.Done()) | |||
|
|||
proxyTransport := pkgnet.NewAutoTransport(*maxIdleProxyConns, 100 /*maxidleperhost*/) |
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.
Do we want to tweak maxidleperhost as well?
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.
actually, probably, Ill add
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.
done - thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: julz, markusthoemmes 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 |
/lgtm |
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.
flag or envvar? Somehow it seems k8s shuns away from cmdline flags
yeah, I can make it an env var, that way we don't have to worry about backwards compat if we remove the flag / move it a CM later I guess /hold |
/unhold @vagababov take another look? |
The following is the coverage report on the affected files.
|
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.
/lgtm
The following jobs failed:
Automatically retrying due to test flakiness... |
Inject the transport into activatorHandler and allow configuring maxIdleConns using a flag. As a bonus, this means the tests for activatorHandler no longer need to do casts and set the private transport field \o/.
Using a flag rather than a configmap here because maxIdleConns can't be easily changed dynamically, so we really need the value on startup.
/assign @markusthoemmes @vagababov