API changes to enable TCP keepalive configuration.#715
API changes to enable TCP keepalive configuration.#715shakti-das wants to merge 1 commit intoistio:masterfrom
Conversation
Signed-off-by: Shakti <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: shakti-das If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @shakti-das. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
| message TCPSettings { | ||
| // TCP keepalive. | ||
| message TcpKeepalive { | ||
| // TCP keepalive time. |
There was a problem hiding this comment.
Expect a more detailed description, like envoy doc The number of seconds a connection needs to be idle before keep-alive probes start being sent. Default is to use the OS level configuration (unless overridden, Linux defaults to 7200s (ie 2 hours.)
There was a problem hiding this comment.
Will add more details.
| // TCP keepalive. | ||
| message TcpKeepalive { | ||
| // TCP keepalive time. | ||
| google.protobuf.Duration time = 1; |
There was a problem hiding this comment.
There was a problem hiding this comment.
I doubt the goal is to keep the same proto definition. I read in one of the PR review comments that the set of configuration options need to be added as required. Looking at the discussion in the linked issue, it seems we want to expose keepalive time and interval at the moment.
Regarding the Duration fields, considering it's a time related field, instead of specifying it as uint and mentioning in comments that the unit is seconds, I felt it's better to keep it as duration in Istio proto. In the impl, we can easily convert duration to seconds while populating Envoy proto fields.
There was a problem hiding this comment.
istio/istio#9378 (comment)
Cloud Foundry operators have requested support for control of TCP keepalive probe count and interval.
There was a problem hiding this comment.
thanks for the reference, will add probes to the PR.
| google.protobuf.Duration time = 1; | ||
|
|
||
| // TCP keepalive interval. | ||
| google.protobuf.Duration interval = 2; |
|
I think we also need an additional field to set |
|
|
/ok-to-test |
|
|
The review comments are addressed in PR #718 which is for release-1.1 branch. |
API changes PR for istio/istio#9378
Signed-off-by: Shakti [email protected]