A Formal Model of the Kubernetes Scheduler Filtering Phase for Dependability Analysis of Pod Placement
DOI:
https://doi.org/10.47839/ijc.25.3.4858Keywords:
kubernetes, resources optimization, containerization, analysis of resources usage, clustering, distributed systems, cloud computing, modeling, filtering, queuing systemsAbstract
This paper studies the filtering phase of the Kubernetes scheduler (kube-scheduler) and how this phase affects the dependability of pod placement in a cluster. The goal is to build a formal mathematical model of the filtering phase that makes it possible to analyze the risks to availability and fault tolerance of pod placement in advance, before deployment. The tasks are: to formalize the five main filtering predicates (node affinity, taints and tolerations, pod affinity, pod anti-affinity, and resource sufficiency) within a single formal framework; to combine them into a complex feasibility predicate; and, on this basis, to derive conditions for detecting unschedulable configurations and for verifying the correctness of replica spreading. The work uses mathematical logic (predicates, indicator functions, quantifiers) and set theory. The results. It is shown that the proposed model makes it possible to formally detect configurations in which a pod cannot be placed on any node (the risk of a Pending state), and to check whether the anti-affinity mechanism will indeed spread replicas across different failure domains. The use of the model is illustrated by a worked example of a small cluster. Conclusions. The model provides simple conditions, computable directly from the configuration and state of the cluster, that reveal dependability defects which the standard Kubernetes scheduler detects only at runtime. The scientific novelty lies in the application of a formal abstraction of selected filtering predicates to the analysis of availability and fault tolerance of pod placement before deployment.
References
B. Burns, B. Grant, D. Oppenheimer, E. Brewer, and J. Wilkes, “Borg, Omega, and Kubernetes,” Queue, vol. 14, no. 1, pp. 70–93, 2016. https://doi.org/10.1145/2898442.2898444
“Kubernetes Scheduler.” Kubernetes. [Online]. Available at: https://kubernetes.io/docs/concepts/scheduling-eviction/kube-scheduler/
“Assigning Pods to Nodes.” Kubernetes. [Online]. Available at: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/.
“Pod Topology Spread Constraints.” Kubernetes. [Online]. Available at: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/.
“Resource Management for Pods and Containers.” Kubernetes. [Online]. Available at: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
C. Pahl, A. Brogi, J. Soldani, and P. Jamshidi, “Cloud Container Technologies: A State-of-the-Art Review,” IEEE Trans. Cloud Comput., vol. 7, no. 3, pp. 677–692, Jul. 2019. https://doi.org/10.1109/tcc.2017.2702586
C. Carrión, “Kubernetes Scheduling: Taxonomy, ongoing issues and challenges,” ACM Comput. Surv., Jun. 2022. https://doi.org/10.1145/3539606
R. Buyya et al., “A Manifesto for Future Generation Cloud Computing,” ACM Comput. Surv., vol. 51, no. 5, pp. 1–38, Jan. 2019. https://doi.org/10.1145/3241737
R. Regaieg, M. Koubàa, Z. Ales, and T. Aguili, “Multi-objective optimization for VM placement in homogeneous and heterogeneous cloud service provider data centers,” Computing, vol. 103, no. 6, pp. 1255–1279, Feb. 2021. https://doi.org/10.1007/s00607-021-00915-z
A. Katal, T. Choudhury, and S. Dahiya, “Comparison and Analysis of Container Placement Algorithms in Cloud Data Center,” in Emerging Trends in Expert Applications and Security, vol. 682, V. Rathore, V. Piuri, R. Babo, and M. Ferreira, Eds. Singapore: Springer, 2023. https://doi.org/10.1007/978-981-99-1946-8_22.
J. Zhang, H. Huang, and X. Wang, “Resource provision algorithms in cloud computing: A survey,” J. Netw. Comput. Appl., vol. 64, pp. 23–42, Apr. 2016. https://doi.org/10.1016/j.jnca.2015.12.018.
Z. Jian et al., “DRS: A deep reinforcement learning enhanced Kubernetes scheduler for microservice‐based system,” Softw.: Pract. Experience, Oct. 2023. https://doi.org/10.1002/spe.3284
H. Zhou, H. Y. Chan, S. Y. Zhang, M. E. Lin, and J. Ni, “A Kubernetes custom scheduler based on reinforcement learning for compute intensive pods,” in CCIOT 2025: 2025 10th Int. Conf. Cloud Comput. Internet Things, Ho Chi Minh , Vietnam. New York, NY, USA: ACM, 2025, pp. 82–91. https://doi.org/10.1145/3785520.3785532.
V. Sutaria and D. Bhatti, “An Optimized Container Scheduling Algorithm for Kubernetes using Maximization of Resource Utilization,” Int. J. Eng. Trends Technol., vol. 74, no. 3, pp. 129–140, Mar. 2026. https://doi.org/10.14445/22315381/ijett-v74i3p110.
J.-Y. Roh, S.-H. Choi, and K.-W. Park, “OOSP: Opportunistic Optimization Scheme for Pod Deployment Enhanced with Multilayered Sensing,” Sensors, vol. 24, no. 19, p. 6244, Sep. 2024. https://doi.org/10.3390/s24196244.
B. Zhou, S. K. Mondal, Y. Cheng, and H. M. D. Kabir, “On Optimized Scheduling Scheme for Rapid Pod Autoscaling in Kubernetes,” Appl. Sci., vol. 16, no. 5, p. 2481, Mar. 2026.: https://doi.org/10.3390/app16052481.
G. Turin, A. Borgarelli, S. Donetti, E. Johnsen, S. Tapia Tarifa, and F. Damiani, “A Formal Model of the Kubernetes Container Framework,” in Leveraging Applications of Formal Methods, Verification and Validation: Verification Principles, vol. 12476, T. Margaria and B. Steffen, Eds. Cham: Springer, 2020. Available: https://doi.org/10.1007/978-3-030-61362-4_32.
G. Turin, A. Borgarelli, S. Donetti, F. Damiani, E. B. Johnsen, and S. L. T. Tarifa, “Predicting resource consumption of Kubernetes container systems using resource models,” J. Syst. Softw., p. 111750, May 2023. https://doi.org/10.1016/j.jss.2023.111750.
V. Medel, O. Rana, J. á. Bañares, and U. Arronategui, “Modelling performance & resource management in kubernetes,” in UCC '16: 9th Int. Conf. Utility Cloud Comput., Shanghai China. New York, NY, USA: ACM, 2016. https://doi.org/10.1145/2996890.3007869.
V. Medel, R. Tolosana-Calasanz, J. Á. Bañares, U. Arronategui, and O. F. Rana, “Characterising resource management performance in Kubernetes,” Comput. & Elect. Eng., vol. 68, pp. 286–297, May 2018. https://doi.org/10.1016/j.compeleceng.2018.03.041.
V. Medel, U. Arronategui, J. Bañares, R. Tolosana, and O. Rana, “Modeling, Characterising and Scheduling Applications in Kubernetes,” in Economics of Grids, Clouds, Systems, and Services, vol. 11819, K. Djemame, J. Altmann, J. Bañares, O. Agmon Ben-Yehuda, and M. Naldi, Eds. Springer, Cham, 2019. https://doi.org/10.1007/978-3-030-36027-6_26.
V. Medel, C. Tolón, U. Arronategui, R. Tolosana-Calasanz, J. Bañares, and O. Rana, “Client-Side Scheduling Based on Application Characterization on Kubernetes,” in Economics of Grids, Clouds, Systems, and Services, vol. 10537, C. Pham, J. Altmann, and J. Bañares, Eds. Cham: Springer, 2017. https://doi.org/10.1007/978-3-319-68066-8_13.
M.-N. Tran and Y. Kim, “Optimized resource usage with hybrid auto-scaling system for knative serverless edge computing,” Future Gener. Comput. Syst., 2023. https://doi.org/10.1016/j.future.2023.11.010.
R. Ghosh, F. Longo, V. K. Naik, and K. S. Trivedi, “Modeling and performance analysis of large scale IaaS Clouds,” Future Gener. Comput. Syst., vol. 29, no. 5, pp. 1216–1234, 2013. https://doi.org/10.1016/j.future.2012.06.005.
R. Ghosh, F. Longo, F. Frattini, S. Russo, and K. S. Trivedi, “Scalable Analytics for IaaS Cloud Availability,” IEEE Trans. Cloud Comput., vol. 2, no. 1, pp. 57–70, 2014. https://doi.org/10.1109/tcc.2014.2310737.
K. S. Trivedi, D.-S. Kim, and R. Ghosh, “System availability assessment using stochastic models,” Appl. Stochastic Models Bus. Industry, vol. 29, no. 2, pp. 94–109, 2012. https://doi.org/10.1002/asmb.951.
B. Liu, X. Chang, Z. Han, K. Trivedi, and R. J. Rodríguez, “Model-based sensitivity analysis of IaaS cloud availability,” Future Gener. Comput. Syst., vol. 83, pp. 1–13, 2018. https://doi.org/10.1016/j.future.2017.12.062.
G. Marques, C. Senna, S. Sargento, L. Carvalho, L. Pereira, and R. Matos, “Proactive resource management for cloud of services environments,” Future Gener. Comput. Syst., 2023. https://doi.org/10.1016/j.future.2023.08.005.
H. Guo, H. Cao, J. He, X. Liu, and Y. Shi, “POBO: Safe and optimal resource management for cloud microservices,” Perform. Eval., vol. 162, p. 102376, 2023. https://doi.org/10.1016/j.peva.2023.102376.
B. Jeong, S. Baek, S. Park, J. Jeon, and Y.-S. Jeong, “Stable and efficient resource management using deep neural network on cloud computing,” Neurocomputing, vol. 521, pp. 99–112, 2023. https://doi.org/10.1016/j.neucom.2022.11.089.
M. Buriak, “Method of Granular Analysis of Shared Resource Utilization in a Kubernetes Cluster,” Secur. Infocommunication Syst. Internet Things, vol. 3, no. 2, p. 02001, 2025. https://doi.org/10.31861/sisiot2025.2.02001.
“cluster-capacity.” Kubernetes SIGs, GitHub. [Online]. Available at: https://github.com/kubernetes-sigs/cluster-capacity.
“kube-scheduler-simulator.” Kubernetes SIGs, GitHub. [Online]. Available at: https://github.com/kubernetes-sigs/kube-scheduler-simulator.
Downloads
Published
How to Cite
Issue
Section
License
International Journal of Computing is an open access journal. Authors who publish with this journal agree to the following terms:• Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
• Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
• Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.