We have a web application (LAMP stack) with traefik as a reverse proxy that is suddenly giving HTTP 502 and 504 errors on >50% of requests, both for static files and php scripts. In the traefik dashboard I can see a count of these errors, but the logs there don't reveal any information - I suspected the issue was with Apache timing out, possibly from being overloaded.
However looking at the Apache logs, I only see successfully processed requests, as if it's never even seeing the requests that are failing. We haven't seen any spikes in usage, the server CPU utilization hovers around 60% as is typical, and we ensured there is ample disk space. I'm at a loss for how to diagnose what specifically is going on and how to fix it.
The application is dockerized with traefik, apache, and mysql each running in their own containers, and runs on a digital ocean VPS for further info. The software versions are as follows:
Apache: 2.4.57, PHP: 7.2.34-39, Traefik: 1.7.33, MySQL: 14.14 Distrib 5.7.35
Any insight or suggestions would be greatly appreciated!