Towards Greener Applications: Enabling Sustainable-aware Cloud Native Applications Design

Status:: 🟩
Links:: Sustainability Aware Microservices

Metadata

Authors:: Franch, Xavier; Poels, Geert; Gailly, Frederik; Snoeck, Monique
Authors:: Vitali, Monica
Title:: Towards Greener Applications: Enabling Sustainable-aware Cloud Native Applications Design
Date:: 2022
Publisher:: Springer International Publishing
URL:: https://link.springer.com/10.1007/978-3-031-07472-1_6
DOI::

2generated by large cloud providers, too little has been done from the application perspective. We claim that application developers can impact the environmental footprint by enhancing the application design with additional features. Following the proposed Sustainable Application Design Process (SADP), the application design is enriched with information that can be leveraged by cloud providers to manage application execution in an energy-aware manner. This exploratory work aims to emphasize the awareness on the sustainability of applications by proposing a methodology for its evaluation. To this end, we first suggest possible actions to enrich the application design towards sustainability, and finally describe how this additional information can be leveraged in the application workflow. We discuss the feasibility of our methodology by referring to existing tools and technologies capable of supporting the design features proposed in a production environment.

Notes & Annotations

Color-coded highlighting system used for annotations

πŸ“‘ Annotations (imported on 2024-01-20#12:41:44)

vitali.2022.greenerapplicationsenabling (pg. 2)

Computationally demanding applications, including AI, machine learning, and Big Data analytics, consume a significant amount of energy, increased 300’000 times over the past 10 years [19,24].

  1. Knight, W.: AI can do great things - if it doesn’t burn the planet. https://www.wired.com/story/ai-great-things-burn-planet (2020)
  2. Lucivero, F.: Big data, big waste? A reflection on the environmental sustainability of big data initiatives. Sci. Eng. Ethics 26(2), 1009–1030 (2020)
vitali.2022.greenerapplicationsenabling (pg. 2)

This paper focus the attention on the active role of applications in the energy footprint of IT and aims at increasing the awareness of application providers on the environmental footprint of their applications.

vitali.2022.greenerapplicationsenabling (pg. 3)

Current research mainly focuses on dynamic resource allocation and scheduling according to energy efficiency optimization [2,37].

  1. Ajibola, O.O., El-Gorashi, T.E., Elmirghani, J.M.: Energy efficient placement of workloads in composable data center networks. J. Lightwave Technol. 39(10), 3037–3063 (2021)
  2. Valera, H., Dalmau, M., et al.: DRACeo: a smart simulator to deploy energy saving methods in microservices based networks. In: IEEE International Conference on Enabling Technologies: Infrastructure for Collaborative Enterprises, pp. 94–99 (2020)
vitali.2022.greenerapplicationsenabling (pg. 3)

The CodeCarbon initiative [23] provides a tool for estimating CO2 emissions the geographical location and the energy mix of the country in which the application is deployed. Power is also one of the metrics considered in [7], providing black-box monitoring for multi-component applications. This is a first step for enabling energy-awareness in microservice-oriented applications but the workflow enhancement perspective is still missing

  1. Lottick, K., Susai, S., Friedler, S.A., Wilson, J.P.: Energy usage reports: environmental awareness as part of algorithmic accountability. arXiv:1911.08354 (2019)
  2. Brondolin, R., Santambrogio, M.D.: A black-box monitoring approach to measure microservices runtime performance. ACM Trans. Arch. Code Optim. (TACO) 17(4), 1–26 (2020)
vitali.2022.greenerapplicationsenabling (pg. 4)

A typical application is composed of dozens to hundreds of independent microservices, all implicitly cooperating to reach the overall goal of the organization implementing the application. However, not all the components have the same relevance, being some of them necessary for reaching the goal, while other just enriching the application with additional accessory functionalities that might increase the overall Quality of Experience (QoE) of the customer or the income of the service provider. Moreover, each microservice has different requirements in terms of computational resources and different constraints in terms of Quality of Service (QoS). From this perspective, microservice based architectures are really effective since they allow the scale-out of the single components that are experiencing performance issues. Microservices can be sensitive to the context in which they are executed. Each microservice provides a specific functionality, however, the way in which this functionality is carried out might depend on the context of execution, and slightly different alternative implementations of the same functionality can be provided, i.e., with fail-over mechanisms.

vitali.2022.greenerapplicationsenabling (pg. 7)

Step 1 is a first step towards sustainable applications. It consists in adding basic sustainability-aware information to the application design. The goal is to enrich the application model with additional information that can drive the deployment decisions of the cloud provider when the single components are deployed. This information is not only related to the energy aspect, but also to functional and QoS requirements.

vitali.2022.greenerapplicationsenabling (pg. 7)

Step 2. The application designer provides information on which components of the application are mandatory and which are optional: MM βˆͺ MO βŠ† M where MM is the set of mandatory microservices and MO is the set of optional microservices.

vitali.2022.greenerapplicationsenabling (pg. 7)

This information is relevant not only for the sustainability of the application (e.g., skip an optional component when renewable power source is not available), but also for QoS (e.g., avoid optional components when the application is experiencing response time or latency issues).

vitali.2022.greenerapplicationsenabling (pg. 8)

Step 3. It consists in the enrichment of the microservices composing the application through the definition of different modalities of execution for each component. Alternative execution modalities can be defined for a single microservice and the one to enact might depend on the current context.

vitali.2022.greenerapplicationsenabling (comment) (pg. 8)

Proposal: Use three different execution modalities (versions):

  • Normal: basic execution modality
  • High-Performance: the service does more than needed, e.g. taking previous activities into account to provide better QoE
  • Low-Power: Simplified version aiming at reducing the amount of energy consumed, e.g. by skipping sub-activities

vitali.2022.greenerapplicationsenabling (pg. 9)

SADP provides a methodology for improving and evaluating the sustainability in the design of a cloud-native application, enriching each component with additional details and metadata.

vitali.2022.greenerapplicationsenabling (pg. 9)

Designing a sustainable workflow requires to select the best configuration for all the components of the application according to the context, aiming at improving energy efficiency, cost, and QoS. The composition of the application will dynamically change selecting a different pool of microservices according to the context of execution.

vitali.2022.greenerapplicationsenabling (pg. 9)

In order to enable the Low-power execution and the High-performance execution, all the microservices, or part of them, have to be designed according to the Step 3 of the SADP: different interfaces to execute the microservice are provided for each supported modality. These workflow execution modalities are not exclusive, in fact they can be combined together. As an example, if a Lowpower execution is activated together with a Basic execution, all the optional tasks are skipped, while regular tasks are executed using their low-power version if available.

vitali.2022.greenerapplicationsenabling (pg. 12)

Business rules enable to express conditions on the execution of an activity in a business process. They hide the complexity of the logic preventing the model to become too complex. In this case, business rules are included to define the execution modality of each task according to the values of a set of contextual variables collected by the monitoring system of the application and each of its microservices.

vitali.2022.greenerapplicationsenabling (pg. 13)

The outcome of the design step will be an annotated and enriched BPMN model containing all the relevant information for the management of sustainability-aware applications. BPMN models can be translated in machine-readable formats like XML or JSON, including annotations and task types that will enrich the description of each task. It is thus possible to translate the model into a set of features that can be exploited by an orchestrator. As an example, a BPMN-driven microservice coordination approach is provided by some existing tools in the state of the art. For instance, Camunda and Zeebee are workflow engines supporting BPMN and DMN for designing workflow orchestrations.

vitali.2022.greenerapplicationsenabling (pg. 13)

SADP is based on the assumption that monitoring the energy consumption (and even better the CO2 emissions) of each single component of an application is possible. At the moment this information is not provided by any cloud provider natively. However, several initiatives are proposing solutions for estimating both energy and emissions at the application level.

vitali.2022.greenerapplicationsenabling (pg. 13)

Another critical aspect is the increased complexity in the application design, requiring to define several versions for each microservice. From a design perspective, the proposed approach is incremental, leaving the application owner the right to decide to what extent to refine the existing application model.

vitali.2022.greenerapplicationsenabling (pg. 14)

From a management perspective, costs will probably increase. Thus, the problem is how to motivate application providers to invest in sustainable applications. Existing studies have demonstrated how sustainability can become a strategic value for both organizations and their customers thanks to a proper awareness of the impact on the environment [32].

  1. Schneider, J., Basalla, M., Seidel, S.: Principles of green data mining. In: Proceedings of the 52nd Hawaii International Conference on System Sciences (2019)