Thanks. My problem was resolved.

On Mon, Sep 15, 2014 at 4:30 PM, David Lang <[email protected]> wrote:

> On Mon, 15 Sep 2014, Liwei Peng wrote:
>
>  Hi, I am writing an output module using batching mode for messages. From
>> this document:
>> http://www.rsyslog.com/doc/master/development/dev_oplugins.html, I can
>> configure the max batch size.
>>
>> Question: how do I configure the max match size?
>>
>
> The batch size is set as part of a queue definition, see
> http://www.rsyslog.com/doc/master/rainerscript/queue_parameters.html
>
>  What's the different from the $queuesize?
>>
>
> The queuesize is how many messages are waiting for actions to be taken on
> them, max batch size is the maximum number that rsyslog will try to process
> at once.
>
> So if rsyslog is a little behind and has 1000 messages waiting to be
> processed, and a max queue size of 100, the worker thread will
>
> 1. lock the queue
> 2. mark 100 messages as being 'in flight'
> 3. unlock the queue
> 4. process all actions for those 100 messages
> 5. lock the queue
> 6. mark those 100 messages delivered
> 7. unlock the queue
>
>
> If you don't use batch interface, that process must be done for each
> message (remember that there may be multiple worker threads running at one
> time)
>
> Does this answer your question?
>
> 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.
>
_______________________________________________
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