You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Espen Fjellvær Olsen <es...@mrfjo.org> on 2015/03/25 20:41:41 UTC

Topology throughput drops 60 % when introducing one bolt

Hi,

We are only just starting to play with Storm, and are a bit baffled by
all the knobs and leavers that can be tweaked for more or less
througput/latency.

We are using Kafka and the storm KafkaSpout to pull in data that is
somewhere between 500 - 700 bytes large. With only one spout executor
and one CountBolt (Thingie that counts and logs number of tuples per
second) executor we get about 60k tuples per second. This is a bit low
as we do not see any resource exhaustion on neither the Kafka nor the
Storm side. If we turn up the Kafka spouts fetchSize (a lot, 1000 times
the default) we exhaust the network while the spout is filling its
buffers, once the buffers are filled the network speed drops to zero and
the spout starts emitting tuples. So the overall tuples per second isnt
as high as it could be since the spout doesnt read data from Kafka, and
emit tuples at the same time.

Anyways.. 60k isnt that bad.. and with more executors we will be getting
more.


However, the real problem is that the througput drops about 60 % once we
introduce our first bolt, and I cannot fathom why.

Execute latency of the bolt is about 0.047, and the capacity is about
0.095. From what I understand we have miles to go on the capacity.
CPU, disk or network resources are nowhere near their max levels.

If I turn of acking in Storm we get only about 20 % throughput drop,
which is better, but still very bad considering the topology is
basically idling. Increasing the number of ackers do not help.

Raising topology.max.spout.pending (many orders of magnitude) does not
seem to have any impact on the total tps. Neither does fiddlign with the
various
topology.executor.receive.buffer.size/topology.executor.send.buffer.size/topology.receiver.buffer.size/topology.transfer.buffer.size
settings.


I feel like we have fiddled with all the obvious settings without seeing
any noteworthy throughput increase.

Hope anyone could shed some light on what we should look into.


--
Best regards
Espen Fjellvær Olsen
espen@mrfjo.org



Re: Topology throughput drops 60 % when introducing one bolt

Posted by Harsha <st...@harsha.io>.
Hi Espen,
             Kafkas throughput can be increased by adding more than one executor. Your topic partitions must match to the kafka spout parallelism as the topic partitions are parallelism units.  From your bolt are you doing ack for a tuple and how complex is the bolts execute method does it do any external calls to other systems.
Thanks,
Harsha


On March 25, 2015 at 12:45:01 PM, Espen Fjellvær Olsen (espen@mrfjo.org) wrote:

Hi,  

We are only just starting to play with Storm, and are a bit baffled by  
all the knobs and leavers that can be tweaked for more or less  
througput/latency.  

We are using Kafka and the storm KafkaSpout to pull in data that is  
somewhere between 500 - 700 bytes large. With only one spout executor  
and one CountBolt (Thingie that counts and logs number of tuples per  
second) executor we get about 60k tuples per second. This is a bit low  
as we do not see any resource exhaustion on neither the Kafka nor the  
Storm side. If we turn up the Kafka spouts fetchSize (a lot, 1000 times  
the default) we exhaust the network while the spout is filling its  
buffers, once the buffers are filled the network speed drops to zero and  
the spout starts emitting tuples. So the overall tuples per second isnt  
as high as it could be since the spout doesnt read data from Kafka, and  
emit tuples at the same time.  

Anyways.. 60k isnt that bad.. and with more executors we will be getting  
more.  


However, the real problem is that the througput drops about 60 % once we  
introduce our first bolt, and I cannot fathom why.  

Execute latency of the bolt is about 0.047, and the capacity is about  
0.095. From what I understand we have miles to go on the capacity.  
CPU, disk or network resources are nowhere near their max levels.  

If I turn of acking in Storm we get only about 20 % throughput drop,  
which is better, but still very bad considering the topology is  
basically idling. Increasing the number of ackers do not help.  

Raising topology.max.spout.pending (many orders of magnitude) does not  
seem to have any impact on the total tps. Neither does fiddlign with the  
various  
topology.executor.receive.buffer.size/topology.executor.send.buffer.size/topology.receiver.buffer.size/topology.transfer.buffer.size  
settings.  


I feel like we have fiddled with all the obvious settings without seeing  
any noteworthy throughput increase.  

Hope anyone could shed some light on what we should look into.  


--  
Best regards  
Espen Fjellvær Olsen  
espen@mrfjo.org  



Re: Topology throughput drops 60 % when introducing one bolt

Posted by Espen Fjellvær Olsen <es...@mrfjo.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 27/03/15 14:54, Nathan Leung wrote:
> Is it possible that the bolt counting TPS is the bottleneck?  How 
> many worker processes are you using?

It may be, it is only running one executor at the moment. I will try
and up the number of executors and start summing the numbers manually.

Running on two nodes, with three workers each.

- -
Espen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJVFWTDAAoJEGRJGToNyJnzypQP/30glUKPYYM5iPt8ec4VK8Dt
goA+uwnpzcHGbBl2HWbveD/uJtgVpAqST/QViDtXagZtv/DBub4w05gefflflqOP
brRnSOMyVpoQjWF7WJowErwkj/M04gzJRq0voPtS/m7g8zKKAgCfDXLNnbo37PsD
wUE9m9m4QVeCwJoFGEk/TgHoQRRsb5Tkgx6EActjqPaVX8d1Qo8x+56XCQKyFcpq
uv2sIVctIQeRuQTRm/DPAPSpWkKe5XfQ4ja5XjE78+ee6GAWtKlXhHmgpT00Q6Wk
J0ToZr06cXsKvcK4k5/wnGdeb97EQ1Bfe1xoKed2PDcjCN3rhh1SP1ZbsdEhePBo
ZrfRacB3LVjUw1aot0MU7Tcl6UHRI7pxpZNFXO7Go704vd7qNpxUF88i22hvxwMd
MDpd4W/gMTxXhOoZ4hnxPSPYYHtUdsnslDMqEBWgfDRILnkG3PW4v10moIybvwk+
CkHzxUcr+VJrRWlKXHAYWIQTTOqjSWdTqgM0iGDq5Qv4R3wmg/dl3o8aIux1/3sY
7cuZdcBTbIG6shkAO1MjAGBpkR+aBlUexu/qmnrKcDMkYSG7KpacnvH8vIcnsxGf
npsNK8IzVTtQpvHzRJUldOVavnC2Hn8NgC7S2PyF+2LpNR+foozPsPnhE6b+6Sop
el/q8v73AqFzhNvN1K0b
=JvqD
-----END PGP SIGNATURE-----

Re: Topology throughput drops 60 % when introducing one bolt

Posted by Nathan Leung <nc...@gmail.com>.
Is it possible that the bolt counting TPS is the bottleneck?  How many
worker processes are you using?

On Fri, Mar 27, 2015 at 9:14 AM, Espen Fjellvær Olsen <es...@mrfjo.org>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 27/03/15 13:16, Nathan Leung wrote:
> > How many bolt tasks/executors do you have?  If execution latency is
> > 0.05 I would expect max of 20k tuples / s with 1 bolt executor.
>
> 1 spout, 20 executors for the bolt, and 1 executor for the bolt doing
> the counting of tps.
>
>
> - --
> Espen
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBAgAGBQJVFVexAAoJEGRJGToNyJnzuOQQAJ52szJLmFmfRPHyjEsvczpJ
> PSlb2Kl0aEPF1058W6q1Y9FPo09oOH9YFBS5VukB9y+k519Cvh1LyC206h9T3AZn
> 2BJZl/AbyNHntvDLDhSI7msRV/h5Vs/FT7nzNyZ3GdXNWZdsKYNuzhJ0pMvF4xSs
> 9fiCacY0WBH11yXQruiL3VbG3coi7EoWJaG66CF1fgYzvwuBVFZZMUjW66V4AJgp
> SGq8U+zEgwyOnsc1XW384IyrmGqgjF9ywq1uD7DVAWMP5WhTXiJMkxVdY2GWHmP6
> gKrhN2ctFVWtKgd57yuHJeO49O3q2xjLOerhoDTAAUzJrdlNevCQ5heKcpK/yEey
> 3FDJtbKWN4SqAvmd/hMpPwAKmCU9W7aNWZYk5tbg/EFBnmgP0BAKxWPB7ULqrlOU
> zd0dK/WSD2J/C12wgDTppxihn+4RozukKVXgp0HyUyxe4YrQdoMwpQltOq70V0hK
> /+RtTTj+FdM8z5YQA6RgdzQrtEx/PdvTlkeRVzoj2hSgHBuCtheEx901WNzi4er/
> 3gF6CLv54IxYK7CZkPsbuCsafIMW7oM9jn0LLsuzGON6BIw6CRnSK2jaXUeRTFhA
> PpJ9XjO3DHMmfmOa3xWxysijvUEZ4OpH3gdIwX/tsWy94WWidRnL2NaTB+FOb8Ew
> qeyZzi4nQHX0DWvGs0hh
> =sD+x
> -----END PGP SIGNATURE-----
>

Re: Topology throughput drops 60 % when introducing one bolt

Posted by Espen Fjellvær Olsen <es...@mrfjo.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 27/03/15 13:16, Nathan Leung wrote:
> How many bolt tasks/executors do you have?  If execution latency is
> 0.05 I would expect max of 20k tuples / s with 1 bolt executor.

1 spout, 20 executors for the bolt, and 1 executor for the bolt doing
the counting of tps.


- --
Espen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJVFVexAAoJEGRJGToNyJnzuOQQAJ52szJLmFmfRPHyjEsvczpJ
PSlb2Kl0aEPF1058W6q1Y9FPo09oOH9YFBS5VukB9y+k519Cvh1LyC206h9T3AZn
2BJZl/AbyNHntvDLDhSI7msRV/h5Vs/FT7nzNyZ3GdXNWZdsKYNuzhJ0pMvF4xSs
9fiCacY0WBH11yXQruiL3VbG3coi7EoWJaG66CF1fgYzvwuBVFZZMUjW66V4AJgp
SGq8U+zEgwyOnsc1XW384IyrmGqgjF9ywq1uD7DVAWMP5WhTXiJMkxVdY2GWHmP6
gKrhN2ctFVWtKgd57yuHJeO49O3q2xjLOerhoDTAAUzJrdlNevCQ5heKcpK/yEey
3FDJtbKWN4SqAvmd/hMpPwAKmCU9W7aNWZYk5tbg/EFBnmgP0BAKxWPB7ULqrlOU
zd0dK/WSD2J/C12wgDTppxihn+4RozukKVXgp0HyUyxe4YrQdoMwpQltOq70V0hK
/+RtTTj+FdM8z5YQA6RgdzQrtEx/PdvTlkeRVzoj2hSgHBuCtheEx901WNzi4er/
3gF6CLv54IxYK7CZkPsbuCsafIMW7oM9jn0LLsuzGON6BIw6CRnSK2jaXUeRTFhA
PpJ9XjO3DHMmfmOa3xWxysijvUEZ4OpH3gdIwX/tsWy94WWidRnL2NaTB+FOb8Ew
qeyZzi4nQHX0DWvGs0hh
=sD+x
-----END PGP SIGNATURE-----

Re: Topology throughput drops 60 % when introducing one bolt

Posted by Nathan Leung <nc...@gmail.com>.
How many bolt tasks/executors do you have?  If execution latency is 0.05 I
would expect max of 20k tuples / s with 1 bolt executor.

On Fri, Mar 27, 2015 at 3:20 AM, Espen Fjellvær Olsen <es...@mrfjo.org>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> On 25/03/15 23:10, Harsha wrote:
> > Hi Espen, Kafkas throughput can be increased by adding more than
> > one executor. Your topic partitions must match to the kafka spout
> > parallelism as the topic partitions are parallelism units.  From
> > your bolt are you doing ack for a tuple and how complex is the
> > bolts execute method does it do any external calls to other
> > systems.
>
> The bolt isnt that complex, as written it runs with an execution
> latency of 0.05 ms. No external calls of any kind.
> As written I am also doing acks in my topology.
>
>
>
> - -
> Espen
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBAgAGBQJVFQS4AAoJEGRJGToNyJnzJyMQAKeyfkC8pJl3ZGmR5SPkJuGm
> ju3ulLZU3k0l2PfCV6wCdY8xOpVJE/70QzRHPQHVKUG87cxkraX3WX2idqSzD4CQ
> 23x3b7hEhHaL4Ylv0WCfWN9/NxvPreEP7AdNzvW3Kg3BWnnrECqDEHi7pkkcKcfa
> 79vvW5MFn7qNTnpk6b8Of0e2qosJoDj4BgQ0UOotLR2Uwz9YkAp3ioqqC4JdEJij
> T55I02paDoDIp4pqNkN9zxRW3ujkM3KW68QcJ2B2jk1Pl+3ZGq5I6py4dhoxVFfl
> LiGWC2blsIoSLtnK28m2cJel0M/IsNIp0h0gCMXiyo6NPy/F+7q5MOoXIk1JHqgt
> hw3ZquFj7Tevf6kLUDtxOu7pzjhC5i97BiWnFpdhjCPnobznVrUTHOv9rc/nRzw/
> +H0zJANwX7UbV29ZH6AKAFD4hfSl9ARnt5+5u11qC3NqrDQKrZPWnNsbOD9v9i8+
> HuZd5D5vMcXDuAQyZXhWMCQqKc5aO6d06rbwplm7CMAxipUkFnQknbcd/GcQDrmD
> wd+aYt6ssLPreGbvFW4y0NcqdTOKhHJ6OpHvTfzVuREqGSICuoGrNiKzE9Acdfzc
> Stxji3KSAGVEYr07kuL6R3lgcQCWGqrJjsj/95Bwv/qolmhvzi2Tq4pYg+7zoWyI
> Z/3Bm8Bh037HNe1XtJ7H
> =TelK
> -----END PGP SIGNATURE-----
>

Re: Topology throughput drops 60 % when introducing one bolt

Posted by Espen Fjellvær Olsen <es...@mrfjo.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 25/03/15 23:10, Harsha wrote:
> Hi Espen, Kafkas throughput can be increased by adding more than
> one executor. Your topic partitions must match to the kafka spout 
> parallelism as the topic partitions are parallelism units.  From
> your bolt are you doing ack for a tuple and how complex is the
> bolts execute method does it do any external calls to other
> systems.

The bolt isnt that complex, as written it runs with an execution
latency of 0.05 ms. No external calls of any kind.
As written I am also doing acks in my topology.



- -
Espen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJVFQS4AAoJEGRJGToNyJnzJyMQAKeyfkC8pJl3ZGmR5SPkJuGm
ju3ulLZU3k0l2PfCV6wCdY8xOpVJE/70QzRHPQHVKUG87cxkraX3WX2idqSzD4CQ
23x3b7hEhHaL4Ylv0WCfWN9/NxvPreEP7AdNzvW3Kg3BWnnrECqDEHi7pkkcKcfa
79vvW5MFn7qNTnpk6b8Of0e2qosJoDj4BgQ0UOotLR2Uwz9YkAp3ioqqC4JdEJij
T55I02paDoDIp4pqNkN9zxRW3ujkM3KW68QcJ2B2jk1Pl+3ZGq5I6py4dhoxVFfl
LiGWC2blsIoSLtnK28m2cJel0M/IsNIp0h0gCMXiyo6NPy/F+7q5MOoXIk1JHqgt
hw3ZquFj7Tevf6kLUDtxOu7pzjhC5i97BiWnFpdhjCPnobznVrUTHOv9rc/nRzw/
+H0zJANwX7UbV29ZH6AKAFD4hfSl9ARnt5+5u11qC3NqrDQKrZPWnNsbOD9v9i8+
HuZd5D5vMcXDuAQyZXhWMCQqKc5aO6d06rbwplm7CMAxipUkFnQknbcd/GcQDrmD
wd+aYt6ssLPreGbvFW4y0NcqdTOKhHJ6OpHvTfzVuREqGSICuoGrNiKzE9Acdfzc
Stxji3KSAGVEYr07kuL6R3lgcQCWGqrJjsj/95Bwv/qolmhvzi2Tq4pYg+7zoWyI
Z/3Bm8Bh037HNe1XtJ7H
=TelK
-----END PGP SIGNATURE-----