Journal of Internet Services and Applications (Feb 2019)

Improving microservice-based applications with runtime placement adaptation

  • Adalberto R. Sampaio,
  • Julia Rubin,
  • Ivan Beschastnikh,
  • Nelson S. Rosa

DOI
https://doi.org/10.1186/s13174-019-0104-0
Journal volume & issue
Vol. 10, no. 1
pp. 1 – 30

Abstract

Read online

Abstract Microservices are a popular method to design scalable cloud-based applications. Microservice-based applications (μApps) rely on message passing for communication and to decouple each microservice, allowing the logic in each service to scale independently. Complex μApps can contain hundreds of microservices, complicating the ability of DevOps engineers to reason about and automatically optimize the deployment. In particular, the performance and resource utilization of a μApp depends on the placement of the microservices that compose it. However, existing tools for μApps, like Kubernetes, provide minimal ability to influence the placement and utilization of a μApp deployment. In this paper, we first identify the runtime aspects of microservice execution that impact the placement of microservices in a μApp. We then review the challenges of reconfiguring a μApp based on these aspects. Our main contribution is an adaptation mechanism, named REMaP, to manage the placement of microservices in an μApp automatically. To achieve this, REMaP uses microservice affinities and resource usage history. We evaluate our REMaP prototype and demonstrate that our solution is autonomic, lowers resource utilization, and can substantially improve μApp performance.

Keywords