Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STORM-1662] Reduce map lookups in send_to_eventlogger #1272

Closed
wants to merge 1 commit into from

Conversation

arunmahadevan
Copy link
Contributor

Reducing map lookup in send_to_eventlogger can improve performance when when a spout emits in a tight loop.

Reducing map lookup in send_to_eventlogger can improve performance when when a spout emits in a tight loop.
@arunmahadevan
Copy link
Contributor Author

@HeartSaVioR could you take a look ?

@HeartSaVioR
Copy link
Contributor

+1 if it's same to arunmahadevan@7eae5ec.

I already applied this patch from #1217 and test, and it looks good.

Btw, I may need to have dedicated server during test, cause when last performance test for me this patch doesn't increase throughput when eventlogger=1 but this patch increase throughput when eventlogger=0.
(Tested with roshan's topology, I didn't test with your topology. I can't even work while benchmarking since I should run that for my work machine... ;( )

event logger executors=1, origin

uptime: 540 duration: 30 secs
spout emitted: 24016500 (total: 420641440) emitted/sec (in duration): 800550.0
bolt emitted: 24016620 (total: 420639920) emitted/sec (in duration): 800554.0
uptime: 570 duration: 30 secs
spout emitted: 24392600 (total: 445034040) emitted/sec (in duration): 813086.6666666666
bolt emitted: 24392480 (total: 445032400) emitted/sec (in duration): 813082.6666666666
uptime: 600 duration: 30 secs
spout emitted: 24524700 (total: 469558740) emitted/sec (in duration): 817490.0
bolt emitted: 24524620 (total: 469557020) emitted/sec (in duration): 817487.3333333334

event logger executors=0, origin

uptime: 541 duration: 30 secs
spout emitted: 27652560 (total: 441035220) emitted/sec (in duration): 921752.0
bolt emitted: 27653040 (total: 441034260) emitted/sec (in duration): 921768.0
uptime: 571 duration: 30 secs
spout emitted: 25150820 (total: 466186040) emitted/sec (in duration): 838360.6666666666
bolt emitted: 25150280 (total: 466184540) emitted/sec (in duration): 838342.6666666666
uptime: 601 duration: 30 secs
spout emitted: 25021760 (total: 491207800) emitted/sec (in duration): 834058.6666666666
bolt emitted: 25021860 (total: 491206400) emitted/sec (in duration): 834062.0

event logger executors=1, applied arun's patch

uptime: 541 duration: 30 secs
spout emitted: 24319300 (total: 426107880) emitted/sec (in duration): 810643.3333333334
bolt emitted: 24319140 (total: 426106420) emitted/sec (in duration): 810638.0
uptime: 571 duration: 30 secs
spout emitted: 24394800 (total: 450502680) emitted/sec (in duration): 813160.0
bolt emitted: 24395420 (total: 450501840) emitted/sec (in duration): 813180.6666666666
uptime: 601 duration: 30 secs
spout emitted: 24425140 (total: 474927820) emitted/sec (in duration): 814171.3333333334
bolt emitted: 24424720 (total: 474926560) emitted/sec (in duration): 814157.3333333334

event logger executors=0, applied arun's patch

uptime: 541 duration: 30 secs
spout emitted: 26572320 (total: 464465820) emitted/sec (in duration): 885744.0
bolt emitted: 26572680 (total: 464464560) emitted/sec (in duration): 885756.0
uptime: 571 duration: 30 secs
spout emitted: 26573580 (total: 491039400) emitted/sec (in duration): 885786.0
bolt emitted: 26573140 (total: 491037700) emitted/sec (in duration): 885771.3333333334
uptime: 601 duration: 30 secs
spout emitted: 26586520 (total: 517625920) emitted/sec (in duration): 886217.3333333334
bolt emitted: 26587000 (total: 517624700) emitted/sec (in duration): 886233.3333333334

Super odd result anyway, so I'd really like to see stable numbers.

@arunmahadevan
Copy link
Contributor Author

@HeartSaVioR actually this patch has no effect with eventlogger=0. I assume you modified BasicTopology to emit a constant long. I also restart all the storm processes before each run and let it run for 12 mins and compare the last 10 min window stats.

@HeartSaVioR
Copy link
Contributor

@arunmahadevan
No effect with eventlogger=0 is what I assume, so I'm saying that's weird...
I tested on roshan's topology with no modifying.
Maybe I need to clean up something with each test, or test with your topology.

@arunmahadevan
Copy link
Contributor Author

I tested on roshan's topology with no modifying.

I also tried that and it was producing weird results, so I changed it to emit a constant long and restarted storm processes after each run.

@HeartSaVioR
Copy link
Contributor

@arunmahadevan
I've just done with performance test, and the result is a bit different than what I expected.

eventlogger-performance-test-storm-1662-graph

This patch affects the performance even though event logger is set to 0 which I can't understand.
This performance test is done with your topology + modification for logging performance.
(https://gist.github.com/HeartSaVioR/0e2555633a5f7d12cb68)
I restarted all Storm processes for every test.

eventlogger-performance-test-STORM-1662-excel.xlsx

Since test is done with my dev. machine (MBP), I really would like to borrow a dedicated machine and try this performance test again.

@HeartSaVioR
Copy link
Contributor

In result, sorry I changed my vote to +0 for now.
I think we should make the test result stable before taking any actions.

  • test several times and take average or mean
  • test longer
  • test with dedicated (idle, not dev., no GUI) machine

If we can get the stable result before releasing 1.0.0 is in progress, we can include this as 1.0.0. But it shouldn't block releasing 1.0.0.

d2r pushed a commit to d2r/storm that referenced this pull request Oct 16, 2018
We are closing stale Pull Requests to make the list more manageable.

Please re-open any Pull Request that has been closed in error.

Closes apache#608
Closes apache#639
Closes apache#640
Closes apache#648
Closes apache#662
Closes apache#668
Closes apache#692
Closes apache#705
Closes apache#724
Closes apache#728
Closes apache#730
Closes apache#753
Closes apache#803
Closes apache#854
Closes apache#922
Closes apache#986
Closes apache#992
Closes apache#1019
Closes apache#1040
Closes apache#1041
Closes apache#1043
Closes apache#1046
Closes apache#1051
Closes apache#1078
Closes apache#1146
Closes apache#1164
Closes apache#1165
Closes apache#1178
Closes apache#1213
Closes apache#1225
Closes apache#1258
Closes apache#1259
Closes apache#1268
Closes apache#1272
Closes apache#1277
Closes apache#1278
Closes apache#1288
Closes apache#1296
Closes apache#1328
Closes apache#1342
Closes apache#1353
Closes apache#1370
Closes apache#1376
Closes apache#1391
Closes apache#1395
Closes apache#1399
Closes apache#1406
Closes apache#1410
Closes apache#1422
Closes apache#1427
Closes apache#1443
Closes apache#1462
Closes apache#1468
Closes apache#1483
Closes apache#1506
Closes apache#1509
Closes apache#1515
Closes apache#1520
Closes apache#1521
Closes apache#1525
Closes apache#1527
Closes apache#1544
Closes apache#1550
Closes apache#1566
Closes apache#1569
Closes apache#1570
Closes apache#1575
Closes apache#1580
Closes apache#1584
Closes apache#1591
Closes apache#1600
Closes apache#1611
Closes apache#1613
Closes apache#1639
Closes apache#1703
Closes apache#1711
Closes apache#1719
Closes apache#1737
Closes apache#1760
Closes apache#1767
Closes apache#1768
Closes apache#1785
Closes apache#1799
Closes apache#1822
Closes apache#1824
Closes apache#1844
Closes apache#1874
Closes apache#1918
Closes apache#1928
Closes apache#1937
Closes apache#1942
Closes apache#1951
Closes apache#1957
Closes apache#1963
Closes apache#1964
Closes apache#1965
Closes apache#1967
Closes apache#1968
Closes apache#1971
Closes apache#1985
Closes apache#1986
Closes apache#1998
Closes apache#2031
Closes apache#2032
Closes apache#2071
Closes apache#2076
Closes apache#2108
Closes apache#2119
Closes apache#2128
Closes apache#2142
Closes apache#2174
Closes apache#2206
Closes apache#2297
Closes apache#2322
Closes apache#2332
Closes apache#2341
Closes apache#2377
Closes apache#2414
Closes apache#2469
d2r pushed a commit to d2r/storm that referenced this pull request Oct 16, 2018
We are closing stale Pull Requests to make the list more manageable.

Please re-open any Pull Request that has been closed in error.

Closes apache#608
Closes apache#639
Closes apache#640
Closes apache#648
Closes apache#662
Closes apache#668
Closes apache#692
Closes apache#705
Closes apache#724
Closes apache#728
Closes apache#730
Closes apache#753
Closes apache#803
Closes apache#854
Closes apache#922
Closes apache#986
Closes apache#992
Closes apache#1019
Closes apache#1040
Closes apache#1041
Closes apache#1043
Closes apache#1046
Closes apache#1051
Closes apache#1078
Closes apache#1146
Closes apache#1164
Closes apache#1165
Closes apache#1178
Closes apache#1213
Closes apache#1225
Closes apache#1258
Closes apache#1259
Closes apache#1268
Closes apache#1272
Closes apache#1277
Closes apache#1278
Closes apache#1288
Closes apache#1296
Closes apache#1328
Closes apache#1342
Closes apache#1353
Closes apache#1370
Closes apache#1376
Closes apache#1391
Closes apache#1395
Closes apache#1399
Closes apache#1406
Closes apache#1410
Closes apache#1422
Closes apache#1427
Closes apache#1443
Closes apache#1462
Closes apache#1468
Closes apache#1483
Closes apache#1506
Closes apache#1509
Closes apache#1515
Closes apache#1520
Closes apache#1521
Closes apache#1525
Closes apache#1527
Closes apache#1544
Closes apache#1550
Closes apache#1566
Closes apache#1569
Closes apache#1570
Closes apache#1575
Closes apache#1580
Closes apache#1584
Closes apache#1591
Closes apache#1600
Closes apache#1611
Closes apache#1613
Closes apache#1639
Closes apache#1703
Closes apache#1711
Closes apache#1719
Closes apache#1737
Closes apache#1760
Closes apache#1767
Closes apache#1768
Closes apache#1785
Closes apache#1799
Closes apache#1822
Closes apache#1824
Closes apache#1844
Closes apache#1874
Closes apache#1918
Closes apache#1928
Closes apache#1937
Closes apache#1942
Closes apache#1951
Closes apache#1957
Closes apache#1963
Closes apache#1964
Closes apache#1965
Closes apache#1967
Closes apache#1968
Closes apache#1971
Closes apache#1985
Closes apache#1986
Closes apache#1998
Closes apache#2031
Closes apache#2032
Closes apache#2071
Closes apache#2076
Closes apache#2108
Closes apache#2119
Closes apache#2128
Closes apache#2142
Closes apache#2174
Closes apache#2206
Closes apache#2297
Closes apache#2322
Closes apache#2332
Closes apache#2341
Closes apache#2377
Closes apache#2414
Closes apache#2469
@asfgit asfgit closed this in #2880 Oct 22, 2018
bipinprasad pushed a commit to bipinprasad/storm that referenced this pull request Oct 17, 2019
YSTORM-5688 update storm package documentation links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants