microservices a performance tester s dream or nightmare
play

Microservices: A Performance Testers Dream or Nightmare? Simon - PowerPoint PPT Presentation

Microservices: A Performance Testers Dream or Nightmare? Simon Eismann Cor-Paul Bezemer Weiyi Shang Duan Okanovi Andr van Hoorn University of Wrzburg University of Alberta Concordia University University of Stuttgart University


  1. Microservices: A Performance Tester’s Dream or Nightmare? Simon Eismann Cor-Paul Bezemer Weiyi Shang Dušan Okanović André van Hoorn University of Würzburg University of Alberta Concordia University University of Stuttgart University of Stuttgart @simon_eismann @corpaul @swy351 @okanovic_d @andrevanhoorn https://research.spec.org/ working-groups/rg-devops-performance.html

  2. What is Performance Regression Testing? Performance Regression testing Developer 1. Deploy 2. Perform 3. Compare to Application Load test previous commit commits changes DevOps Pipeline triggers Github Build Unit test Regression test Microservices: A Performance Tester’s Dream or Nightmare? 2 @simon_eismann

  3. Requirements for Performance Testing R1 A stable testing environment which is representative of the production environment R2 A representative operational profile (including workload characteristics and system state) for the performance test R3 Access to all components of the system R4 Easy access to stable performance metrics R5 Sufficient time Microservices: A Performance Tester’s Dream or Nightmare? 3 @simon_eismann

  4. Microservice traits T1 Self-containment T2 Loosely coupled, platform-independent interfaces T3 Independent development, build, and deployment. T4 Containers and Container Orchestration T5 Cloud-native Microservices: A Performance Tester’s Dream or Nightmare? 4 @simon_eismann

  5. Microservices - A Performance Testers Dream? Benefit 1: Containerization Benefit 2: Granularity • Individually testable services • Containers package environment • Dependencies via HTTP calls • Simplifies setup of test environment • Dependencies easily mocked Benefit 3: Easy access to metrics Benefit 4: Integration with DevOps • Orchestration frameworks simplify • Size reduces performance test duration metric collection • Application-level metrics common • Performance testing within pipeline Microservices: A Performance Tester’s Dream or Nightmare? 5 @simon_eismann

  6. Too good to be true? – Let’s test it! RQ1 How stable are the execution environments of microservices? RQ2 How stable are the performance testing results? RQ3 How well can performance regressions in microservices be detected? Microservices: A Performance Tester’s Dream or Nightmare? 6 @simon_eismann

  7. Case Study TeaStore Benchmarking Application Scenarios Deployment Platform Microservices: A Performance Tester’s Dream or Nightmare? 7 @simon_eismann

  8. Research Question 1 – Selected Findings How stable are the execution environments of microservices across repeated runs of the experiments? Finding 1: The non-deterministic behaviour of the autoscaler Finding 2: Even when fixing the number of provisioned results in different numbers of provisioned microservice instances of a microservices, their deployment across VMs instances when scaling the same load differs. Microservices: A Performance Tester’s Dream or Nightmare? 8 @simon_eismann

  9. Research Question 2 – Selected Findings How stable are the performance testing results across repeated runs of the experiments? Finding 1: There exist statistically significant differences Finding 2: The total CPU busy time may not be statistically between the performance testing results from different significantly different between scenarios scenarios Microservices: A Performance Tester’s Dream or Nightmare? 9 @simon_eismann

  10. Research Question 3 – Selected Findings How well can performance regressions in microservices be detected? Finding 1: Using only a single experiment run results in flaky Finding 2: Using ten experiment runs results in stable performance tests performance tests Microservices: A Performance Tester’s Dream or Nightmare? 10 @simon_eismann

  11. Microservices - A Performance Testers Nightmare? Stability of the environment Nightmare 1 • Autoscaling/container orchestration is not deterministic • Execution environment can not be expected to be stable Nightmare 2 Reproducibility of the experiments • The repeated experiments may not result in the same performance measurements • Multiple measurements required for regression testing Nightmare 3 Detecting small changes • Variation between measurements can be quite large • Detecting small changes is challenging Microservices: A Performance Tester’s Dream or Nightmare? 11 @simon_eismann

  12. Research Directions Research Direction 1 Variation reduction in executing performance tests Research Direction 2 Studying the stability of (new) performance metrics Research Direction 3 Creating a benchmark environment for microservice- oriented performance engineering research Microservices: A Performance Tester’s Dream or Nightmare? 12 @simon_eismann

  13. Replication Package Performance measurements Data set and analysis Wrapped in docker container for Measurement data of over 75 platform independent execution hours of experiments Requires only Google Cloud Scripts to reproduce any analysis, access keys as input table or figure from the manuscript 1-click reproduction of the results Fully automated performance as a CodeOcean Capsule measurements Available online at: Available online at: https://doi.org/10.24433/CO.4876239.v1 https://doi.org/10.5281/zenodo.3588515 Microservices: A Performance Tester’s Dream or Nightmare? 13 @simon_eismann

  14. Summary Microservices: A Performance Tester’s Dream or Nightmare? 14 @simon_eismann

  15. Microservices: A Performance Tester’s Dream or Nightmare? Simon Eismann Cor-Paul Bezemer Weiyi Shang Dušan Okanović André van Hoorn University of Würzburg University of Alberta Concordia University University of Stuttgart University of Stuttgart @simon_eismann @corpaul @swy351 @okanovic_d @andrevanhoorn https://research.spec.org/ working-groups/rg-devops-performance.html

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