On Thu, 23 Jul 2015, [email protected] wrote:
Hello all,I'm currently trying to load balance the log traffic accross several servers. I thought my configuration with "ActionSendTCPRebindInterval" option was working properly, unfortunately my recent benchs show that the log flow is not well load balanced. Please find below a part of the architecture : My problem is located on the log aggregators : the rsyslog send its traffic to haproxy on localhost using relp protocol. I monitored the tcp sessions and i can see that haproxy doesn't change the destination servers. watch 'ss -lap -o state established \( dport = :20514 \)' Recv-Q Send-Q Local Address:Port Peer Address:Port 1716 0 127.0.0.1:43652 127.0.0.1:20514 users:(("rsyslogd",8409,88)) 0 1138 10.17.252.4:58436 10.19.12.5:20514 timer:(on,196ms,0) users:(("haproxy",3922 ,2)) 1760 0 127.0.0.1:43650 127.0.0.1:20514 users:(("rsyslogd",8409,22)) 0 0 10.17.252.4:55583 10.19.12.6:20514 users:(("haproxy",3922,10)) Please find enclosed my configuration. NB : - the source pid (rsyslog) never change as it is expected with "ActionSendTCPRebindInterval"
the source pid would not change. the source port will change, but not the pid. how is haproxy configured?
- i mixed legacy and new syntaxe because of the following bug https://github.com/rsyslog/rsyslog/issues/96 This bug is annoying and i didn't receive any update since about 4 months
hmm, there is another thread in the last day about some queue parameters not being set by default, take a look at it and try setting those parameters (subject line "Disk queue to flush after restart")
reading the docs and code, it's not clear to me that omrelp accepts a rebindinteval from the old style config format (one problem with the old style format is that you can't know from reading the config what values will be used by the module. looking at the function INITLegCnfVars in omrelp.c it looks like it doesn't set or honor any legacy config parameters, so I don't think that you are getting teh rebindinterval set the way you think you are.
try running rsyslog -dn and look for the config settings like the other thread I mentioned above does
David Lang _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.

