A Genetic Algorithm-Based Energy-Efficient Container Placement Strategy in CaaS

Rong Zhang, Yaxing Chen, Bo Dong, Feng Tian, Qinghua ZhengIEEE Access 2019

Abstract

Energy efficiency is a critical concern in modern data centers, particularly within Container as a Service (CaaS) frameworks. Traditional container placement strategies often rely on oversimplified linear energy models that do not accurately reflect hardware power dynamics. This paper introduces an Improved Genetic Algorithm (IGA) designed to optimize container placement using a nonlinear energy consumption model. By implementing novel mutation strategies—Two-Point Exchange Mutation (TPEMO) and Two-Segment Exchange Mutation (TSEMO)—the IGA avoids the pitfalls of crowded servers and local optima. Experimental evaluations show that the IGA outperforms industry-standard heuristics, achieving superior energy savings and reduced computational overhead in large-scale, heterogeneous environments.

Introduction

In the CaaS paradigm, the Container Placement (CP) problem involves determining the optimal mapping of containers to virtual machines (VMs) to minimize energy consumption while respecting resource constraints. Most existing research and industry tools, such as Docker Swarm, utilize linear energy models that assume power draw increases proportionally with load. However, real-world hardware exhibits nonlinear power consumption characteristics. Furthermore, standard optimization techniques like Genetic Algorithms (GAs) often struggle in high-density scenarios, as random mutations frequently result in invalid solutions that exceed VM capacities.

Methodology

The proposed approach shifts the paradigm in two significant ways:

Nonlinear Energy Modeling

The researchers adopted a polynomial energy model that incorporates both CPU and memory utilization. This model more accurately represents the power dynamics of modern physical machines (PMs), revealing energy-saving opportunities that linear models overlook.

Improved Genetic Algorithm (IGA)

To address the "crowded server" problem, the IGA introduces "exchange-based" mutation strategies:

  • Two-Point Exchange Mutation (TPEMO): Swaps individual containers between different VMs.
  • Two-Segment Exchange Mutation (TSEMO): Swaps groups of containers between VMs.
Initial container placement across virtual machines (VMs) and physical machines (PMs).

A mathematical "star line" function ($\phi$) is used as a control parameter to balance exploration and exploitation, transitioning from broad searches to fine-tuned adjustments as the algorithm progresses.

Container redistribution after an exchange mutation, demonstrating the IGA's ability to reconfigure loads without exceeding capacity.

Experimental Evaluation

The IGA was tested using synthetic workloads across small (360), medium (720), and large (1,100) container scales on 50 heterogeneous PMs. The study considered both uniform and nonuniform VM distributions.

Key Results

  • Energy Savings: The IGA consistently outperformed Docker Swarm’s "Spread" and "Binpack" strategies, showing up to a 1.14% improvement in energy efficiency in nonuniform scenarios.
  • Scalability: In large-scale tests, the IGA achieved better fitness values (lower power consumption) than standard GA and Particle Swarm Optimization (PSO).
  • Efficiency: By minimizing invalid solutions, the IGA reduced computation time for large problems by nearly 50% compared to standard GA (e.g., ~37,791s vs. ~74,844s).

Conclusion

The Improved Genetic Algorithm provides a robust and realistic solution for energy-efficient container placement in CaaS. By leveraging nonlinear modeling and exchange-based mutations, it overcomes the limitations of traditional heuristics. Future research will explore dynamic rescheduling to handle fluctuating workloads and multi-objective optimization to balance energy efficiency with high availability and latency requirements.

Summary updated

BibTeX
@article{zhang2019genetic,
  author = {Rong Zhang and Yaxing Chen and Bo Dong and Feng Tian and Qinghua Zheng},
  title = {{A Genetic Algorithm-Based Energy-Efficient Container Placement Strategy in CaaS}},
  journal = {IEEE Access},
  year = {2019},
  doi = {10.1109/access.2019.2937553},
}
Figure