22.10.2013 14:39, David Lang:
actualy it will, you see 256 is the max batch size, rsyslog will grab _up_to_ 256 messages for the batch, so if you incrament per message you will seldom be incrimenting by 256 (unless your system is always running behind)

but if I am understanding things correctly, putting set $/counter = $/counter +1; in your config will end up incrimenting counter by 1 per batch, not by the number of messages in the batch, with the race condition that two different threads may end up racing and ending up with $/counter only going up by 1 when it should go up by 2.

No, unfortunately, you are wrong twice.

First, at loaded server you will get full batches from time to time. And, then, next batch will probably get to the same destination action. This will lead to avalanche overload.

If we, by chance, get a partial batch, it will be good for load balancing, as it brings some randomization.

Second, globals are incremented once per message, not per batch.

--
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.

Reply via email to