Dependency-Based Orchestration of a Multi-Version Microservice RAN Application: Beroendebaserad orkestrering av en RAN-applikation med fleraversioner av mikrotjänster
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesis
Abstract [en]
This thesis is carried out in collaboration with Ericsson AB and proceeds from a conceptual architecture of a multi-version microservices RAN application developed by Ericsson. The main focus lies in finding an automated strategy for deploying and maintaining multiple versions of microservices without causing interruptions or failures. A vital part consists of implementing and evaluating different algorithms for dependency-based orchestration. More specifically, given the currently deployed microservices, the presently available microservices and their dependencies, and a set of external communication requirements, this algorithm should find an evolution plan consisting of deployment steps to perform such that all constraints are satisfied while staying below a resource quota. Each deployment step in turn consists of deployment operations (deploy and delete) of microservices. Furthermore, the thesis investigates the possibility of using the Kubernetes operator pattern to automatically execute the deployment operations found by the dependency-based orchestration algorithm.
Four algorithms for dependency-based orchestration are developed: two Dependency Resolver and Scheduler (DRS) algorithms and two Binate Covering Problem (BCP) solvers combined with a scheduling algorithm. Initially, two DRS algorithms are presented to explore the search space while systematically constructing a search tree. The first one, the Ideal DRS (IDRS), is a baseline that explores all possible evolution plans emanating from the current deployment. The second one, DRS with Stratified Pruning (DRS-SP), utilizes Stratified Sampling with Pruning to reduce the complexity of the search space. Secondarily, the microservice dependency resolution problem is modeled as a Binate Covering Problem (BCP) using propositional logic. Two BCP solvers are implemented to solve the dependency resolution problem: one that utilizes Branch and Bound (BnB) resolution and one greedy-based approach. The output of the BCP solvers is used as input to a scheduling algorithm presented in this thesis that finds the evolution plan to ensure the in-service upgrade, yielding two algorithms to solve the dependency and scheduling problem: BCP BnB and BCP Greedy.
201 problem instances are generated from actual data on how the interfaces have been updated historically for testing purposes. The Kubernetes operator pattern is implemented using custom resources to manage the application and its components. The Kopf framework is used to create event listeners who can listen and react to the creation of custom resources. The operator uses the specification as input to one of the dependency-based orchestration algorithms and the output as instructions to execute the proposed evolution plan. The algorithms are evaluated in terms of the following: Response time, i.e., how fast an evolution plan is found; success rate, i.e., whether or not a valid solution is found; Resource efficiency, i.e., the total CPU usage of the final deployment once all deployment steps have been executed; Update efficiency, i.e., the number of deployment steps in the evolution plan. Ultimately, BCP BnB is proposed to solve the stated dependency and scheduling problem as it shows the most promising results when considering response time, success rate, and resulting CPU usage. The scheduling component of the algorithm used in this thesis is developed as part of the research work. Combined with established methods for solving BCP (branch and bound), this creates a solution tailored to the specific problem outlined in the thesis. However, further research should be applied to improve the BnB resolution further.
Place, publisher, year, edition, pages
2024. , p. 72
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-208412ISRN: LIU-IDA/LITH-EX-A--24/085--SEOAI: oai:DiVA.org:liu-208412DiVA, id: diva2:1906848
External cooperation
Telefonaktiebolaget LM Ericsson
Subject / course
Computer Engineering
Presentation
2024-09-04, Donald Knuth, B entry 29, upper floor, Linköping University, Linköping, 16:58 (English)
Supervisors
Examiners
2024-12-122024-10-192024-12-12Bibliographically approved