Skip to content

fix: don't depend on downstream in readiness check#2207

Merged
enocom merged 1 commit intomainfrom
better-readiness
May 8, 2024
Merged

fix: don't depend on downstream in readiness check#2207
enocom merged 1 commit intomainfrom
better-readiness

Conversation

@enocom
Copy link
Copy Markdown
Member

@enocom enocom commented May 1, 2024

The readiness probe should not depend on downstream connections. Doing so can cause unwanted downtime. See 1. This commit removes all dialing of downstream database servers as a result.

In addition, after the Proxy receives a SIGTERM or SIGINT, the readiness check will now report an unhealthy status to ensure it is removed from circulation before shutdown completes.

Fixes #2083

@enocom enocom requested a review from a team as a code owner May 1, 2024 16:17
The readiness probe should not depend on downstream connections. Doing
so can cause unwanted downtime. See [1]. This commit removes all dialing
of downstream database servers as a result.

In addition, after the Proxy receives a SIGTERM or SIGINT, the readiness
check will now report an unhealthy status to ensure it is removed from
circulation before shutdown completes.

[1]: https://github.com/zegl/kube-score/blob/master/README_PROBES.md#readinessprobe

Fixes #2083
@enocom enocom force-pushed the better-readiness branch from 2c51ae1 to 6e70fb5 Compare May 1, 2024 18:04
Copy link
Copy Markdown
Collaborator

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

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

LGTM

@enocom enocom merged commit 49fa927 into main May 8, 2024
@enocom enocom deleted the better-readiness branch May 8, 2024 15:42
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.

Readiness probe shouldn't depend on downstream services

2 participants