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

Add a IdleTimeout for EL sink #755

Merged
merged 1 commit into from
Sep 11, 2020
Merged

Conversation

dibyom
Copy link
Member

@dibyom dibyom commented Sep 10, 2020

Previously, we were never closing Idle connections leading to issues described
in #687. This commit adds a fixed 2 minute timeout for idle connections though
later we can also add other timeouts as well as allow for users to change the
timeout values.

I verified this manually by building on a base image with a shell and then
verifying that the number of open connections eventually go down unlike before.

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Release Notes

EventListeners now close idle connections after 120 seconds

Previously, we were never closing Idle connections leading to issues described
in tektoncd#687.  This commit adds a fixed 2 minute timeout for idle connections though
later we can also add other timeouts as well as allow for users to change the
timeout values.

I verified this manually by building on a base image with a shell and then
verifying that the number of open connections eventually go down unlike before.

Signed-off-by: Dibyo Mukherjee <dibyo@google.com>
@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Sep 10, 2020
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 10, 2020
@dibyom dibyom mentioned this pull request Sep 10, 2020
3 tasks
@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: khrm

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 Sep 11, 2020
@savitaashture
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 11, 2020
@dibyom
Copy link
Member Author

dibyom commented Sep 11, 2020

/retest

@tekton-robot tekton-robot merged commit c05c2eb into tektoncd:master Sep 11, 2020
@dibyom dibyom deleted the idleTimeout branch September 11, 2020 14:32
@dibyom dibyom added this to the Trigger v0.8.1 milestone Sep 11, 2020
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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants