Skip to content

Set a high terminationGracePeriodSeconds on webhook#8640

Merged
knative-prow-robot merged 1 commit into
knative:masterfrom
mattmoor:raise-termination-grace-period
Jul 15, 2020
Merged

Set a high terminationGracePeriodSeconds on webhook#8640
knative-prow-robot merged 1 commit into
knative:masterfrom
mattmoor:raise-termination-grace-period

Conversation

@mattmoor
Copy link
Copy Markdown
Member

When our webhook drains, it sleeps for network.DefaultDrainTimeout after failing readiness probes before exiting, see here which is configured to this value.

I suspect that the default terminationGracePeriodSeconds (of 30) is clipping this sleep already (due to the coordination involved), but I am also thinking about raising this value due to seeing a non-zero number of EOF messages running chaos during our e2e testing.

I plan to make similar changes to eventing and our sample controller (cc @vaikas @grantr @lionelvillard )

When our webhook drains, it sleeps for `network.DefaultDrainTimeout` after failing readiness probes before exiting, see [here](https://github.com/knative/pkg/blob/4419e613c133505ea5109380102765a7699b9bf8/webhook/webhook.go#L229-L234) which is configured to [this value](https://github.com/knative/pkg/blob/4419e613c133505ea5109380102765a7699b9bf8/network/network.go#L39-L43).

I suspect that the default `terminationGracePeriodSeconds` (of `30`) is clipping this sleep already (due to the coordination involved), but I am also thinking about raising this value due to seeing a non-zero number of EOF messages running chaos during our e2e testing.
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 15, 2020
@knative-prow-robot knative-prow-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 15, 2020
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mattmoor

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 15, 2020
@mattmoor
Copy link
Copy Markdown
Member Author

/retest

🤞 that github is back since my other PR didn't insta-fail like this one.

Copy link
Copy Markdown
Contributor

@vagababov vagababov left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 15, 2020
@knative-prow-robot knative-prow-robot merged commit 0af354e into knative:master Jul 15, 2020
@mattmoor mattmoor deleted the raise-termination-grace-period branch July 15, 2020 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants