You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Amber Kulkarni <am...@gmail.com> on 2017/02/28 06:17:00 UTC

How to achieve throttling in storm ?

I have a topology which reads data from Kafka and performs some
actions(service calls). How do I ensure that service is hit with a
certain QPS ?

Setting TOPOLOGY_MAX_SPOUT_PENDING means that there are that many
tuples which are not acked or failed.

So Say that I need to throttle at 20 QPS what is the ideal value for
TOPOLOGY_MAX_SPOUT_PENDING. Also will this approach work ?

Thanks,
Amber Kulkarni

Re: How to achieve throttling in storm ?

Posted by Vijay Patil <vi...@gmail.com>.
Hi Amber,

TOPOLOGY_MAX_SPOUT_PENDING is just a pipe width, open it with very small
value, obviously you will get less throughput with that, keep increasing it
till you achieve desired throughout (obviously you will need to
tune parallelism for bolts as per observed capacity). There is nothing like
ideal value for TOPOLOGY_MAX_SPOUT_PENDING, it all depends on how
much parallelism you have per worker.

Regards,
Vijay

On 28 February 2017 at 11:47, Amber Kulkarni <am...@gmail.com>
wrote:

> I have a topology which reads data from Kafka and performs some
> actions(service calls). How do I ensure that service is hit with a
> certain QPS ?
>
> Setting TOPOLOGY_MAX_SPOUT_PENDING means that there are that many
> tuples which are not acked or failed.
>
> So Say that I need to throttle at 20 QPS what is the ideal value for
> TOPOLOGY_MAX_SPOUT_PENDING. Also will this approach work ?
>
> Thanks,
> Amber Kulkarni
>