Renewable-Aware Container Migration in Multi-Data Centers
Abstract
1. Introduction
- Propose a renewable-energy-aware container migration strategy that integrates a Dynamic Priority-Based Algorithm (DPA) for container selection with a Multi-Factor Dream Optimization Algorithm (MF-DOA) for container placement, aiming to optimize renewable energy utilization, service quality, and operational costs.
- Validate the proposed approach through CloudSim-based simulations under realistic workload and renewable energy scenarios.
- Demonstrate that the approach increases renewable energy usage and reduces carbon emissions, while maintaining low Service Level Agreement Violation (SLAV)and migration costs.
2. Related Work
3. Problem Formulation and Modeling
3.1. Energy Consumption Model
3.2. Container Migration Model
3.3. Data Center Renewable Energy Consumption Model
4. Container Migration Strategy for Renewable Energy Consumption
4.1. Dynamic Priority-Based Algorithm (DPA) for Container Selection
| Algorithm 1. DPA Container Selection | |
| Input: DC—Data center for container migration | |
| X—Today’s renewable energy collection | |
| H—Day-ahead renewable energy collection | |
| Output: CList- List of containers for migration | |
| 1: | CList = empty list |
| 2: | calculate using Equation (13) |
| 3: | |
| 4: | if do |
| 5: | return CList |
| 6: | end if |
| 7: | while DC is overutilized do |
| 8: | = 0 |
| 9: | C = null |
| 10: | for each container in DC do |
| 11: | calculate using Equation (5) |
| 12: | calculate using Equation (16) |
| 13: | calculate using Equation (8) |
| 14: | calculate using Equation (15) |
| 15: | calculate using Equation (19) |
| 16: | if do |
| 17: | |
| 18: | C = container |
| 19: | end if |
| 20: | end for |
| 21: | add C to CList |
| 22: | remove C from DC |
| 23: | end while |
| 24: | return CList |
4.2. Multi-Factor Dream Optimization Algorithm (MF-DOA) for Container Placement
- (1)
- Proposed a multiplicative penalty fitness function with non-linear power terms to prevent compensation effects and heavily penalize severe constraint violations, ensuring a baseline operational level for all data centers while balancing migration cost, carbon emissions, and SLAV.
- (2)
- Introduces a feasibility-guided dream sharing mechanism where individuals preferentially share solutions that satisfy capacity constraints.
- (3)
- Employs a five-tier hierarchical structure with different exploration strategies for each tier, enhancing convergence speed while maintaining diversity.
- (4)
- The forgetting rate dynamically adjusts based on the iteration progress and population diversity, preventing premature convergence in early stages and intensifying search in later stages.
| Algorithm 2. Population Initialization | |
| Input: DCList—List of data centers overloaded by renewable energy consumption | |
| CList—Containers to migrate list | |
| cSize—Amount of containers in CList | |
| popSize—Amount of individual in Population | |
| Output: population—Individual list | |
| 1: | population[popSize][cSize] = new array |
| 2: | for i = 0 to popSize-1 do |
| 3: | for j = 0 to CSize-1 do |
| 4: | if can migrate to random(DC) do |
| 5: | population[i][j] = random(DC) |
| 6: | else population[i][j] = −1 |
| 7: | end if |
| 8: | end for |
| 9: | end for |
| 10: | return population |
| Algorithm 3. Individual Evaluation | |
| Input: individual—Individual array | |
| DCList—Data Center List | |
| CList—Container List | |
| Indsize—Individual size | |
| Output: fitness—Individual fitness | |
| 1: | for i = 0 to Indsize-1 do |
| 2: | Migrate CList[i] to DCList[individual[i]] |
| 3: | end for |
| 4: | calculate using Equation (21) |
| 5: | for i = 0 to Indsize-1 do |
| 6: | Remove CList[i] from DCList[individual[i]] |
| 7: | end for |
| 8: | return fitness |
| Algorithm 4. MF-DOA Container Placement | |
| Input: population—Population array | |
| Tmax—Total number of iterations | |
| Td—Explore rounds | |
| u—Dream-sharing operation portion | |
| patience—Early stopping patience | |
| Output: bestindividual—Best Individual | |
| 1: | Population Initialization using Algorithm 2 |
| 2: | for t from 0 to Tmax do |
| 3: | for each individual in population do |
| 4: | Calculate group index |
| 5: | Individual Evaluation using Algorithm 3 |
| 6: | Update group best and global best if improved |
| 7: | end for |
| 8: | if t < Td do |
| 9: | for each group in groups do |
| 10: | Calculate forgetDims using Equation (22) |
| 11: | for each individual in group do |
| 12: | copy group best individual |
| 13: | Select random dimensions |
| 14: | for each dim in dimension do |
| 15: | if random() < u do |
| 16: | Individual[dim] = random() |
| 17: | else do |
| 18: | Individual[dim] = value shared from random individual |
| 19: | end if |
| 20: | end for |
| 21: | Update bestindividual if improved |
| 22: | end for |
| 23: | else do |
| 24: | calculate forgetDims |
| 25: | for each individual in population do |
| 26: | copy bestindividual |
| 27: | Select random dimensions |
| 28: | for each dim in dimension do |
| 29: | if random() < u do |
| 30: | Individual[dim] = random value |
| 31: | end if |
| 32: | end for |
| 33: | Update bestindividual best if improved |
| 34: | end for |
| 35: | end if |
| 36: | if not improved for patience times do |
| 37: | break |
| 38: | end if |
| 39: | end for |
| 40: | return bestindividual |
- Initialization Phase: The algorithm initializes a population of individuals. For each of the containers in an individual, a feasibility check is performed against a randomly selected data center from . This results in a time complexity of .
- Per-Iteration Cost: The computational cost within each generation of the main loop consists of two primary parts:
- ○
- Fitness Evaluation: Evaluating a single individual, which includes migration simulation and fitness calculation, has a complexity of . For the entire population, this amounts to .
- ○
- Individual Updates: In both the exploration and development phases, updating an individual involves modifying dimensions. This operation for the entire population has a complexity of .
- Overall Time Complexity: The total cost per iteration is the sum of the evaluation and update costs: . Since the algorithm runs for a maximum of iterations, the overall time complexity is . It is noteworthy that is a dynamic parameter that decreases over time, and the algorithm incorporates an early stopping mechanism. Consequently, the practical computational cost is often significantly lower than this theoretical worst-case bound. The space complexity is for population storage.
5. Experimental Results
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- China Academy of Information and Communications (CAICT). China Green Computing Power Development Research Report 2025. Available online: https://www.caict.ac.cn/kxyj/qwfb/ztbg/202507/t20250724_686833.htm (accessed on 24 July 2025).
- International Energy Agency (IEA). Energy and AI. Available online: https://www.iea.org/reports/energy-and-ai (accessed on 24 July 2025).
- China National Data Administration. East Data West Calculation’ Project Makes Positive Progress. Available online: http://finance.people.com.cn/n1/2024/0722/c1004-40282879.html (accessed on 22 July 2024).
- Song, J.; Zhu, P.; Zhang, Y.; Yu, G. CloudSimPer: Simulating Geo-Distributed Datacenters Powered by Renewable Energy Mix. IEEE Trans. Parallel Distrib. Syst. 2024, 35, 531–547. [Google Scholar] [CrossRef]
- Bhardwaj, A.; Krishna, C.R. Virtualization in Cloud Computing: Moving from Hypervisor to Containerization—A Survey. Arab. J. Sci. Eng. 2021, 46, 8585–8601. [Google Scholar] [CrossRef]
- Katal, A.; Dahiya, S.; Choudhury, T. Energy Efficiency in Cloud Computing Data Centers: A Survey on Software Technologies. Clust. Comput. 2023, 26, 1845–1875. [Google Scholar] [CrossRef] [PubMed]
- Yade, L.; Gueye, A.D. Remote Practical Work Environment Based on Containers to Replace Virtual Machines. In Proceedings of the 2022 IEEE Global Engineering Education Conference (EDUCON), Tunis, Tunisia, 28–31 March 2022; pp. 1285–1290. [Google Scholar] [CrossRef]
- Lohumi, Y.; Srivastava, P.; Gangodkar, D.; Tripathi, V. Recent Trends, Issues and Challenges in Container and VM Migration. In Proceedings of the 2023 International Conference on Computer Science and Emerging Technologies, Bangalore, India, 10–12 October 2023; pp. 1–5. [Google Scholar] [CrossRef]
- Radovanović, A.; Koningstein, R.; Schneider, I.; Chen, B.; Duarte, A.; Roy, B.; Xiao, D.; Haridasan, M.; Hung, P.; Care, N.; et al. Carbon-Aware Computing for Datacenters. IEEE Trans. Power Syst. 2022, 38, 1270–1280. [Google Scholar] [CrossRef]
- Wu, G.; Li, X.; Li, C. A Load Balancing-Based Container Migration Mechanism in the Smart Grid Cloud Platform. In Proceedings of the 2024 9th International Conference on Computer and Communication Systems (ICCCS), Xi’an, China, 19–22 April 2024; pp. 1100–1104. [Google Scholar] [CrossRef]
- Jing, Y.; Shen, L.; Yao, C.; Fan, F.; Wang, X. HLEM-VMP: An Effective Virtual Machine Placement Algorithm for Minimizing SLA Violations in Cloud Data Centers. IEEE Syst. J. 2024, 18, 1963–1974. [Google Scholar] [CrossRef]
- Wang, J.; Yu, J.; Zhai, R.; He, X.; Song, Y. GMPR: A Two-Phase Heuristic Algorithm for Virtual Machine Placement in Large-Scale Cloud Data Centers. IEEE Syst. J. 2023, 17, 1419–1430. [Google Scholar] [CrossRef]
- Li, J.; Dong, J.; Li, F.; Xu, H. Reinforcement Learning Based Container Placement Strategies. In Proceedings of the 4th International Conference on Electronic Information Engineering and Computer, Shenzhen, China, 15–17 November 2024; pp. 170–174. [Google Scholar] [CrossRef]
- Yang, Z.; Islam, M.T.; Harwood, A. A Unified Approach to Virtual Machine Placement and Migration in the Cloud using Deep Reinforcement Learning. In Proceedings of the IEEE/ACM 17th International Conference on Utility and Cloud Computing, Sharjah, United Arab Emirates, 16–19 December 2024; pp. 148–157. [Google Scholar] [CrossRef]
- D’Souza, M.; Sreenivasa, B.L.; Nagalavi, D.; Khan, S.A.; Sathyanarayana, S.; Dhaaraani, R. Optimized Virtual Machine Scheduling for Green Cloud Computing Using MLP-LSTM with Sheep Flock Optimization. In Proceedings of the International Conference on Communication, Control, and Intelligent Systems, Mathura, India, 6–7 December 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Durgaprasad, S.; Abdul, A.M. Multi-objective data migration in container-based heterogeneous cloud environments using deep adaptive dragonfly optimization. Int. J. Inf. Technol. 2025, 17, 3579–3588. [Google Scholar] [CrossRef]
- Li, J.; Zhou, Z.; Zhao, D.; Shi, Z.; Meng, L.; Gaaloul, W. Energy-Aware Service Migration in End-Edge-Cloud Collaborative Networks. In Proceedings of the 2024 IEEE International Conference on Web Services (ICWS), Shenzhen, China, 7–13 July 2024; pp. 974–979. [Google Scholar] [CrossRef]
- Feng, H.; Li, H.; Liu, Y.; Cao, K.; Zhou, X. A novel virtual machine placement algorithm based on grey wolf optimization. J. Cloud Comput. 2025, 14, 7. [Google Scholar] [CrossRef]
- Lang, Y.; Gao, Y. Dream Optimization Algorithm (DOA): A novel metaheuristic optimization algorithm inspired by human dreams and its applications to real-world engineering problems. Comput. Methods Appl. Mech. Eng. 2025, 436, 117718. [Google Scholar] [CrossRef]
- California ISO. Today’s Outlook—Renewables Trend. Available online: https://www.caiso.com/library/daily-renewable-reports (accessed on 24 July 2025).
- U.S. Energy Information Administration. Hourly Electric Grid Monitor. Available online: https://www.eia.gov/electricity/gridmonitor/dashboard/electric_overview/regional/REG-TEX (accessed on 24 July 2025).
- PJM Interconnection. Wind Gen. Available online: https://dataminer2.pjm.com/feed/wind_gen/definition (accessed on 24 July 2025).
- Bonneville Power Administration. Wind Generation & Total Load in the BPA Balancing Authority. Available online: https://transmission.bpa.gov/business/operations/wind/twndbspt.aspx (accessed on 24 July 2025).
- U.S. Environmental Protection Agency. Clean Air Markets Program Data. Available online: https://campd.epa.gov/data/custom-data-download (accessed on 27 October 2025).
- Google Research. ClusterData2019. Available online: https://github.com/google/cluster-data (accessed on 24 July 2025).
- Alibaba Group. Cluster-Trace-v2018. Available online: https://github.com/alibaba/clusterdata (accessed on 24 July 2025).
- Elsedimy, E.I.; Herajy, M.; Abohashish, S.M.M. Energy and QoS-aware virtual machine placement approach for IaaS cloud datacenter. Neural Comput. Appl. 2025, 37, 2211–2237. [Google Scholar] [CrossRef]
- Maldonado Carrascosa, F.J.; Seddiki, D.; Jiménez Sánchez, A.; Galán, S.G.; Ibáñez, M.V.; Marchewka, A. Multi-objective optimization of virtual machine migration among cloud data centers. Soft Comput. 2024, 28, 12043–12060. [Google Scholar] [CrossRef]
















| Algorithm | Prediction Window (min) | MAPE (%) | RMSE (kW) | Peak Error Reduction (%) |
|---|---|---|---|---|
| WMA (No Correction) | 15 | 6.03 | 1225.66 | 0.00 |
| WMA (Improved) | 15 | 3.03 | 615.45 | 48.87 |
| Mini LSTM | 15 | 6.81 | 1379.14 | N/A |
| Scale | Metric | MF-DOA | DOA | PSO | FF |
|---|---|---|---|---|---|
| Small | Avg. Fit. | 0.001175 | 0.001217 | 0.001199 | 0.001168 |
| Std. Dev. | 0.000125 | 0.000133 | 0.000122 | 0.000167 | |
| Best Fit. | 0.001636 | 0.001528 | 0.001451 | 0.001684 | |
| Conv. Iter. | 0.0 | 0.0 | 22.1 | 25.0 | |
| Medium | Avg. Fit. | 0.000878 | 0.000882 | 0.000868 | 0.000881 |
| Std. Dev. | 0.000059 | 0.000051 | 0.000059 | 0.000045 | |
| Best Fit. | 0.001032 | 0.001028 | 0.001023 | 0.000978 | |
| Conv. Iter. | 13.9 | 12.1 | 16.2 | 14.2 | |
| Large | Avg. Fit. | 0.000776 | 0.000797 | 0.000769 | 0.000799 |
| Std. Dev. | 0.000027 | 0.000033 | 0.000041 | 0.000036 | |
| Best Fit. | 0.000816 | 0.000876 | 0.000858 | 0.000869 | |
| Conv. Iter. | 13.8 | 12.5 | 21.1 | 16.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. |
© 2025 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
Fu, X.; Ma, Z.; Shao, X.; Chen, G.; Qi, J. Renewable-Aware Container Migration in Multi-Data Centers. Electronics 2025, 14, 4345. https://doi.org/10.3390/electronics14214345
Fu X, Ma Z, Shao X, Chen G, Qi J. Renewable-Aware Container Migration in Multi-Data Centers. Electronics. 2025; 14(21):4345. https://doi.org/10.3390/electronics14214345
Chicago/Turabian StyleFu, Xiong, Zhangchi Ma, Xuezheng Shao, Guo Chen, and Ji Qi. 2025. "Renewable-Aware Container Migration in Multi-Data Centers" Electronics 14, no. 21: 4345. https://doi.org/10.3390/electronics14214345
APA StyleFu, X., Ma, Z., Shao, X., Chen, G., & Qi, J. (2025). Renewable-Aware Container Migration in Multi-Data Centers. Electronics, 14(21), 4345. https://doi.org/10.3390/electronics14214345

