Task Containerization and Container Placement Optimization for MEC: A Joint Communication and Computing Perspective
<p>A system model for user terminals to access an MEC-based computing network.</p> "> Figure 2
<p>An example of DAG workflow with ten tasks.</p> "> Figure 3
<p>Comparison of the normalized maximum load performance (defined by Equation (<a href="#FD22-processes-11-01560" class="html-disp-formula">22</a>)) of various task partitioning algorithms, including the proposed P-NCPI and P-RI algorithms, and the classic <span class="html-italic">K</span>-means algorithm.</p> "> Figure 4
<p>Comparison of the average CPU utilization efficiency of the MEC-based computing network (defined by Equation (<a href="#FD24-processes-11-01560" class="html-disp-formula">24</a>)), when using the proposed four task-containerization-and-container-placement algorithms and the Spread algorithm.</p> "> Figure 5
<p>Comparison of the average MEM utilization efficiency of the MEC-based computing network (defined by Equation (<a href="#FD25-processes-11-01560" class="html-disp-formula">25</a>)), when using the proposed four task-containerization-and-container-placement algorithms and the Spread algorithm.</p> "> Figure 6
<p>Comparison of the balance degree of multi-type computing resource utilization (defined by Equation (<a href="#FD10-processes-11-01560" class="html-disp-formula">10</a>)), when using the proposed four task-containerization-and-container-placement algorithms and the Spread algorithm.</p> "> Figure 7
<p>Comparison of the running time of different task-containerization-and-container-placement algorithms.</p> "> Figure 8
<p>The ratio of the inter-container communication overhead to the inter-task communication overhead when using different task-containerization-and-container-placement algorithms.</p> ">
Abstract
:1. Introduction
- We propose a task containerization and container placement optimization framework for applications running on MEC servers from a joint communication and computing perspective. The proposed framework comprises two modules. The task containerization module jointly considers low inter-container communication overhead and balanced multi-type computing resource requirements of containers. The container placement module places instantiated containers to the appropriate MEC servers by considering the balanced usage of the multi-type computing resources on MEC servers. The proposed framework is capable of achieving both low communication overhead and balanced computing resource requirement among containers, as well as balanced computing resource utilization among servers. To the best of our knowledge, our work is the first to investigate the impact of task partitioning, task containerization, and container placement on inter-container communication overhead and resource utilization balancing.
- We offer a workflow modeling method for highly interdependent tasks of an application and propose a mathematical model of the workflow to reflect the interactions among the tasks, the communication overhead, and the computing resources needed by each task. Based on the workflow model of tasks, we present a method for calculating the communication overhead and the utilization efficiency deviation of multi-type computing resources in the MEC-based computing network considered. The proposed model and methods are directly applicable to various workflow-based cloud computing and edge computing platforms.
- We evaluate the proposed task-containerization -and-container-placement algorithms in multiple aspects through extensive experiments, and compare them with state-of-the-art methods. Our experiments show that the proposed methods are capable of reducing the communication overhead by up to 74.10%, decreasing the normalized maximum load by up to 60.24%, improving the CPU utilization efficiency by up to 30.66%, and improving the memory utilization efficiency by up to 40.77% under the considered system configurations.
2. System Model
3. Problem Formulation
3.1. Communication Overhead
Computing Resource Utilization Balance
4. Task Containerization and Container Placement Schemes
4.1. Task Containerization Method
- NCPI: Tasks are sorted topologically, and the critical path is chosen as the one with the highest weight. The tasks that comprise the critical path are known as essential tasks, and they determine the minimum completion time of an application. Due to the high communication overhead between essential tasks, we first select the required number of non-essential tasks and then assign each non-essential task to a different disjoint vertex set as an initial partition to reduce communication overhead between sets.
- RI: Selecting the desired tasks randomly according to the number of disjoint vertex sets and assigning each of them to a different disjoint vertex set as an initial partition.
4.2. Container Placement Method
Algorithm 1 The proposed task containerization algorithm |
Input: , , C, Output: ,
|
Algorithm 2 The DP algorithm |
Input: , , , , , Output:
|
Algorithm 3 The FFD algorithm |
Input: , , , , , Output:
|
4.3. Analysis of Algorithm Complexity
5. Evaluation
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Shi, W.; Cao, J.; Zhang, Q.; Li, Y.; Xu, L. Edge computing: Vision and challenges. IEEE Internet Things J. 2016, 3, 637–646. [Google Scholar] [CrossRef]
- Liu, P.; Willis, D.; Banerjee, S. Paradrop: Enabling lightweight multi-tenancy at the network’s extreme edge. In Proceedings of the IEEE/ACM Symposium on Edge Computing (SEC), Washington, DC, USA, 27–28 October 2016; pp. 1–13. [Google Scholar]
- Zhang, J.; Zhou, X.; Ge, T.; Wang, X.; Hwang, T. Joint task scheduling and containerizing for efficient edge computing. IEEE Trans. Parallel Distrib. Syst. 2021, 32, 2086–2100. [Google Scholar] [CrossRef]
- Bao, L.; Wu, C.; Bu, X.; Ren, N.; Shen, M. Performance modeling and workflow scheduling of microservice-based applications in clouds. IEEE Trans. Parallel Distrib. Syst. 2019, 30, 2114–2129. [Google Scholar] [CrossRef]
- Zhou, R.; Li, Z.; Wu, C. An efficient online placement scheme for cloud container clusters. IEEE J. Sel. Areas Commun. 2019, 37, 1046–1058. [Google Scholar] [CrossRef]
- Lv, L.; Zhang, Y.; Li, Y.; Xu, K.; Wang, D.; Wang, W.; Li, M.; Cao, X.; Liang, Q. Communication-aware container placement and reassignment in large-scale Internet data centers. IEEE J. Sel. Areas Commun. 2019, 37, 540–555. [Google Scholar] [CrossRef]
- Hong, Y.-J.; Thottethodi, M. Understanding and mitigating the impact of load imbalance in the memory caching tier. In Proceedings of the 4th Annual Symposium on Cloud Computing, Santa Clara, CA, USA, 1–3 October 2013; pp. 1–17. [Google Scholar]
- Li, W.; Li, X.; Ruiz, R. Scheduling microservice-based workflows to containers in on-demand cloud resources. In Proceedings of the IEEE 24th International Conference on Computer Supported Cooperative Work in Design (CSCWD), Dalian, China, 5–7 May 2021; pp. 61–66. [Google Scholar]
- Ye, L.; Xia, Y.; Yang, L.; Yan, C. SHWS: Stochastic hybrid workflows dynamic scheduling in cloud container services. IEEE Trans. Autom. Sci. Eng. 2022, 19, 2620–2636. [Google Scholar] [CrossRef]
- Wu, Z.; Deng, Y.; Feng, H.; Zhou, Y.; Min, G.; Zhang, Z. Blender: A container placement strategy by leveraging zipf-like distribution within containerized data centers. IEEE Trans. Netw. Serv. Manag. 2022, 19, 1382–1398. [Google Scholar] [CrossRef]
- Hu, Y.; Zhou, H.; de Laat, C.; Zhao, Z. Concurrent container scheduling on heterogeneous clusters with multi-resource constraints. Future Gener. Comput. Syst. 2020, 102, 562–573. [Google Scholar] [CrossRef]
- Tsourakakis, C.; Gkantsidis, C.; Radunovic, B.; Vojnovic, M. FENNEL: Streaming graph partitioning for massive scale graphs. In Proceedings of the 7th ACM International Conference on Web Search and Data Mining, New York, NY, USA, 24–28 February 2014; pp. 333–342. [Google Scholar]
- Patt-Shamir, B.; Rawitz, D. Vector bin packing with multiple-choice. Discret. Appl. Math. 2012, 160, 1591–1600. [Google Scholar] [CrossRef]
- Panigrahy, R.; Talwar, K.; Uyeda, L.; Wieder, U. Heuristics for Vector bin Packing. January 2011, pp. 1–14. Available online: https://www.microsoft.com/en-us/research/publication/heuristics-for-vector-bin-packing/ (accessed on 18 March 2023).
- Alibaba Cluster Trace Program. 2023. Available online: https://github.com/alibaba/clusterdata/tree/master/cluster-trace-v2018 (accessed on 18 March 2023).
- Docker. 2023. Available online: https://docs.docker.com/engine/swarm/services/ (accessed on 18 March 2023).
- Hartigan, J.A.; Wong, M.A. Algorithm AS 136: A K-means clustering algorithm. J. R. Stat. Soc. Ser. C (Appl. Stat.) 1979, 28, 100–108. [Google Scholar] [CrossRef]
Server | CPU (%) | Memory (%) |
---|---|---|
0 | 7 | 7 |
1 | 9 | 8 |
2 | 10 | 8 |
3 | 12 | 11 |
4 | 6 | 11 |
5 | 12 | 14 |
6 | 14 | 8 |
7 | 10 | 11 |
8 | 9 | 14 |
9 | 11 | 8 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, A.; Yang, S.; Tan, J.; Liang, Z.; Sun, J.; Wen, T.; Yan, H. Task Containerization and Container Placement Optimization for MEC: A Joint Communication and Computing Perspective. Processes 2023, 11, 1560. https://doi.org/10.3390/pr11051560
Liu A, Yang S, Tan J, Liang Z, Sun J, Wen T, Yan H. Task Containerization and Container Placement Optimization for MEC: A Joint Communication and Computing Perspective. Processes. 2023; 11(5):1560. https://doi.org/10.3390/pr11051560
Chicago/Turabian StyleLiu, Ao, Shaoshi Yang, Jingsheng Tan, Zongze Liang, Jiasen Sun, Tao Wen, and Hongyan Yan. 2023. "Task Containerization and Container Placement Optimization for MEC: A Joint Communication and Computing Perspective" Processes 11, no. 5: 1560. https://doi.org/10.3390/pr11051560
APA StyleLiu, A., Yang, S., Tan, J., Liang, Z., Sun, J., Wen, T., & Yan, H. (2023). Task Containerization and Container Placement Optimization for MEC: A Joint Communication and Computing Perspective. Processes, 11(5), 1560. https://doi.org/10.3390/pr11051560