Search papers, labs, and topics across Lattice.
This paper introduces Spanergy, an energy-aware distributed tracing system that correlates power measurements with microservice traces to attribute energy consumption to specific request segments. By implementing Spanergy, the authors demonstrate that enabling tracing incurs a 59.1% energy increase, while Spanergy's own overhead is only 15.2% of the baseline, making it a lightweight solution for energy monitoring. The findings reveal that significant energy consumption occurs outside of latency-critical paths, highlighting the potential for optimizing energy efficiency in microservice architectures.
Spanergy reveals that a surprising amount of energy consumption in microservices occurs outside the latency-critical path, challenging traditional assumptions about where to focus optimization efforts.
Cloud computing is gaining popularity by giving access to seemingly unlimited virtual resources. However, Cloud data centres are built with physical resources and their electricity consumption has been continuously growing over the past decades. Microservices are an important building block of Cloud applications, calling for new solutions to observe their energy consumption. Distributed tracing is widely deployed to diagnose latency and failures in microservice-based applications, yet it does not expose the energy cost of individual end-user requests. Such a gap limits energy-aware debugging, accountability, and control. This paper presents Spanergy, an energy-aware distributed tracing approach that correlates per-microservice power measurements with traces and that attributes measured energy consumption to request segments, i.e. trace spans. We showcase Spanergy with synchronous request chains and asynchronous interactions across microservices. We present a rigorous experimental protocol and statistical analysis plan to quantify overhead and to validate conservation and coverage properties on realistic configurations. Enabling OpenTelemetry tracing increased total experiment energy by 59.1% relative to the uninstrumented baseline, and Spanergy post-processing added 15.2% of the baseline energy. Hence, Spanergy's incremental energy cost is smaller than the energy overhead of enabling tracing itself, making the approach lightweight in practice. Spanergy also reveals that a non-negligible fraction of request energy comes from spans outside the latency-critical path. These results show that energy-aware tracing is feasible at modest overhead and provides actionable insights for energy-efficient microservices.