-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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;
}
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.