You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Yunmeng Ban <ba...@gmail.com> on 2014/03/01 02:41:50 UTC

Re: How does emitBatch in IBatchSpout work?

Thank you Danijel !

Best,

Yunmeng


2014-02-28 3:03 GMT-05:00 Danijel Schiavuzzi <da...@schiavuzzi.com>:

> Hi Yunmeng,
>
> Take a look at the Config.setMaxSpoutPending() and
> Config.TRIDENT_BATCH_EMIT_INTERVAL_MILLIS parameters.
>
> Regards,
>
> Danijel
>
>
> On Thu, Feb 27, 2014 at 10:51 PM, Yunmeng Ban <ba...@gmail.com>wrote:
>
>> Hi,
>>
>> I am benchmarking the latency of trident. I send tuples with timestamp in
>> batchs using a BatchSpout that implements IBatchSpout. But I found the
>> latency of the tuples keeps increasing. I found that the the emitBatch
>> executes every 1.7 seconds even I don't have any processing in the
>> BatchSpout, but I want spout to send tuples without blocking.
>>
>> Does anyone know how emitBatch works? How can I avoid blocking in
>> emitBatch?
>>
>> Thanks.
>>
>> Yunmeng
>>
>
>
>
> --
> Danijel Schiavuzzi
>
> E: danijel@schiavuzzi.com
> W: www.schiavuzzi.com
> T: +385989035562
> Skype: danijels7
>