4.1. Experimental Setup
4.1.1. Simulation Platform and Test System Configuration
This paper extends the CloudSim simulation platform to support VM migration, dynamic power constraints, and multi-metric scheduling evaluation in multi-DC scenarios. The experimental system contains 30 geographically distributed DCs, and time-varying power upper bounds are assigned to some of them to simulate constrained power supply scenarios caused by the combined effects of grid supply capability variations, renewable energy output fluctuations, and demand response mechanisms.
For host-side configuration, this paper adopts a DC-level equivalent resource pool modeling approach. The available host-side resources are aggregated and represented as four types of equivalent resource capacities at the DC level, namely CPU, memory, disk I/O, and network I/O. During scheduling, migrated VMs must simultaneously satisfy the resource capacity constraints and the dynamic power upper-bound constraints of the target DC. For VM configuration, the number of VMs and their resource demands are mapped from task-level trace data in the Google Cluster Trace and Alibaba Cluster Trace. The original task records are divided into time windows with a 5 min scheduling interval, and active tasks within each scheduling window are mapped into VM load units. Each VM has four types of resource demands in the corresponding scheduling period, including CPU, memory, disk I/O, and network I/O. The CPU and memory demands are obtained by normalizing the resource usage records in the traces. For disk I/O and network I/O, which are not completely provided or have inconsistent sampling granularity in the original traces, proxy load sequences are constructed according to the task active state and normalized computing load intensity to represent the relative pressure on disk and network resources.
In the initialization stage, all VMs are assigned to the 30 DCs according to a unified rule. A round-robin strategy is adopted to generate the initial VM-to-DC mapping, thereby avoiding artificial bias toward any specific DC in the initial distribution. For the same dataset, all comparison algorithms use the same initial VM distribution, the same task arrival sequence, the same VM resource demand sequence, and the same dynamic power constraint curves.
The simulation period is set to 24 h, and the scheduling interval is 5 min. Therefore, each group of experiments contains 288 scheduling periods. In each scheduling period, the system determines whether migration should be triggered according to the current VM load state, DC resource utilization state, and dynamic power constraints, and then performs migration candidate VM selection and target DC placement decisions.
All experiments are conducted on a workstation equipped with an Intel Core i7-12700 processor, 32 GB memory, and the Windows 11 operating system. The experimental platform is based on Java 1.8 and the improved CloudSim simulation platform. The algorithm execution time is recorded using System.nanoTime(), and the statistical scope only includes the scheduling decision process itself, excluding additional overheads such as data reading, result saving, file I/O, and figure drawing.
4.1.2. Datasets and Workload Construction
This paper uses two public real-world cluster trace datasets, namely Google Cluster Trace and Alibaba Cluster Trace, to generate VM workloads. Both datasets record information such as task submission, running states, and resource usage variations in large-scale cluster environments, and can reflect the time-varying characteristics of task arrivals and resource demands in real cloud DCs. Google Cluster Trace is mainly used to construct a relatively stable large-scale cloud DC workload scenario, while Alibaba Cluster Trace contains more concentrated task submissions and resource demand variations, and is therefore used to construct a highly dynamic test scenario with more obvious workload fluctuations. By using both trace datasets, this paper evaluates the adaptability of the proposed scheduling framework under different workload fluctuation conditions.
For workload construction, this paper first extracts fields such as task arrival time, running duration, CPU usage, and memory usage from the original traces, and aggregates the active tasks within time windows according to the 5 min scheduling interval. If a task is running in scheduling window t, its resource usage is counted into the VM load corresponding to that window. If multiple tasks are mapped to the same VM load unit, their resource demands are accumulated. Through this process, the original task traces are transformed into VM resource demand sequences over discrete scheduling periods.
For data preprocessing, records with missing key fields, non-positive running durations, or out-of-range resource usage values are removed. For extremely abnormal resource usage values, boundary clipping is adopted to limit them within a reasonable range, thereby reducing the impact of abnormal samples on the simulation results. Then, the resource demands are normalized according to the DC resource capacities, so that the workloads under different datasets and different resource dimensions are uniformly mapped to the interval . The normalized CPU and memory demands are directly obtained from the resource usage records in the traces.
For disk I/O and network I/O resources, since the corresponding fields are not completely provided in the original trace data, this paper constructs proxy load sequences according to the task active state and normalized computing load intensity. In this way, CPU, memory, disk I/O, and network I/O can jointly participate in resource capacity constraint judgment, SLA violation calculation, and VM placement feasibility judgment. In addition, the proxy loads of disk I/O and network I/O are only used to represent relative resource pressure, and are not intended to claim that complete disk or network measurement data exist in the original traces.
Finally, to ensure fair comparison among different algorithms, all comparison algorithms under the same dataset use the same task arrival sequence, VM resource demand sequence, initial VM distribution, and dynamic power constraint curves. In other words, the performance differences in the experimental results mainly come from the VM selection strategy and VM placement strategy themselves, rather than from differences in workload input, initialization state, or power constraint settings.
4.1.3. Experimental Parameter Settings
To evaluate the roles of the VM selection stage and the VM placement stage in the proposed framework, multiple algorithm combinations are selected as comparison methods. The VM selection methods include the Maximum Correlation (MC) algorithm, the Minimum Utilization (MU) algorithm, and the proposed Multi-Factor Balanced (MFB) selection algorithm. The VM placement methods include the Minimum Post-Migration Energy Increment (MPEI) algorithm, the Minimum Power Consumption Host Post-Migration (MPCHP) algorithm, the MinMax Host Utilization (MHU) algorithm, the Power-Constrained Genetic Algorithm (PC-GA), and the proposed Multi-Factor Equilibrium Ant Colony Optimization (MFEACO) algorithm.
Among them, MPEI, MPCHP, and MHU are used to represent typical heuristic VM placement strategies, while PC-GA is used to represent a typical metaheuristic search strategy. PC-GA encodes the mapping relationship between VMs and target DCs as chromosomes, and its fitness function jointly considers energy consumption, SLA violations, the number of migrations, and penalty terms for power and resource constraints. By comparing heuristic placement strategies, genetic search strategies, and the proposed MFEACO strategy, the scheduling performance differences among different placement mechanisms under dynamic power constraints can be evaluated more comprehensively.
Table 1 presents the main algorithm parameters and random experiment settings. To reduce the influence of random initialization on the experimental results, all algorithms involving random selection use the same random seeds and are executed under the same initial VM distribution, the same dynamic power constraints, and the same workload input. Each group of experiments is repeated 10 times, and the average results are reported.
To further evaluate the computational feasibility of the proposed method, this paper records the actual execution time of the MFEACO placement process in each scheduling interval over the 24 h simulation period. The runtime statistics only include the algorithm scheduling decision process itself, excluding additional overheads such as data reading, result saving, file I/O, and figure drawing.
4.2. Results and Discussion
Based on the above experimental settings, this paper evaluates the proposed MFB–MFEACO framework from five aspects. First, it analyzes whether typical DCs can continuously satisfy dynamic power constraints over the 24 h scheduling period, so as to verify the scheduling feasibility of the proposed method under constrained power scenarios. Second, it compares the comprehensive performance of different VM selection and placement strategy combinations on the Google and Alibaba real-world cluster datasets, so as to evaluate the adaptability of the proposed two-stage framework under different workload characteristics. Third, under the fixed MFB selection strategy, it further compares the scheduling results of different placement algorithms, highlighting the performance differences between the MFEACO placement mechanism and traditional heuristic methods as well as the PC-GA metaheuristic method. Fourth, it analyzes the comprehensive trade-off among energy consumption, SLA violations, and the number of migrations through a normalized multi-objective heatmap. Finally, it analyzes the computational efficiency of the proposed algorithms from three aspects, including asymptotic complexity, actual execution time, and convergence behavior, to verify their real-time feasibility within the scheduling period under dynamic power constraints.
4.2.1. Feasibility Analysis Under Dynamic Power Constraints
In constrained power load scenarios, the scheduling results must first satisfy the dynamic power upper-bound constraints of DCs. If the operating power of a DC after scheduling exceeds the power upper bound, the scheduling scheme is not practically feasible even if it performs well in terms of energy consumption or SLA metrics. Therefore, this subsection first selects two typical constrained DCs and analyzes the compliance of the proposed MFB–MFEACO framework with dynamic power constraints over the 24 h scheduling period. The experimental sampling interval is 5 min, including 288 scheduling periods in total.
Figure 2 shows the operating power variation and feasible constraint range of two typical DCs under dynamic power limits, and
Figure 3 shows the corresponding distribution of power constraint utilization states.
As shown in
Figure 2, the dashed lines represent the dynamic power upper bounds of the DCs at different time points, the solid lines represent the actual operating power after scheduling, and the filled regions represent the feasible operating intervals determined by the power constraints. It can be observed that DC 0 and DC 1 do not exceed their dynamic power upper bounds throughout the 24 h scheduling period, indicating that the proposed framework can maintain constraint feasibility under different power limit variation conditions.
Further observation of the constraint variation processes of the two DCs shows that DC 0 and DC 1 face different temporal characteristics of power limits. The available power capacity of DC 0 first becomes tight, then relaxes, and finally tightens again, while the available power capacity of DC 1 first remains relatively loose, then tightens, and finally recovers. During the constraint tightening stage, the operating power after scheduling decreases with the falling power boundary. During the constraint relaxation stage, the operating power can moderately increase within the feasible range. This indicates that VM migration scheduling is not merely a static adjustment under a fixed power threshold, but can update the load distribution according to dynamic power boundary variations.
Figure 3 further shows the operating states of the two typical DCs from the perspective of constraint utilization. In this paper, power constraint utilization is divided into four categories: relaxed state (≤
), moderate state (80–
), near-constraint state (90–
), and violation state (>
).
Figure 3 displays only the first three non-violation states because no violation state occurs during the scheduling period. Specifically, the maximum constraint utilization of DC 0 is 99.88%, and that of DC 1 is 99.97%; both values are close to but do not exceed the dynamic power upper bounds.
The above results demonstrate that the proposed MFB–MFEACO framework can maintain power constraint feasibility in typical constrained DCs, and can keep power utilization close to the constraint boundary in some periods. This provides the premise for the subsequent comparative analysis of relative energy increase, SLA violations, and the number of migrations: all subsequent performance comparisons are conducted under the condition that dynamic power constraints are satisfied, rather than by obtaining lower energy consumption or fewer migrations at the cost of violating power upper bounds.
4.2.2. Performance Comparison of Different VM Selection and Placement Strategy Combinations
On the basis of verifying the feasibility under dynamic power constraints, this paper further compares the comprehensive scheduling performance of different VM selection and placement strategy combinations. This group of experiments changes both the VM selection algorithm and the VM placement algorithm, and is used to evaluate the impact of different two-stage scheduling combinations on relative energy increase, the number of SLA violations, and the number of VM migrations.
Figure 4 and
Figure 5 present the comparison results on the Google dataset and the Alibaba dataset, respectively. The relative energy increase is normalized with respect to the lowest energy consumption result within the corresponding dataset, so that the relative differences among different algorithms can be observed more clearly.
As shown in
Figure 4, under the relatively stable workload scenario corresponding to the Google dataset, different selection–placement combinations show obvious differences in the number of SLA violations and the number of VM migrations. Host-utilization-driven placement strategies represented by MHU produce relatively high numbers of SLA violations and migrations in multiple combinations, indicating that placement based solely on host utilization is difficult to fully adapt to the multi-objective scheduling requirements under dynamic power constraints. By contrast, MFEACO-related combinations generally maintain lower SLA violations and fewer migrations, showing that jointly considering energy consumption, load balancing, constraint boundaries, and historical SLA states in the placement stage helps improve the stability of scheduling results.
Further observation of the VM selection strategies shows that, compared with MC and MU, MFB-related combinations are more stable in most cases in terms of SLA violations and VM migrations. This indicates that MFB does not simply select VMs with the highest or lowest resource occupation. Instead, it jointly screens migration objects according to the power warning line trend, resource warning line trend, and SLA violation degree, thereby improving the quality of the candidate set for the subsequent placement stage. It should be noted that different selection strategies still show certain fluctuations in the single metric of relative energy increase. Therefore, the advantage of MFB is mainly reflected in suppressing service quality loss and controlling migration overhead. On the Google dataset, MFB–MFEACO maintains relatively low levels of both SLA violations and migrations, indicating good synergy between the trend-aware selection mechanism and the multi-factor equilibrium placement mechanism.
As shown in
Figure 5, under the highly fluctuating workload scenario corresponding to the Alibaba dataset, the performance differences among different algorithm combinations become more obvious. Since the Alibaba workload has stronger time-varying and bursty characteristics, the scheduling algorithms need to make trade-offs between more frequent workload changes and tighter power constraints. The experimental results show that MHU-related combinations still tend to produce relatively high numbers of SLA violations and migrations, indicating that placement based only on host utilization lacks robustness under complex workload fluctuations. MPEI- and MPCHP-related combinations can control the relative energy increase to some extent, but still show insufficient trade-off performance in terms of SLA violations or the number of migrations.
By contrast, MFB–MFEACO still maintains relatively low relative energy increase, SLA violations, and VM migrations on the Alibaba dataset. This result indicates that the MFB stage can screen more reasonable migration objects according to dynamic constraint variations, avoiding blind migration or delayed migration. Meanwhile, the MFEACO stage can perform multi-factor equilibrium search among candidate DCs, avoiding placement decisions that are overly biased toward a single energy consumption objective or a single resource utilization objective. Therefore, the proposed two-stage framework still shows good adaptability in scenarios with stronger workload fluctuations.
The experimental results on both Google and Alibaba datasets show that the advantage of the proposed MFB–MFEACO framework does not come from a single stage alone, but from the synergy between VM selection and VM placement. MFB improves the effectiveness of the migration candidate set through the trend-aware mechanism, while MFEACO improves the quality of target DC selection through multi-factor equilibrium search. Compared with traditional heuristic combinations, the proposed two-stage combination achieves more stable comprehensive performance in terms of relative energy increase, SLA violation suppression, and migration overhead control while satisfying dynamic power constraints.
4.2.3. Placement Strategy Comparison Under Fixed MFB
The previous subsection verifies the overall effectiveness of the MFB–MFEACO framework from the perspective of algorithm combinations. To further distinguish the influence of the VM selection stage and the VM placement stage on the experimental results, this subsection fixes MFB as the VM selection strategy, changes only the VM placement algorithm, and compares the scheduling results of five placement strategies, namely MPEI, MPCHP, MHU, PC-GA, and MFEACO. Through this controlled-variable setting, the role of the MFEACO placement mechanism under dynamic power constraints can be analyzed more directly.
Figure 6 shows the relative energy increase, the number of SLA violations, and the number of VM migrations of different placement algorithms on the Google and Alibaba datasets under the fixed MFB selection strategy.
On the Google dataset, the relative energy increase, number of SLA violations, and number of migrations of MFB–MFEACO are 0.207%, , and 197, respectively. Compared with MFB–PC-GA, MFB–MFEACO reduces the relative energy increase, the number of SLA violations, and the number of migrations by approximately 17.2%, 10.7%, and 10.5%, respectively. This indicates that, under a relatively stable workload scenario, MFEACO does not reduce energy consumption simply by increasing the number of migrations. Instead, it controls service quality loss and migration overhead while reducing the energy increase.
Compared with traditional heuristic placement algorithms, MFB–MFEACO also shows better comprehensive performance on the Google dataset. MPEI pays more attention to the energy increment after migration, so its energy metric is relatively low, but it is inferior to MFEACO in terms of SLA violations and the number of migrations. MPCHP and MHU are biased toward the minimum-power host and host utilization balancing, respectively. However, such local criteria are difficult to simultaneously characterize the relationships among power constraints, load balancing, and historical SLA states. By contrast, MFEACO comprehensively considers load balancing, power constraint margin, warning-line distance, and SLA violation differences through the multi-factor pheromone update mechanism, thereby forming a more stable trade-off among multiple metrics.
On the Alibaba dataset, the relative energy increase, number of SLA violations, and number of migrations of MFB–MFEACO are 0.039%, , and 297, respectively. Compared with MFB–PC-GA, MFB–MFEACO reduces the relative energy increase from 0.083% to 0.039%, the number of SLA violations from to , and the number of migrations from 312 to 297. This result shows that, in a scenario with stronger workload fluctuations, MFEACO can still maintain a lower energy increase than PC-GA, while achieving certain improvements in SLA violations and the number of migrations.
It should be noted that, on the Alibaba dataset, MFB–MFEACO is not absolutely optimal in every single metric. For example, MFB–MPEI achieves a slightly lower number of SLA violations, and MFB–MPCHP has a slightly smaller number of migrations. However, MFB–MFEACO obtains the lowest relative energy increase, while keeping the numbers of SLA violations and migrations at relatively low levels. Compared with MFB–MHU, MFB–MFEACO reduces the number of SLA violations and the number of migrations by approximately 72.6% and 66.1%, respectively. This indicates that, under highly fluctuating workloads and stronger dynamic power constraints, the main advantage of MFEACO lies in its comprehensive multi-objective trade-off capability rather than extreme optimization of a single metric.
In summary, under the fixed MFB selection strategy, MFEACO exhibits more stable comprehensive scheduling performance than traditional heuristic placement strategies and the PC-GA metaheuristic placement strategy. This result further demonstrates that the multi-factor equilibrium pheromone update mechanism in MFEACO can improve the quality of VM placement decisions, enabling the scheduling results to maintain a good balance among energy consumption control, SLA violation suppression, and migration overhead control.
4.2.4. Multi-Objective Scheduling Trade-Off Analysis
The preceding experiments compare different placement algorithms in terms of three metrics: relative energy increase, the number of SLA violations, and the number of VM migrations. However, these three metrics have different dimensions and numerical ranges, making it difficult to directly judge the comprehensive performance of algorithms in multi-objective scenarios according to raw values. To further analyze the trade-off relationships among multiple objectives for different placement algorithms, this paper normalizes each performance metric under the fixed MFB selection strategy and draws multi-objective performance heatmaps.
For each dataset and each evaluation metric, this paper adopts the following normalization method:
where
denotes the original result of algorithm
a on metric
m,
denotes the set of placement algorithms involved in the comparison, and
denotes the normalized metric value. Since the relative energy increase, the number of SLA violations, and the number of VM migrations considered in this paper are all cost-type metrics, a smaller normalized value indicates better performance on the corresponding metric.
Figure 7 shows the multi-objective performance heatmaps of different placement algorithms on the Google and Alibaba datasets under the fixed MFB selection strategy.
Figure 7a corresponds to the Google dataset, and
Figure 7b corresponds to the Alibaba dataset. The colors represent the normalized cost metrics, where lighter colors indicate better performance, and the values in the cells are the original results of the corresponding metrics.
As shown in
Figure 7, MFEACO does not show obvious deterioration in any metric on either dataset, and can generally maintain a good trade-off among relative energy increase, the number of SLA violations, and the number of migrations. By contrast, heuristic methods such as MPEI, MPCHP, and MHU usually show advantages only in some individual metrics. Although PC-GA performs relatively evenly, its comprehensive trade-off effect is still weaker than that of MFEACO. This result indicates that the proposed MFEACO placement strategy can improve placement stability under dynamic power constraints through multi-factor equilibrium search.
4.2.5. Computational Efficiency and Real-Time Feasibility Analysis
In addition to performance metrics such as energy consumption, the number of SLA violations, and the number of migrations, DC load scheduling under dynamic power constraints also needs to consider the computational efficiency of the algorithm, since the scheduling algorithm must complete migration decisions within a limited control period. Therefore, this subsection first analyzes the time and space complexity of the three core algorithms proposed in this paper, and then further records the actual execution time and convergence behavior of the MFEACO algorithm over the 24 h simulation period to verify its feasibility for real-time or near-real-time scheduling.
Let N denote the total number of VMs in the system, K denote the number of migration candidate VMs after MFB screening, C denote the number of candidate target DCs, R denote the number of resource types, and I denote the maximum number of MFEACO iterations. This paper considers four types of resources, namely CPU, memory, disk I/O, and network I/O. Therefore, and can be regarded as a constant. In general, only some VMs in power-constrained or resource-stressed DCs enter the migration candidate set. Therefore, K is usually much smaller than the total number of VMs N.
For Algorithm 1, the MFB candidate VM screening algorithm mainly scores candidate VMs in power-constrained or resource-stressed DCs. For each candidate VM, the algorithm needs to calculate the SLA violation degree, power warning line trend, resource warning line trend, VM power consumption contribution, and comprehensive migration priority score. The resource-related terms need to traverse R resource dimensions. Therefore, the time complexity of Algorithm 1 is . Since in this paper, the complexity can be simplified to . Its space complexity mainly comes from storing the candidate VM set and scoring results, and is therefore .
For Algorithm 2, the RRW VM selection mechanism first calculates the expectation value of each candidate VM in the feasible VM set, then calculates the normalized selection probability by combining the pheromone concentration, and finally completes roulette-wheel selection through cumulative probability. Since the denominator of probability normalization only needs to be calculated once in advance and can be reused in subsequent probability calculations, the time complexity of Algorithm 2 is , which can be simplified to . If the expectation value and selection probability of each VM are explicitly stored, the space complexity is .
For Algorithm 3, the MFEACO VM placement algorithm needs to perform iterative ant colony search among multiple candidate target DCs. In each iteration, the algorithm traverses the candidate target DCs and selects feasible VMs from the migration candidate set for placement based on the RRW mechanism. As the placement process proceeds, the number of unassigned VMs gradually decreases. In the worst case, each candidate DC may scan and check the feasibility of the migration candidate set. Therefore, the time complexity of a single iteration can be expressed as . Considering the maximum number of iterations I, the overall time complexity of Algorithm 3 is . Since R is a fixed constant, this complexity can be simplified to . The space complexity of Algorithm 3 is mainly determined by the DC pheromone matrix and the temporary placement mapping, and is therefore .
Table 2 summarizes the asymptotic time complexity of the three algorithms. It can be seen that Algorithms 1 and 2 both have linear complexity, and their main computational overhead increases with the number of migration candidate VMs. Algorithm 3 has relatively higher complexity because this stage requires iterative combinatorial search between candidate VMs and candidate DCs. However, unlike global re-placement of all
N VMs, the proposed two-stage framework restricts the search objects to the
K migration candidate VMs screened by MFB, thereby avoiding exponential combinatorial search in the full-scale placement problem. Therefore, the computational advantage of the proposed framework does not lie in the lowest complexity of a single MFEACO search step, but in transforming the original large-scale scheduling problem into a smaller candidate-set optimization problem through the candidate screening mechanism.
On the basis of the theoretical complexity analysis, this paper further records the actual execution time and convergence behavior of the MFEACO algorithm over the 24 h simulation period. Since the experiment adopts 5 min as one scheduling interval, each dataset contains 288 scheduling decision moments. The runtime statistics only include the algorithm scheduling decision process itself, excluding additional overheads such as data reading, result saving, file I/O, and figure drawing. In this paper, the number of convergence iterations is defined as the first iteration number at which the current best placement objective value shows no improvement for five consecutive iterations. If this condition is not satisfied within the maximum number of iterations I, then I is taken as the number of convergence iterations for that scheduling interval.
As shown in
Table 3, on the Google Cluster dataset, the average execution time of the MFEACO algorithm is 1.26 s, and the maximum execution time is 2.91 s. On the Alibaba Cluster dataset, the average execution time is 1.38 s, and the maximum execution time is 3.16 s. These execution times are significantly lower than the 300 s scheduling interval adopted in this simulation, indicating that the proposed MFEACO placement strategy can complete the scheduling decision before the next power constraint variation moment arrives.
Further observation of the convergence iterations shows that MFEACO can reach a stable solution within a relatively small number of iterations on both datasets. Specifically, the average and maximum numbers of convergence iterations on the Google Cluster dataset are 23.4 and 41, respectively, while those on the Alibaba Cluster dataset are 25.1 and 44, respectively. The convergence iterations on the Alibaba dataset are slightly higher than those on the Google dataset, mainly because the Alibaba workload fluctuates more strongly and the multi-objective relationships vary more significantly. Nevertheless, the maximum execution time on both datasets remains within the second-level range, which is far below the 5 min scheduling period.
In summary, the proposed two-stage framework first compresses the full-scale VM scheduling problem into a placement optimization problem over the candidate migration VM set through the MFB screening mechanism, and then completes multi-factor equilibrium search within a smaller search space through MFEACO. Both the theoretical complexity analysis and the actual runtime results demonstrate that the proposed method can satisfy the real-time scheduling requirements under dynamic power constraints at the current experimental scale and scheduling period.