Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • apa.csl
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Finding the Sweet Spot: Optimizing Kubernetes for Scalability and Resilience: A Comprehensive Study on Improving Resource Utilization and Performance in Containerized Environments.
Karlstad University, Faculty of Health, Science and Technology (starting 2013). Karlstad University, Faculty of Economic Sciences, Communication and IT (discontinued), Department of Computer Science.
2023 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Modern technology is rapidly and efficiently expanding, and by looking at the largest companies by market cap, one will find enterprises like Apple, Microsoft, Alphabet, and Meta. Given the complexity of modern software architecture, there arises a necessity for a software architecture that is both scalable and adaptable. This demand has given rise to the adoption of microservices as a preferred approach for building complex and distributed applications. However, managing microservices effectively is a difficult task. Therefore, Google created an orchestration tool called Kubernetes (K8).

The primary purpose of this thesis is to extend the information about the characteristics of a K8 cluster by monitoring its performance in various scenarios. There is substantial documentation about how K8 works and why it is used. However, insufficient information exists regarding the performance of K8 in different scenarios. 

Extensive testing has transpired to extend the information about the characteristics of K8. Parameters such as the number of Pods, containers, mounts, and CPU cores have been thoroughly tested. Additionally, parameters such as container load, CPU limitation, container distribution, and memory allocation have been examined. The core result will include startup time and CPU utilization. The startup time is essential in a K8 cluster because of its ephemeral characteristics, meaning each Pod is short-lived and will restart frequently. CPU utilization testing is essential to analyze how K8 allocate resources and perform with different amounts of resources. 

The results show that the most significant parameters regarding startup time are, as one might expect, the number of containers, CPUs, Pods, and the load in each Pod. However, the complexity of the Pod, for instance, the number of mount points, has significantly less effect on the cluster than expected. Regarding CPU utilization, the results show that K8 does lower CPU usage if possible, resulting in equal CPU usage even with different numbers of CPUs. The most significant CPU usage parameter is the load of the application.

Finally, this thesis work has filled some gaps in how a K8 cluster behaves during various circumstances, for instance, varying numbers of Pods, containers, or CPUs. One must consider several aspects while designing a K8 cluster. However, all aspects have not been considered, and the usage of K8 increases daily. Therefore, this thesis will hopefully be one of many reports investigating how a K8 cluster behaves and what to consider when building a cluster.

Place, publisher, year, edition, pages
2023.
Keywords [en]
Kubernetes, Microservices, Containerization Technology, Virtualization, Minikube
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:kau:diva-95491OAI: oai:DiVA.org:kau-95491DiVA, id: diva2:1770858
External cooperation
TietoEvry
Subject / course
Computer Science
Educational program
Engineering: Computer Engineering (300 ECTS credits)
Presentation
, Karlstad (English)
Supervisors
Examiners
Available from: 2023-06-20 Created: 2023-06-19 Last updated: 2023-06-20Bibliographically approved

Open Access in DiVA

fulltext(1909 kB)50 downloads
File information
File name FULLTEXT01.pdfFile size 1909 kBChecksum SHA-512
c3dc5d11ce792d5556a1c49c0098a8d846c5142df398eab3feb60aa947c72146289edaa16e8fbf2fd5ceecfeabb05641b8c7f6be08448ca2c1c2956bf6f817ea
Type fulltextMimetype application/pdf
Arkivfil(1909 kB)1 downloads
File information
File name FULLTEXT02.pdfFile size 1909 kBChecksum SHA-512
c3dc5d11ce792d5556a1c49c0098a8d846c5142df398eab3feb60aa947c72146289edaa16e8fbf2fd5ceecfeabb05641b8c7f6be08448ca2c1c2956bf6f817ea
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Rör, Adam
By organisation
Faculty of Health, Science and Technology (starting 2013)Department of Computer Science
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 51 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 146 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • apa.csl
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf