Hey Willy,

On 25.04.2014 14:39, Willy Tarreau wrote:
On Fri, Apr 25, 2014 at 02:12:23PM +0200, Sander Klein wrote:
Hi,

I noticed a dramatic increase in CPU usage between HAProxy ss-20140329
and ss-20140425. With the first haproxy uses around 20% of CPU and with the latter it eats up 80-90% of cpu and sites start to become sluggish.
Health checks take much more time to complete 1100ms vs 2ms normal.

Nothing in my config has changed and when I downgrade everything returns
to normal.

I really don't like that at all :-(

I remember that you were running with gzip compression enabled in your config,
is that still the case ? It would be possible that in the past very few
responess were compressed due to the bug forcing us to disable compression of chunked-encoded objects, and that now they're compressed and eat all the
CPU. In order to be sure about this, could you please try to disable
compression in your config just as a test ? Otherwise, despite the numerous
changes, I see very few candidates for such a behaviour :-/

I currently don't have compression enabled in my config. I disabled it some time ago because of CPU usage ;-)

With the current snapshot I do get some warnings:

[WARNING] 114/152646 (12418) : parsing [/etc/haproxy/haproxy.cfg:185] : a 'http-request' rule placed after a 'reqxxx' rule will still be processed before. [WARNING] 114/152646 (12418) : parsing [/etc/haproxy/haproxy.cfg:240] : a 'block' rule placed after an 'http-request' rule will still be processed before.

But I don't suspect those are the issue.

Just to make sure I didn't give you a bogus report is upgraded/downgraded a couple of times, but every time I install 20140425 the CPU spikes and sites become sluggish.

Care for my config?

Sander

Reply via email to