Logging & rsyslogd

From: Mayur B <mayurb#gmail.com>
Date: Mon, 16 Feb 2009 14:14:02 -0800


Hello,

After enabling logging in rsyslogd & haproxy.config using the following lines, are CPU utilization has gone thru the roof. It used to be at 5-10% utilization, and it is now above 95% most of the time.

rsyslogd.conf:
# Save HA-Proxy logs
local0.*
/mnt/log/haproxy_0.log

local1.*
/mnt/log/haproxy_1.log

local2.*
/mnt/log/haproxy_2.log

local3.*
/mnt/log/haproxy_3.log

local4.*
/mnt/log/haproxy_4.log

local5.*
/mnt/log/haproxy_5.log

haproxy.cfg:
global

        log 127.0.0.1   local0
        log 127.0.0.1   local1 notice
        log 127.0.0.1   local2 err
        log 127.0.0.1   local3 alert
        log 127.0.0.1   local4 warning
        log 127.0.0.1   local4 crit
        log 127.0.0.1   local5 info
        #log loghost    local0 info
        maxconn 4096
        #debug
        #quiet
        user haproxy
        group haproxy


What is causing it to shoot so high with the syslog

We are also seeing that its collecting log files only for the default local0, and the rest are 0kb as shown below. total 950M

-rw------- 1 root root 949M Feb 16 22:13 haproxy_0.log
-rw------- 1 root root    0 Feb 16 19:25 haproxy_1.log
-rw------- 1 root root    0 Feb 16 19:25 haproxy_2.log
-rw------- 1 root root    0 Feb 16 19:25 haproxy_3.log
-rw------- 1 root root    0 Feb 16 19:25 haproxy_4.log
-rw------- 1 root root    0 Feb 16 19:25 haproxy_5.log


Thanks,

M Received on 2009/02/16 23:14

This archive was generated by hypermail 2.2.0 : 2009/02/17 00:15 CET