Don't want http 504's for idempotent requests
nginx-forum at forum.nginx.org
Thu Jan 26 17:45:18 UTC 2017
I have a REST API behind nginx.
Sometimes we get back an http 504 despite our software being up, and we
don't want that, at least not for idempotent requests. We don't want 504's
for idempotent requests even if it means waiting a while for a response.
I'd look at the application to see what's taking too long, but it's actually
happening for a very simple health check of the API sometimes - all the
health check does is return a 200, nothing more.
# We have 8 upstream servers defined.
...to no avail.
Also, I tried upgrading our nginx to 1.10.2 , but that didn't appear to help
- I'm still getting infrequent 504's.
I'm convinced we're getting 504's in less than 10 minutes, suggesting those
600 second timeouts aren't working as intended.
How can I eliminate http 504's for idempotent requests like GET?
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272154,272154#msg-272154
More information about the nginx