I have a setup that works like this:

internet->haproxy->apache->tomcat

I have been doing some experiments where the apache server is skipped,
and traffic goes directly from haproxy to tomcat.  These experiments
have gone very well.  Removing Apache from the mix would simplify things
greatly.

I have concluded that the only useful thing we are getting out of Apache
is a logfile per virtualhost.  The Apache logs are nowhere near as
helpful for troubleshooting an individual problem as haproxy's log, but
there are certain kinds of investigations where having a logfile for
each virtualhost *IS* useful, even if it doesn't have all the info that
haproxy logs.

Can haproxy be configured to create multiple logfiles?  Can the filename
of each log be controlled easily in the haproxy config?  Can I use
dynamic info for the logfile name like the value in the Host header?

Currently, haproxy logs to syslog, and aside from log rotation, the
syslog config sends all of haproxy's logs to one logfile.

The *format* of the haproxy logfile is fine as it is, except that I
would like to have more than the 1024 bytes that syslog allows.

Thanks,
Shawn

Reply via email to