Hi Steve,

On Tue, Mar 03, 2009 at 03:17:43PM +0800, Sun Yijiang wrote:
> Hi everyone,
> 
> I've been testing HAProxy for two days, it runs very well.  However, I
> noticed that during the last 4 hours, with total 520K sessions, the number
> of frontend request errors (row "Frontend", column "Errors/Req" in the table
> on stats page) is near 3K.  My questions are:
> 
>    - What does this number mean?  or, What kind of error is that?  Does it
>    represent connection problems between the browser and HAProxy?

Yes, precisely. You just keep in mind that it's not always a browser which
connects to your public address, there are tons of bots and scanners :-)

The types of error reported here include :
  - connection without data (scan)
  - invalid requests (buggy robots)
  - timeout requests (disconnected browsers, requests typed by hand, ...)
  - denied requests due to ACLs you might have installed

>    - Is this number too high with regard to the total sessions?  Anything I
>    can do to fix it?

It's about 0.6%. I would say that it's a bit high but not *that* high.
About 3 times what I observe at other places (around 0.2%). It will depend
on the level of exposure of your service (attacks, scans) and the quality
of the network between your clients and your site.

The logs will give you much more info about the precise reasons though.

Regards,
Willy


Reply via email to