-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx "502 Bad Gateway" #130
Comments
Note that the "Gateway TIme-out" message is being received by the client (a Python script) that is sending requests to k8s. The NGINX instance (the k8s ingress) however, is printing msgs like these:
which looks like the Apache container is the bottleneck. The current configuration is "k8s ingress (NGINX)" -> Apache2 -> Apache Tomcat The Apache2 container isn't really required here, as the k8s NGINX ingress can provide SSL/TLS termination and routing, so the next thing to try is a direct connection between NGINX and Tomcat. |
Update: the Apache2 container has been removed, so that NGINX is sending requests directly to the 8080 port of the container running Apache Tomcat. The metadig-engine controller is running in this container. The '... upstream timed out' messages are still being printed by NGINX, however, all quality document requests are being processed and indexed into Solr. I suspect that connections between NGINX and Tomcat are staying open, then timing out. It appears that the response from Tomcat isn't being received by NGINX. |
When many requests are send to k8s metadig, Nginx response with either:
504 Gateway Time-out
or502 Bad Gateway
The former message is received when 1000 requests are sent in less than 60 seconds.
The later message is more common when 1000 requests are sent, but a 1 second pause is use after every 10 request.
It appears that Nginx or the connection itself is becoming saturated.
BTW, the full test involves sending 10000 unique metadata documents to be quality scored.This test will be run as soon as these
Gateway
problems have been resolved.The text was updated successfully, but these errors were encountered: