'Nginx Health Checks Using POST
I have an issue where my servers become unhealthy through POST, PUT, and DELETE requests but are healthy for GET request. This meaning GET requests returns content, a POST request will timeout.
The issue I am having is AWS can only do health checks on GET requests, and I have a health check setup as such:
location /nginx-health {
access_log off;
return 200 "healthy\n";
}
Is is possible where I can write this function to make a POST or PUT request to another route to determine if the instance is healthy?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
