an experiment driven performance model of stream
play

An Experiment-Driven Performance Model of Stream Processing - PowerPoint PPT Presentation

An Experiment-Driven Performance Model of Stream Processing Operators in Fog Computing Environments Hamidreza Arkian 1 , Guillaume Pierre 1 , Johan Tordsson 2 , Erik Elmroth 2 1 University of Rennes1/IRISA, France 2 Elastisys AB, Sweden SAC20 -


  1. An Experiment-Driven Performance Model of Stream Processing Operators in Fog Computing Environments Hamidreza Arkian 1 , Guillaume Pierre 1 , Johan Tordsson 2 , Erik Elmroth 2 1 University of Rennes1/IRISA, France 2 Elastisys AB, Sweden SAC’20 - March 30-April 3, 2020 - Brno, Czech Republic

  2. IoT-to-Cloud basic architecture 2/16

  3. Cloud-based stream processing Apache Flink 3/16

  4. Challenges Low Throughput!! Low Bandwidth!! Cost!! Apache Flink Latency-sensitive applications Continuously generating stream of data with high rate 4/16

  5. Fog-based stream processing 5/16

  6. Stream processing in Fog environment Operator 2 Operator Source Operator Sink 1 4 Operator 3 Logical graph of DSP Operator 2 Operator Source 2 Operator 2 Operator Operator Sink 4 1 Source Operator 3 Workflow execution model 6/16

  7. Stream processing in geo-distributed environments Operator 2 Operator Source Operator Sink 1 4 Operator 3 Op2 Replica1 Logical graph of DSP Op2 Sink Replica2 Operator 2 Operator 1 Op2 Operator Replica3 Source 2 Source Operator 4 Operator 2 Operator Operator Sink 4 1 Source Source Operator 3 Operator 3 Workflow execution model Deployment in Fog geo-distributed environment 7/16

  8. Challenges ➢ Understanding the performance of a geo-distributed stream processing application is difficult. ➢ Any configuration decision can have a significant impact on performance. 8/16

  9. Experimental setup ➢ Emulation of a real fog platform 32-core server ≈ 16 fog nodes (2 cores/node) o Emulated network latencies o Apache Flink o ➢ Test Application Input stream of 100,000 Tuple2 records o The operator calls the Fibonacci function o Fib(24) upon every processed record ➢ Performance metric: Processing Time (PT) o 9/16

  10. Modeling operator replication ➢ n operator replicas should in principle process data n times faster than a single replica Experiment Model ➢ α represents the computation capacity of a single node. ➢ We can determine the value of α based on one measurement 10/16

  11. Considering heterogeneous network delays ➢ Network delays between data sources and operator replicas slow down the whole system. ➢ When the network delays are heterogeneous, the dominating one is the greatest one ( ND max ). Experiment Model ➢ γ represents the impact of network delays on overall performance. We can determine both α and γ based on two measurements ➢ 11/16

  12. Improving the model’s accuracy ➢ Operator replication incurs some amount of parallelization inefficiency ➢ The speedup with n nodes is usually a little less than n Experiment Model ➢ 𝛾 represents Flink’s parallelization inefficiency ➢ We can determine α , 𝛾 and γ based on three or more measurements 12/16

  13. Prediction accuracy Accuracy metric: 𝑁𝐵𝑄𝐹 4 measurements, 2.0% accuracy 13/16

  14. What about modeling an entire (simple) workflow? ➢ The throughput of an entire workflow is determined by the slowest operator Workflow Experiment Model 𝛲 Workflow = max ( 𝛲 Map+KeyBy , 𝛲 Reduce ) 14/16

  15. Can we reuse the parameters instead of multiple measurements? Calibrated model for Operator 1 Uncalibrated model for Operator 2 𝛽 1 𝛽 2 β 1 β 1 γ 1 γ 1 ➢ 𝛽 cannot be reused because it is specific to the computation complexity of one operator. ➢ β and γ capture properties that are independent from the nature of the computation carried out by the operator. ➢ β and γ values of one operator’s model might be reused for other operators’ models. 15/16

  16. Conclusions ➢ Heterogeneous network characteristics make it difficult to understand the performance of stream processing engines in geo-distributed environments. ➢ A predictive performance model for Apache Flink operators that is backed by experimental measurements and evaluations was proposed. ➢ The model predictions are accurate within ±2% of the actual values. Hamidreza Arkian hamidreza.arkian@irisa.fr Acknowledgment This work is part of a project that has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No 765452. The information and views set out in this publication are those of the author(s) and do not necessarily reflect the Training the next generation of European official opinion of the European Union. Neither the European Union institutions Fog computing experts and bodies nor any person acting on their behalf may be held responsible for the http://www.fogguru.eu/ use which may be made of the information contained therein. 16/16

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend