On Wed, Dec 4, 2013 at 8:51 PM, Pavel Levshin <[email protected]> wrote:

> Hello.
>
> I've run into a problem while forwarding syslog traffic to another rsyslog
> via UDP. The forwarding host is using rsyslog 7.4.6, but this part of the
> code is similar in 7.5 and v8.
>
> The host is receiving approximately 100krps, writes them to files, and
> forwards along. Each minute, at 13th second of the minute, all omfwd
> outputs cease to work. At 43th second, they are resumed for the next half
> of a minute. This happens because socket output queue becomes full, probaly
> there are some burst of messages around this second each minute. Increasing
> core.wmem_default solves that. But I feel that this is just a workaround.
>
> For me, it looks strange that omfwd action is suspended, when using UDP. I
> cannot realize any valid reason for suspending the action for more than few
> milliseconds. Why suspend UDP flow at all?
>
>
That's a good question. It's quite an old body of code, probably not
touched within the past 5 years. I have checked the potential error codes
and there indeed is little that would justify a suspension. Even at "output
queue full" we should probably try to wait one ms, and only give up after
some retries have failed consequitively.

What do you think?


> Unfortunalely, rsyslog has action.resumeinterval parameter measured in
> seconds, so any value above zero will block traffic for too long. Should I
> set action.resumeinterval="0" in this case?
>
>
I can add a ms parameter, but I feel it's just for this case which I think
we can address better in the way described above. Do you agree?

Rainer


> As far as I see from sources, retry code probably will not resend failed
> message, because retries are done in a tight loop and socket congestion
> will probably exist for some microseconds?
>
>
> --
> Pavel Levshin
>
> _______________________________________________
> 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.
>
_______________________________________________
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.

Reply via email to