Forum: NGINX Cycling through only one worker

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6334381510927b601060f96ab1f5ba8c?d=identicon&s=25 Ulrik Sandberg (Guest)
on 2008-12-03 13:49
(Received via mailing list)
I had an interesting experience just now.

Setup: nginx proxies a portal server, which uses an underlying app
server to
render some contents.

Problem: When displaying a portal page containing content from an app
server, it rendered, and rendered, and rendered again, repeatedly. No
error
codes. The error log said "client closed prematurely connection ...",
and
the access log said "got page, got images, got page again, got images
again,
...".

We currently have only a single worker, and due to misconfiguration, the
underlying app server failed miserably. The request was aborted
prematurely,
probably due to the app server failing. I guess nginx considered the
worker
broken and tried another, which was the same worker. And it kept
repeating
this.

Question: Can I tell nginx to detect this cycle and instead display an
error?
This topic is locked and can not be replied to.