BOOK-CHAPTER

Min-Leader Optimal Scheduling Algorithm in Kubernetes Clusters

Abstract

The development of containerization and virtualization technologies has made Kubernetes a popular container orchestration platform that allows multiple replicas for scalability and availability. For stateful applications, each replica requires persistent storage, and a leader must be elected among the replicas to handle client requests and ensure data consistency. However, leaders for multiple stateful applications can become unbalanced across nodes, leading to inefficient resource utilization and load imbalance. This paper proposes the Min-Leader optimal scheduling algorithm that balances leader distribution across nodes during the scheduling phase of Pods. The algorithm considers the number of leaders on each node and prioritizes nodes with the least number of leaders with the goal of improving cluster availability and stability. The algorithm is integrated into the default Kubernetes scheduler as a plugin and validated using experiments. The algorithm effectively balances workload between nodes, improving cluster availability and stability.

Keywords:
Stateful firewall Computer science Distributed computing Scalability Scheduling (production processes) Replica Computer network Stateless protocol Slicing Operating system Mathematical optimization

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
2
Refs
0.49
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Cloud Computing and Resource Management
Physical Sciences →  Computer Science →  Information Systems
Distributed and Parallel Computing Systems
Physical Sciences →  Computer Science →  Computer Networks and Communications
IoT and Edge/Fog Computing
Physical Sciences →  Computer Science →  Computer Networks and Communications
© 2026 ScienceGate Book Chapters — All rights reserved.