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

Make nginx readiness endpoint dependant on a working socket to fpm #763

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

EarthlingDavey
Copy link
Contributor

No description provided.

Copy link
Contributor

@wilson1000 wilson1000 left a comment

Choose a reason for hiding this comment

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

Hey @EarthlingDavey just a couple of comments. I'll leave the call to you.

@@ -303,8 +308,18 @@ server {
# LOCATIONS - heath
##

location ~ ^/(liveness|readiness)$ {
location = /liveness {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would this also benefit from skipping the cache?

    if ($request_uri ~* "/liveness|/readiness") {
        set $skip_cache 1;
    }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good shout, I'll make the change.

@@ -140,6 +140,7 @@ public function serveMetrics(): void
{
header('Content-Type', 'text/plain');
echo $this->getServiceMetrics();
unset($this->guzzle_client);
Copy link
Contributor

Choose a reason for hiding this comment

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

We tested this, but it had no visual effect.
Do we still think it's needed, due to good-housekeeping, or should we consider removing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it can do any harm.

@EarthlingDavey EarthlingDavey merged commit 9b5fdbb into develop Oct 31, 2024
6 checks passed
@EarthlingDavey EarthlingDavey deleted the nginx-readiness-endpoint branch October 31, 2024 08:58
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.

2 participants