consul may continue running without a working HTTP server
Overview of the Issue
We configure consul to run the HTTP API on port 8500. However, we found that sometimes we had a running consul process that wasn't listening on that port anymore.
After digging through logs we found the following:
text
2019/10/14 12:43:38 accept tcp 127.0.0.1:8500: accept4: too many open files in system
This corresponds to ENFILE (not EMFILE). The server had run out of file descriptors, and this aborted the HTTP accept loop: