Important: Nginx + Haproxy + Mongrel Question


#1

We have configured nginx + haproxy + mongrels [ more than 150
instances].
While it works perfectly fine for small configuration, a larger set of
mongrels - fail completely.

I have attached the configuration file for your reference. Apologies for
the
inconvenience if this is coming into the wrong list.

Thanks in Advance

Asif


#2

Hi Asif,

What fails completely ? HaProxy, Mongrel or Nginx ?

I noticed that 192.168.1.16 for instance had over 50 mongrels assigned
to it. At an average memory usage of 60-80 meg (just after startup)
that is an enormous amount of memory in use (if I understand your
config correctly), is the problem with the underlying server platform?
Possibly swapping, or spending all its time scheduling processes?

Cheers

Dave


#3

Dave,
Each of those servers are 16G RAM, Quad Core, Dual Processor Machines by
Dell. So - the memory shouldn’t really be a problem.

Although someone did mention that ip_conntrack module might be a
problem.

I am not sure what the issue is and not able to understand - why
haproxy is
unable to route requests.

Can you please tell me if there could be some other issue?

regards

Asif


#4

Hi Asif,

What do the haproxy logs say ?

Cheers

Dave