tapis-project / pods_service

Network Accessible Pods API.
https://tapis.readthedocs.io/en/latest/technical/pods.html
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Host not found in upstream NGINX bug causing broken NGINX. #13

Closed NotChristianGarcia closed 2 years ago

NotChristianGarcia commented 2 years ago

There might be real issues with the current implementation of a hot reloading NGINX. Testing is really required, it could "just work". But Nginx currently kind of breaks if it doesn't find a pod. So if we delete a pod before NGINX accounts for it, it could mean breaking NGINX every so many seconds.

This now matters as we have stop/restart commands. Seems like there is indeed an issue. Needs work.

Nginx likes to error out when an "upstream" connection is missing. As if pod is gone. Try and remedy this. Might not be a problem when reloading nginx, only initial deploy. Investigate. - stack overflow suggestions

NotChristianGarcia commented 2 years ago

No longer using Nginx. Using Traefik and it supports hot-reloading properly.