Research on Cloud Task Scheduling Algorithm with Conflict Constraints Based on Branch-and-Price
Abstract
:1. Introduction
- We formulate the low-energy task scheduling problem with antiaffinity constraints in cloud computing as an MDBPPC problem. To reduce the solution difficulty, we decompose the problem by Lagrange relaxation principle and Dantzig–Wolfe decomposition principle.
- To obtain the optimal integer solution, we design an efficient branch-and-price algorithm with several improvements. First, we introduce the idea of the dominant resource proportion into the process of initial solution generation. Second, we use an efficient branch rule based on multiple pattern. Third, we use the hot start and upper bound strategy to improve the branch-and-price algorithm.
- We conduct numerical simulations on three scales to evaluate the correctness and effectiveness of our proposed algorithm. Moreover, we verify the effectiveness of the initial solution strategy and the branching strategy.
2. Related Works
3. System Model and Problem Formulation
4. Model Decomposition
5. Cloud Task Scheduling Algorithm Based on Branch-and-Price
5.1. Generation of Initial Solution
5.1.1. Algorithmic Procedure
5.1.2. Example
5.2. Column Generation Algorithm
5.2.1. Algorithmic Procedure
5.2.2. Example
5.3. Branch Strategy and Node Selection Strategy
5.3.1. Algorithmic Procedure
5.3.2. Example
5.4. Optimization of the Algorithm
5.4.1. Branch Strategy Based on Multiple Patterns
- (a)
- Algorithmic Procedure
- (b)
- Example
5.4.2. Hot Start and Upper Bound Strategy for Generating Integer Solutions
5.5. Specific Implementation Steps of the Algorithm
6. Experimental Results and Analysis
6.1. Experimental Setup
- The experiment is divided into three scales based on the number of tasks: small-scale (30 tasks), medium-scale (100 tasks), and large-scale (200 tasks).
- There are a total of 200 cloud computing VMs, each with three hardware resources: CPU, memory, and storage. The resource capacity of each VM is .
- The CPU requirements for each task are randomly generated on a uniform distribution of [1–64], memory requirements are randomly generated on a uniform distribution of [8–128], and storage requirements are randomly generated on a uniform distribution of [100–1000].
- Generate a conflict graph G according to the settings in [11], and add the conflict relationship between tasks based on the density values of the number of conflicting tasks.The specific method is to assign a feature value that satisfies a uniform distribution on [0–1] to each task j. If tasks j and meet , add a conflict relationship between tasks j and .
- Each scale is further divided into nine groups according to the increasing conflict density value . To ensure the universality of the experiment, each group includes 20 instances, and the experimental results are the average values simulated by 20 instances. The total number of the instances is 540.
6.2. Experimental Results
7. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Bharany, S.; Sharma, S.; Khalaf, O.I.; Abdulsahib, G.M.; Al Humaimeedy, A.S.; Aldhyani, T.H.; Maashi, M.; Alkahtani, H. A systematic survey on energy-efficient techniques in sustainable cloud computing. Sustainability 2022, 14, 6256. [Google Scholar] [CrossRef]
- Garg, N.; Singh, D.; Goraya, M.S. Energy and resource efficient workflow scheduling in a virtualized cloud environment. Clust. Comput. 2021, 24, 767–797. [Google Scholar] [CrossRef]
- Zade, B.M.H.; Mansouri, N.; Javidi, M.M. SAEA: A security-aware and energy-aware task scheduling strategy by Parallel Squirrel Search Algorithm in cloud environment. Expert Syst. Appl. 2021, 176, 114915. [Google Scholar] [CrossRef]
- Houssein, E.H.; Gad, A.G.; Wazery, Y.M.; Suganthan, P.N. Task scheduling in cloud computing based on meta-heuristics: Review, taxonomy, open challenges, and future trends. Swarm Evol. Comput. 2021, 62, 100841. [Google Scholar] [CrossRef]
- Hussain, M.; Wei, L.F.; Lakhan, A.; Wali, S.; Ali, S.; Hussain, A. Energy and performance-efficient task scheduling in heterogeneous virtualized cloud computing. Sustain. Comput. Inform. Syst. 2021, 30, 100517. [Google Scholar] [CrossRef]
- Ghafari, R.; Kabutarkhani, F.H.; Mansouri, N. Task scheduling algorithms for energy optimization in cloud environment: A comprehensive review. Clust. Comput. 2022, 25, 1035–1093. [Google Scholar] [CrossRef]
- Kubernetes. Available online: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/ (accessed on 7 June 2023).
- OpenStack. Available online: https://specs.openstack.org/openstack/cinder-specs/specs/juno/affinity-antiaffinity-filter.html (accessed on 7 June 2023).
- Chi, R.; Qian, Z.; Lu, S. Be a good neighbour: Characterizing performance interference of virtual machines under xen virtualization environments. In Proceedings of the 2014 20th IEEE International Conference on Parallel and Distributed Systems (ICPADS), Hsinchu, Taiwan, 16–19 December 2014; IEEE: Piscataway, NJ, 2014; pp. 257–264. [Google Scholar]
- Jansen, K. An approximation scheme for bin packing with conflicts. J. Comb. Optim. 1999, 3, 363–377. [Google Scholar] [CrossRef]
- Christman, A.; Chung, C.; Jaczko, N.; Westvold, S.; Yuen, D.S. Robustly assigning unstable items. J. Comb. Optim. 2022, 44, 1556–1577. [Google Scholar] [CrossRef]
- Beloglazov, A.; Abawajy, J.; Buyya, R. Energy-aware resource allocation heuristics for efficient management of data centers for cloud computing. Future Gener. Comput. Syst. 2012, 28, 755–768. [Google Scholar] [CrossRef] [Green Version]
- Garg, N.; Singh, D.; Singh Goraya, M. Deadline aware energy-efficient task scheduling model for a virtualized server. SN Comput. Sci. 2021, 2, 169. [Google Scholar] [CrossRef]
- Mekala, M.; Viswanathan, P. CTRV: Resource based task consolidation approach in cloud for green computing. Distrib. Parallel Databases 2023, 41, 157. [Google Scholar]
- Zhang, X.; Liu, X.; Li, W.; Zhang, X. Trade-off between energy consumption and makespan in the mapreduce resource allocation problem. In Proceedings of the Artificial Intelligence and Security: 5th International Conference, New York, NY, USA, 26–28 July 2019; Springer: Cham, Switzerland, 2019; pp. 239–250. [Google Scholar]
- Liang, B.; Wu, D.; Wu, P.; Su, Y. An energy-aware resource deployment algorithm for cloud data centers based on dynamic hybrid machine learning. Knowl.-Based Syst. 2021, 222, 107020. [Google Scholar] [CrossRef]
- Gendreau, M.; Laporte, G.; Semet, F. Heuristics and lower bounds for the bin packing problem with conflicts. Comput. Oper. Res. 2004, 31, 347–358. [Google Scholar] [CrossRef]
- Capua, R.; Frota, Y.; Ochi, L.S.; Vidal, T. A study on exponential-size neighborhoods for the bin packing problem with conflicts. J. Heuristics 2018, 24, 667–695. [Google Scholar] [CrossRef] [Green Version]
- Elhedhli, S.; Li, L.; Gzara, M.; Naoum-Sawaya, J. A branch-and-price algorithm for the bin packing problem with conflicts. INFORMS J. Comput. 2011, 23, 404–415. [Google Scholar] [CrossRef]
- Wei, L.; Luo, Z.; Baldacci, R.; Lim, A. A new branch-and-price-and-cut algorithm for one-dimensional bin-packing problems. INFORMS J. Comput. 2020, 32, 428–443. [Google Scholar] [CrossRef]
- Ekici, A. Bin packing problem with conflicts and item fragmentation. Comput. Oper. Res. 2021, 126, 105113. [Google Scholar] [CrossRef]
- Garey, M.R.; Johnson, D.S. Computers and Intractability; Freeman: San Francisco, CA, USA, 1979; Volume 174. [Google Scholar]
- Geoffrion, A.M. Lagrangean relaxation for integer programming. In Approaches to Integer Programming; Springer: Berlin/Heidelberg, Germany, 2009; pp. 82–114. [Google Scholar]
- Desaulniers, G.; Desrosiers, J.; Solomon, M.M. Column generation; Springer Science & Business Media: New York, NY, USA, 2006; Volume 5. [Google Scholar]
- Tomita, E.; Tanaka, A.; Takahashi, H. The worst-case time complexity for generating all maximal cliques and computational experiments. Theor. Comput. Sci. 2006, 363, 28–42. [Google Scholar] [CrossRef] [Green Version]
- Liu, X.; Zhang, X.; Li, W.; Zhang, X. Swarm optimization algorithms applied to multi-resource fair allocation in heterogeneous cloud computing systems. Computing 2017, 99, 1231–1255. [Google Scholar] [CrossRef]
- Zhang, J.; Yang, X.; Xie, N.; Zhang, X.; Vasilakos, A.V.; Li, W. An online auction mechanism for time-varying multidimensional resource allocation in clouds. Future Gener. Comput. Syst. 2020, 111, 27–38. [Google Scholar] [CrossRef]
- Zhang, J.; Xie, N.; Yang, X.; Zhang, X.; Li, W. Strategy-proof mechanism for time-varying batch virtual machine allocation in clouds. Clust. Comput. 2021, 24, 3709–3724. [Google Scholar] [CrossRef]
- Zhang, J.; Chi, L.; Xie, N.; Yang, X.; Zhang, X.; Li, W. Strategy-proof mechanism for online resource allocation in cloud and edge collaboration. Computing 2022, 104, 383–412. [Google Scholar] [CrossRef]
- Elhedhli, S. Ranking lower bounds for the bin-packing problem. Eur. J. Oper. Res. 2005, 160, 34–46. [Google Scholar] [CrossRef]
- Ryan, D.M.; Foster, B.A. An integer programming approach to scheduling. In Computer Scheduling of Public Transport Urban Passenger Vehicle and Crew Scheduling; Elsevier: Amsterdam, The Netherlands, 1981; pp. 269–280. [Google Scholar]
Task Number | CPU | Memory |
---|---|---|
1 | 2 | 1 |
2 | 1 | 3 |
3 | 2 | 4 |
4 | 3 | 2 |
5 | 4 | 2 |
Number of Tasks | Conflic Density | Nodes | Root Node Columns | Total Columns | Root Node Value | Optimal Solution | Root Node Time (s) | Total Time (s) |
---|---|---|---|---|---|---|---|---|
30 | 0.1 | 48.40 | 76.75 | 107.45 | 10.88 | 11.30 | 12.25 | 21.23 |
0.2 | 31.05 | 82.55 | 98.20 | 10.86 | 11.40 | 10.53 | 14.23 | |
0.3 | 29.85 | 72.20 | 87.85 | 11.52 | 11.65 | 7.66 | 12.96 | |
0.4 | 28.65 | 66.05 | 77.90 | 12.95 | 13.20 | 5.98 | 10.55 | |
0.5 | 20.80 | 54.45 | 65.70 | 15.72 | 15.95 | 3.58 | 6.11 | |
0.6 | 16.65 | 47.40 | 52.15 | 18.48 | 18.60 | 2.38 | 5.05 | |
0.7 | 5.85 | 40.05 | 41.90 | 21.99 | 22.15 | 1.02 | 1.73 | |
0.8 | 8.80 | 34.70 | 36.85 | 25.30 | 25.40 | 0.38 | 0.74 | |
0.9 | 2.80 | 32.45 | 33.50 | 27.40 | 27.40 | 0.24 | 0.64 | |
Average | 21.43 | 56.29 | 66.83 | 17.23 | 17.45 | 4.89 | 8.14 | |
100 | 0.1 | 276.35 | 261.10 | 474.25 | 35.95 | 36.50 | 63.27 | 159.52 |
0.2 | 269.20 | 253.55 | 465.35 | 36.25 | 36.65 | 69.56 | 147.46 | |
0.3 | 133.45 | 269.65 | 470.55 | 37.51 | 38.05 | 75.33 | 143.70 | |
0.4 | 115.30 | 287.35 | 359.60 | 39.88 | 40.15 | 65.52 | 79.21 | |
0.5 | 107.75 | 205.50 | 284.65 | 48.95 | 49.05 | 35.78 | 53.06 | |
0.6 | 111.15 | 181.50 | 245.75 | 58.83 | 59.20 | 24.78 | 40.02 | |
0.7 | 68.05 | 162.85 | 195.65 | 70.88 | 71.10 | 16.51 | 22.10 | |
0.8 | 25.55 | 139.30 | 150.40 | 80.24 | 80.65 | 8.34 | 9.95 | |
0.9 | 9.20 | 109.00 | 112.10 | 91.38 | 91.60 | 1.09 | 1.49 | |
Average | 124.00 | 207.76 | 306.48 | 55.54 | 55.88 | 40.02 | 72.95 | |
200 | 0.1 | 637.70 | 605.30 | 962.65 | 72.32 | 72.35 | 157.71 | 447.21 |
0.2 | 565.80 | 539.45 | 934.20 | 72.60 | 73.00 | 175.76 | 385.43 | |
0.3 | 367.05 | 566.30 | 903.30 | 73.25 | 73.65 | 185.33 | 321.84 | |
0.4 | 364.60 | 511.25 | 742.20 | 79.42 | 79.75 | 154.04 | 256.64 | |
0.5 | 349.95 | 431.80 | 621.30 | 101.98 | 102.20 | 106.64 | 196.77 | |
0.6 | 335.05 | 381.65 | 532.45 | 121.33 | 121.35 | 79.60 | 152.03 | |
0.7 | 295.10 | 353.75 | 506.25 | 135.41 | 135.50 | 59.47 | 125.47 | |
0.8 | 106.85 | 277.95 | 329.20 | 162.02 | 162.25 | 24.52 | 37.17 | |
0.9 | 38.50 | 225.35 | 242.30 | 183.43 | 183.75 | 5.34 | 8.826 | |
Average | 340.07 | 432.53 | 641.54 | 111.31 | 111.53 | 105.38 | 214.60 |
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
Xie, N.; Li, W.; Zhang, J.; Zhang, X. Research on Cloud Task Scheduling Algorithm with Conflict Constraints Based on Branch-and-Price. Appl. Sci. 2023, 13, 7505. https://doi.org/10.3390/app13137505
Xie N, Li W, Zhang J, Zhang X. Research on Cloud Task Scheduling Algorithm with Conflict Constraints Based on Branch-and-Price. Applied Sciences. 2023; 13(13):7505. https://doi.org/10.3390/app13137505
Chicago/Turabian StyleXie, Ning, Weidong Li, Jixian Zhang, and Xuejie Zhang. 2023. "Research on Cloud Task Scheduling Algorithm with Conflict Constraints Based on Branch-and-Price" Applied Sciences 13, no. 13: 7505. https://doi.org/10.3390/app13137505