Evaluating OpenTelemetry’s Impact on Performance in Microservice Architectures
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesis
Abstract [en]
Observability grants engineers the ability to comprehensively understand their systems by generating, exporting, and analyzing telemetry; logs, metrics, and traces. This is especially important for microservice-based systems as their distributed nature makes them notoriously difficult to debug. OpenTelemetry is an observability tool which has steadily risen in popularity since its inception in 2019, its purpose is to generate and export telemetry. This thesis investigates the performance impact of implementing OpenTelemetry in a microservice-based system as performance overhead can be a key concern for organizations.
The experiments conducted in this thesis demonstrate that OpenTelemetry impacts performance, for instance, in terms of CPU overhead, which reached 42% under certain conditions. Compared to equivalent tools, OpenTelemetry performed better for tracing but slightly worse for metrics. The latter result might stem from the OpenTelemetry agent not being designed to be used solely for metric instrumentation. Furthermore, the results indicate that manually generating traces with OpenTelemetry incurs less overhead compared to using the agent for automatic trace instrumentation. This difference is most notable in terms of CPU overhead, where automatic instrumentation incurred roughly twice as much overhead. Finally, the experiments demonstrated that batching and head-based sampling can significantly reduce OpenTelemetry's performance impact. This reduction is most notable in terms of CPU and latency overhead, which decreased to 3.6% and 3.4% respectively.
Place, publisher, year, edition, pages
2024. , p. 45
Series
UMNAD ; 1486
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:umu:diva-227112OAI: oai:DiVA.org:umu-227112DiVA, id: diva2:1877027
External cooperation
Nasdaq Technology AB
Educational program
Master of Science Programme in Computing Science and Engineering
Presentation
2024-05-29, MIT.A.121, MIT-huset, Campustorget 5, 901 87 Umeå, Umeå, 12:30 (English)
Supervisors
Examiners
2024-06-262024-06-252024-06-26Bibliographically approved