I use nginx serving 2 applications. Each is powered by cluster of at
least 2 mongrels. While one application is working fine and running for
days without problem, another one is just screwed up *when* running in
That is, this problematic application runs fine when it is handled by
one mongrel. But when it is served by two or more mongrels (with nginx
as balancing proxy at front) there are totally strange errors. So far I
observed three of them happening very randomly:
- Application Error - caused by not founding controller's class for
some unknown reason. And that class is there and it is found by
- 404 Not Found - in log there's Recognition Failed Error for
completely valid request. Hitting refresh makes it suddenly working
- Infinite loop - application just go into looping, eating all CPU and
doing nothing. No log entry for this.
I think it is because nginx cannot provide balancing with sticky
session to backend. So may be storing a normal object (derived from
Object) into session causing these weird problems?