Abstract
Many scientific computing applications generate streams where message sizes exceed one megabyte, in contrast with smaller message sizes in enterprise contexts (order kilobytes, often XML or JSON). Furthermore, the processing cost of messages in scientific computing applications are usually an order of magnitude higher than in typical enterprise applications. Frameworks such as Apache Spark offer high throughput processing of streams with such ‘enterprise’ characteristics, as well as scalability, with high resilience and many other desirable features. Motivated by the development of near real-time image processing pipelines for roboticized microscopy, we evaluate the suitability of Apache Spark for streams more typical of scientific computing applications, those with large message sizes (up to 10 MB), and heavy per-message CPU load, under typical stream integrations. For comparison, we benchmark a P2P stream processing framework, HarmonicIO, developed in-house. Our study reveals a complex interplay of performance trade-offs, revealing the boundaries of good performance for each framework and integration over a wide domain of application loads. Based on these results, we suggest which are likely to offer good performance for a given load. Broadly, the advantages of Spark’s rich features makes its performance sensitive to message size in particular, whereas the simplicity of HarmonicIO offers more robust performance, and better CPU utilization.
The HASTE Project (http://haste.research.it.uu.se/) is funded by the Swedish Foundation for Strategic Research (SSF) under award no. BD15-0008, and the eSSENCE strategic collaboration for eScience. Computational resources were provided by the Swedish National Infrastructure for Computing via the SNIC Science Cloud (SSC) [13], an OpenStack-based community cloud for Swedish academia.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
References
Apache Software Foundation: Apache Hadoop. http://hadoop.apache.org/ (2011)
Apache Software Foundation: Cassandra Limitations. https://cwiki.apache.org/confluence/display/CASSANDRA2/CassandraLimitations (2019)
Ausmees, K., John, A., Toor, S.Z., Hellander, A., Nettelblad, C.: BAMSI: a multi-cloud service for scalable distributed filtering of massive genome data. BMC Bioinform. 19(1), 240 (2018). https://doi.org/10.1186/s12859-018-2241-z
Blamey, B., Wrede, F., Karlsson, J., Hellander, A., Toor, S.: Adapting the secretary hiring problem for optimal hot-cold tier placement under Top-K workloads. In: 2019 19th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGRID). pp. 576–583, May 2019. https://doi.org/10.1109/CCGRID.2019.00074
Carbone, P., Katsifodimos, A., Ewen, S., Markl, V., Haridi, S., Tzoumas, K.: Apache Flink™: stream and batch processing in a single engine. Bull. IEEE Comput. Soc. Techn. Committee Data Eng. 36(4), 28–38 (2015)
Chintapalli, S., et al.: Benchmarking streaming computation engines: storm, flink and spark streaming. In: 2016 IEEE International Parallel and Distributed Processing Symposium Workshops, pp. 1789–1792. IEEE (2016)
Kreps, J., Narkhede, N., Rao, J., et al.: Kafka: a distributed messaging system for log processing. In: Proceedings of the NetDB, pp. 1–7 (2011)
Lugnegård, L.: Building a high throughput microscope simulator using the Apache Kafka streaming framework (M.sc. Thesis) (2018)
Marcu, O.C., Costan, A., Antoniu, G., Pérez-Hernández, M.S.: Spark versus flink: understanding performance in big data analytics frameworks. In: 2016 IEEE International Conference on Cluster Computing (CLUSTER), pp. 433–442, September 2016. https://doi.org/10.1109/CLUSTER.2016.22
National Energy Research Scientific Computing Center: Characterization of the DOE Mini-apps. https://portal.nersc.gov/project/CAL/designforward.htm, June 2014
Qian, S., Wu, G., Huang, J., Das, T.: Benchmarking modern distributed streaming platforms. In: 2016 IEEE International Conference on Industrial Technology (ICIT), pp. 592–598, March 2016. https://doi.org/10.1109/ICIT.2016.7474816
Salvatore Sanfilippo: Redis (2009). https://redis.io/
Toor, S., et al.: SNIC Science Cloud (SSC): a national-scale cloud infrastructure for Swedish academia. In: 2017 IEEE 13th International Conference On E-Science (e-Science), pp. 219–227. IEEE (2017)
Torruangwatthana, P., Wieslander, H., Blamey, B., Hellander, A., Toor, S.: HarmonicIO: scalable data stream processing for scientific datasets. In: 2018 IEEE 11th International Conference on Cloud Computing (CLOUD), pp. 879–882, July 2018. https://doi.org/10.1109/CLOUD.2018.00126
Wollman, R., Stuurman, N.: High throughput microscopy: from raw images to discoveries. J. Cell Sci. 120(21), 3715–3722 (2007). https://doi.org/10.1242/jcs.013623
Xin, R.: Apache Spark the fastest open source engine for sorting a petabyte, October 2014. https://databricks.com/blog/2014/10/10/spark-petabyte-sort.html
Zaharia, M., et al.: Resilient distributed datasets: a fault-tolerant abstraction for in-memory cluster computing. In: Proceedings of the 9th USENIX Conference on Networked Systems Design and Implementation, pp. 2–2. NSDI 2012, USENIX Association, San Jose (2012)
Zaharia, M., et al.: Apache spark: a unified engine for big data processing. Commun. ACM 59(11), 56–65 (2016). https://doi.org/10.1145/2934664
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Blamey, B., Hellander, A., Toor, S. (2020). Apache Spark Streaming, Kafka and HarmonicIO: A Performance Benchmark and Architecture Comparison for Enterprise and Scientific Computing. In: Gao, W., Zhan, J., Fox, G., Lu, X., Stanzione, D. (eds) Benchmarking, Measuring, and Optimizing. Bench 2019. Lecture Notes in Computer Science(), vol 12093. Springer, Cham. https://doi.org/10.1007/978-3-030-49556-5_30
Download citation
DOI: https://doi.org/10.1007/978-3-030-49556-5_30
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-49555-8
Online ISBN: 978-3-030-49556-5
eBook Packages: Computer ScienceComputer Science (R0)