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

feat: Add parameter --min-sigterm-delay #2266

Merged
merged 1 commit into from
Jul 11, 2024
Merged

feat: Add parameter --min-sigterm-delay #2266

merged 1 commit into from
Jul 11, 2024

Conversation

hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Jul 10, 2024

This makes the proxy continue to accept new connections for a period of time
after receiving the TERM signal.

Fixes #1640

…inimum number off seconds before shutting down the proxy.
@hessjcg hessjcg requested a review from a team as a code owner July 10, 2024 17:28
case errors.Is(err, errQuitQuitQuit):
cmd.logger.Infof("/quitquitquit received request. Shutting down...")
time.Sleep(cmd.conf.WaitBeforeClose)
Copy link
Member

Choose a reason for hiding this comment

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

Shall we just add one of these right above the return statement below?

Copy link
Collaborator Author

@hessjcg hessjcg Jul 11, 2024

Choose a reason for hiding this comment

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

No, because we don't want to delay in the case of the default error. We only want to delay if the exit process was somehow initiated by the user.

@hessjcg hessjcg requested a review from enocom July 11, 2024 17:04
@hessjcg hessjcg merged commit 52cd0d9 into main Jul 11, 2024
12 checks passed
@hessjcg hessjcg deleted the gh-1640-exit-delay branch July 11, 2024 17:43
hessjcg added a commit to GoogleCloudPlatform/cloud-sql-proxy-operator that referenced this pull request Nov 22, 2024
…tion.

The auth proxy added --min-sigterm-delay in GoogleCloudPlatform/cloud-sql-proxy#2266,
This adds a matching configuration property to the operator's CRD.
hessjcg added a commit to GoogleCloudPlatform/cloud-sql-proxy-operator that referenced this pull request Nov 22, 2024
…tion.

The auth proxy added --min-sigterm-delay in GoogleCloudPlatform/cloud-sql-proxy#2266,
This adds a matching configuration property to the operator's CRD.
hessjcg added a commit to GoogleCloudPlatform/cloud-sql-proxy-operator that referenced this pull request Nov 22, 2024
…639)

The auth proxy added the flag --min-sigterm-delay in GoogleCloudPlatform/cloud-sql-proxy#2266.
This adds a matching configuration property to the operator's CRD.

Fixes #627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support forcing the proxy to accept new connections while max-sigterm-delay is in effect
3 participants