Skip to content
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

Increase lease time of controller and webhook #4541

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

guillaumerose
Copy link
Contributor

Changes

Knative increased their default lease duration. Tekton can also do it
and be less aggressive with the k8s API.

In case of reboot/restart, the controller will take more time to
recover.

Related to knative/pkg#2383
Tekton controller is also issuing 2 calls per second to the apiserver. Webhook and even triggers components are impacted.

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes

Increase lease duration of Tekton components in order to be more gentle with the k8s apiserver.

Knative increased their default lease duration. Tekton can also do it
and be less aggressive with the k8s API.

In case of reboot/restart, the controller will take more time to
recover.
@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Feb 2, 2022
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 2, 2022
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/cc @imjasonh
Note: this is something knative/serving & co also did 👼🏼

@tekton-robot tekton-robot requested a review from imjasonh February 2, 2022 10:55
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vdemeester

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 2, 2022
@guillaumerose
Copy link
Contributor Author

/retest

@guillaumerose
Copy link
Contributor Author

Is this CI error real?

@ghost
Copy link

ghost commented Feb 2, 2022

Is this CI error real?

test TestHermeticTaskRun is not one that I've seen flake out regularly, so this might very well be real. I'll try and reproduce locally. Let's see if the issue repeats on another run:

/test pull-tekton-pipeline-alpha-integration-tests

@vdemeester
Copy link
Member

/retest

@dibyom
Copy link
Member

dibyom commented Feb 8, 2022

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2022
@tekton-robot tekton-robot merged commit 24099c3 into tektoncd:main Feb 8, 2022
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. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

4 participants