Virtual Machine Resource Allocation Optimization in Cloud Computing Based on Multiobjective Genetic Algorithm
Virtual Machine Resource Allocation Optimization in Cloud Computing Based on Multiobjective Genetic Algorithm
Research Article
Virtual Machine Resource Allocation Optimization in Cloud
Computing Based on Multiobjective Genetic Algorithm
1
Department of Computer Science and Technology, Taiyuan University, Taiyuan 030032, China
2
Shanxi Vocational University of Engineering Science and Technology, Taiyuan 030031, China
Received 26 November 2021; Revised 17 January 2022; Accepted 4 February 2022; Published 10 March 2022
Copyright © 2022 Feng Shi and Jingna Lin. This is an open access article distributed under the Creative Commons Attribution
License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is
properly cited.
Cloud computing is an important milestone in the development of distributed computing as a commercial implementation, and it
has good prospects. Infrastructure as a service (IaaS) is an important service mode in cloud computing. It combines massive
resources scattered in different spaces into a unified resource pool by means of virtualization technology, facilitating the unified
management and use of resources. In IaaS mode, all resources are provided in the form of virtual machines (VM). To achieve
efficient resource utilization, reduce users’ costs, and save users’ computing time, VM allocation must be optimized. This paper
proposes a new multiobjective optimization method of dynamic resource allocation for multivirtual machine distribution
stability. Combining the current state and future predicted data of each application load, the cost of virtual machine relocation and
the stability of new virtual machine placement state are considered comprehensively. A multiobjective optimization genetic
algorithm (MOGANS) was designed to solve the problem. The simulation results show that compared with the genetic algorithm
(GA-NN) for energy saving and multivirtual machine redistribution overhead, the virtual machine distribution method obtained
by MOGANS has a longer stability time. Aiming at this shortage, this paper proposes a multiobjective optimization dynamic
resource allocation method (MOGA-C) based on MOEA/D for virtual machine distribution. It is illustrated by experimental
simulation that moGA-D can converge faster and obtain similar multiobjective optimization results at the same calculation scale.
Demand SaaS
Cloud brokering
Infrastructure layer
Cloud providers Cloud providers
Cloud providers Virtual resource pool
technological advantage, but many of its technologies are not of resources on a single virtual machine. It is used to improve
disclosed. At present, scholars mainly study cloud com- the utilization of vm physical resources and meet users’
puting in two ways: one is based on part of the macroscopic computing requirements by dividing physical computing
technical data disclosed by Google and combined with resources [26]. In addition, most algorithms are put forward
traditional parallel computing-based grid computing vir- in specific demand scenarios, without considering various
tualization technology [20]. The other is based on the open uncertainties in practical applications.
source project Hadoop for communication and application From the above analysis, we know that the above
of different ideas and different application environments, methods have studied virtual machine resource allocation
resulting in the development of many different branches of optimization in cloud computing to some extent, but some
technology. Therefore, related research on cloud computing problem still exists. On the other hand, no scholar has
is still in a stage of contention, and the technical system has applied multiobjective genetic algorithm to this field till now,
not yet been formed. so the research here still draws a blank, which has great
As mentioned above, the widespread interest in cloud theoretical research and practical application value.
computing stems from its successful commercial applica- The contributions of this paper are as follows:
tion, so the earliest cloud computing research institutes are
(1) The proposed evolutionary algorithm provides a new
mainly concentrated in several major Western IT technology
solution idea for solving NP problems, and the
companies. However, with the gradual increase of the in-
emergence of multiobjective optimization algorithm
fluence of cloud computing, its many excellent character-
brings a new solution idea for complex multi-
istics make people see its application in other fields such as
objective optimization practical problems.
military scientific research. Cloud computing technology
began to receive attention from various countries and has (2) Because of its good development prospects, the
become an important aspect for countries to compete for the multiobjective optimization problem has become a
commanding heights of future science and technology [2]. research hotspot in the academic world. In this
In China, in recent years, due to the strong support of the paper, MOGANS- and MOEA/D-based multi-
state, as well as the extensive promotion of business plans, objective optimization scheduling schemes are
cloud computing has gradually become a popular research proposed according to the solution idea of multi-
content, has achieved rapid development, and its influence is objective optimization.
also increasing. In 2010, Beijing successfully hosted the This paper consists of five parts. The first and second
world cloud computing conference. Lenovo, Sohu, Baidu, parts give the research status and background. The third part
and other domestic companies have also begun to develop is the MOEA/D-based virtual machine resource allocation in
business based on cloud computing. In addition, various cloud computing. The fourth part shows the experimental
domestic universities began to set up the relevant research results and analysis. The experimental results of this paper
direction and discipline curriculum. Cloud computing re- are introduced, compared, and analyzed with relevant
search revealed a strong momentum, and has great devel- comparison algorithms followed. Finally, the fifth part
opment potential. However, there is still a big gap between summarizes the full paper.
China and western countries, and more investment and
policy planning are needed [21].
Resource management and allocation is a key problem in 3. MOEA/D-Based Virtual Machine Resource
cloud computing. In the IaaS mode, resource allocation is a Allocation in Cloud Computing
virtual machine allocation problem. Virtual machine allo-
cation, like other cloud computing technologies, is in a state 3.1. Conventional Particle Swarm Optimization Algorithm.
of constant discovery. Literature [22] proposed an algorithm Conventional particle swarm optimization (PSO) is an in-
based on cloud agent, which aims to provide virtual machine telligent bionic method, which was jointly proposed by
allocation scheme for physical server. Literature [23] pro- social psychologists Kennedy and Dr. Eberhart in 1995. It
posed an MMS virtual machine allocation algorithm based has become the mainstream intelligent optimization pro-
on min-max and shares features provided by the hypervisor. cessing method at present and has been comprehensively
However, these algorithms do not take into account the applied in the academic and industrial circles. Its optimi-
uncertain factors of demand and the minimization condi- zation performance is mainly reflected in convergence
tions of price. A dynamic integration mechanism based on [27, 28].
constraint programming is proposed in literature [24]. In 2
χ � ���������������
√����� 2 , l � c1 + c2 , l > 4, (1)
literature [25], demand and price factors are considered, but 2 − l − l2 − 4l
response time and other issues are not taken into account.
These algorithms are based on different application sce- where χ is the convergence factor of particle swarm. For the
narios, and have their own characteristics. The existing al- particle in each iteration, the particle changes its velocity and
gorithm, however, is mainly to study the internal allocation position according to the following formula:
4 Computational Intelligence and Neuroscience
vk+1 k k k
(2) means of aggregation method, and the common aggregation
id � vid + χ c1 r1 Fid − Qid + c1 r2 Hgd − Qid ,
methods include Chebyshev method, weighted sum method,
and so on. In this paper, the aggregation function is
Qk+1 k k+1
id � Qid + vid , (3) implemented by Chebyshev:
Minimize:
c[e] [e] [u] [u] [a] [a] (10)
j,i Xj,i + p(D)cj,i Xj,i (D) + cj,i Xj,i (D),
pj ∈P vi ∈V D∈D pj ∈P vi ∈V
Subject to:
(11)
X(u) (e)
j,i (D) ≤ Xj,i , vi ∈ V, pi ∈ P, D ∈ D,
4. Experimental Results and Analysis the maintenance cost of the cloud server into account in the
virtual machine configuration stage, the cost quotation of
4.1. Introduction to Experimental Environment and Data Set. the cloud server is set according to the pricing of Amazon
It includes a control node and four computing nodes [15] EC2 virtual machine, as shown in Table 1.
but due to limited hardware resources, this paper cannot
provide a better cloud environment in the authentication
algorithm, so a data center composed of 17 physical units is 4.2. Experimental Results Analysis. Figure 3 shows the ex-
simulated. P1 serves as the controller node, and the other perimental results of the difference in total revenue between
four compute nodes p2-P5 provide resources for users the algorithm in this chapter and the utility optimization
through virtualization [25]. As the algorithm in this paper algorithm based on non-cooperative game and resource
optimizes the revenue of the cloud service provider and takes reserve calculation method in cloud service providers. As the
6 Computational Intelligence and Neuroscience
time period increases, the total revenue of single bit time is Table 1: Cloud data center parameters.
equal to that of the comparison algorithm. Node CPU (MIPS) CPU cores Memory (GB) Bandwidth (M)
The main reason is that the algorithm makes a reasonable
P1 3000 2 4 100
planning of resources in the virtual machine configuration P2 2000 1 2 100
stage in this chapter, so as to maximize the revenue of cloud P3 1800 2 1 100
services and optimize resource allocation. However, the P4 2700 1 1 100
utility optimization algorithm based on cooperative game P5 2300 2 2 100
cannot guarantee the optimal game. With the increase of
time cycle, both the algorithm in this article and the game-
based utility optimization algorithm maintain good returns 40
under the effect of utility function optimization, while the
1.2 0.9
1.1 0.8
1
0.7
0.9
0.6
0.8
0.7 0.5
0.6 0.4
0.5 0.3
0.4
0.2
0.3
0.1
0.2
1 1.5 2 2.5 3 3.5 4 4.5 5 0
User 1
User 2
User 3
User 4
User 5
User 6
User 7
User 8
User 9
User utility
Our algorithm
Game utility based optimization
Game utility based optimization
Reservation allocation algorithm
Reservation allocation algorithm
Our algorithm
Figure 4: Comparison of unit revenue of different algorithms.
Figure 6: Comparison of utility values of different users under
different algorithms.
0.85
0.8 0.8
0.75
Vm instance usage (%)
0.7
0.7
Computing Resource Usage
0.65 0.6
0.6 0.5
0.55
0.4
0.5
0.45 0.3
0.4
0.2
0.35
1 1.5 2 2.5 3 3.5 4 4.5 5 0.1
User utility 0
30 60 90 120 150 180
Our algorithm
Number of user tasks
Game utility based optimization
Reservation allocation algorithm Random algorithm
Our algorithm
Figure 5: Comparison of VM instance usage.
Figure 7: Comparison of computing resource usage.
by the old and new states, ensuring that the new multivirtual
machine distribution state not only has a long stability time least active physical nodes, and the remaining number of free
but also requires fewer virtual machine migration times physical nodes is the largest, which is about 8 times the
from the current virtual machine distribution state to the number of free physical nodes of MOGANS. This indicates
new virtual machine distribution state. Although GA-N can that the new virtual machine distribution state obtained by
change to a new VM distribution only after a minimum GA-NN is more energy saving, but this energy saving state
number of VM migrations, the new VM distribution can cannot be maintained for a long time. Once the distribution
only maintain stability for a short time. Once the VM state becomes unstable, additional new dynamic resource
distribution becomes unstable, new dynamic resource allocation cost will be added, and the energy saving effect will
configuration requests will be triggered, resulting in a new be greatly reduced.
round of VM migration. Ga-NN takes green calculation into In order to compare the computational overhead be-
account, and the new virtual machine distribution state tween MOGANS algorithm and MOGAD algorithm, the
obtained uses the least active physical nodes, and the experimental data tested in this section are basically the same
remaining number of free physical nodes is the largest, as the parameters as the former experiment, including two
which is about 8 times the number of free physical nodes of variables: population size and population total algebra. The
MOGANS. Ga-NN takes green calculation into account, and values of population size and population total algebra are
the new virtual machine distribution state obtained uses the constantly changed to measure the running time of the
8 Computational Intelligence and Neuroscience
0.8
0.7
0.5
0.4
0.3
0.2
0.1
0
30 60 90 120 150 180
Number of user tasks
Random algorithm
Our algorithm
Figure 8: Comparison of memory resource usage.
2000
1500
Time (s)
1000
500
800
600 e
0 400 siz
3000 2500 t i on
2000 1500 200 ul a
1000 500 op
0 0 ep
Number of executions Th
MOGANS
MOGA-D
Figure 9: Comparison of running time cost between MOAGNS and MOGA-D.
algorithm, respectively. The experimental results are shown MOGANS and MOGA-D algorithm has little difference.
in Figure 9: When the amount of data increases sharply, the time cost of
It can be seen from Figure 9 results that when the MOGA-D algorithm increases little. Therefore, when the
amount of data is small, the execution time cost of amount of data is large, the calculation cost of MOGA-D
Computational Intelligence and Neuroscience 9
algorithm is obviously superior as MOGANS has greatly computing environment,” ACM Transactions on Multimedia
improved the computational performance of the former. Computing, Communications, and Applications, vol. 16, no. 3s,
pp. 1–19, 2020.
5. Conclusions [8] N. Rasouli, R. Razavi, and H. R. Faragardi, “EPBLA: energy-
efficient consolidation of virtual machines using learning
Aiming at the deficiency of some current resource sched- automata in cloud data centers,” Cluster Computing, vol. 23,
uling schemes of energy-saving resource scheduling in the no. 4, pp. 3013–3027, 2020.
current cloud computing environment, this paper proposes [9] V. Bogatyrev and A. Derkach, “Evaluation of a cyber-physical
a multiobjective optimization scheme MOGANS based on computing system with migration of virtual machines during
continuous computing,” Computers, vol. 9, no. 2, p. 42, 2020.
NSGA-II multiobjective optimization.
[10] C. Li, C. Wang, and Y. Luo, “An efficient scheduling opti-
However, MOGANS has insufficient computing per-
mization strategy for improving consistency maintenance in
formance, especially when the amount of data to be cal- edge cloud environment,” The Journal of Supercomputing,
culated increases, the performance of MOGANS is not pp. 1–28, 2020.
satisfactory. After the test of the same amount of compu- [11] M. M. Shahriar Maswood, M. R. Rahman, A. G. Alharbi, and
tation, the energy-saving resource scheduling scheme of the D. Medhi, “A novel strategy to achieve bandwidth cost re-
new opportunistic MOEA/D algorithm, MOGA-D, per- duction and load balancing in a cooperative three-layer fog-
forms well. Compared with MOGANS, the computational cloud computing environment,” IEEE Access, vol. 8,
performance is significantly improved with the same cal- pp. 113737–113750, 2020.
culation scale. The similar multiobjective optimization re- [12] S. Lou, J. He, H. Li et al., “Current knowledge and future
sults can also be obtained. directions for improving s quality and reducing energy
consumption in conservation fields,” Agriculture, vol. 11,
Data Availability no. 7, p. 575, 2021.
[13] S. Wilson and K. Platts, “The role of resource configuration on
The data used to support the findings of this study are mix flexibility requirements,” Production Planning & Control,
available from the corresponding author upon request. vol. 20, no. 8, pp. 769–784, 2009.
[14] A. Khudoyberdiev, S. Ahmad, I. Ullah, and D. Kim, “An
optimization scheme based on fuzzy logic control for efficient
Conflicts of Interest energy consumption in hydroponics environment,” Energies,
The authors declare that they have no conflicts of interest. vol. 13, no. 2, p. 289, 2020.
[15] B. Baron, M. Campista, P. Spathis et al., “Virtualizing ve-
hicular node resources: f,” Vehicular Communications, vol. 4,
Acknowledgments pp. 39–46, 2016.
This study was supported by Shanxi Province Educational [16] S. Rawas, “Energy, network, and application-aware virtual
machine placement model in SDN-enabled large scale cloud
Science “Thirteenth Five-Year Plan” Project (GH-19136) and
data centers,” Multimedia Tools and Applications, vol. 80,
Shanxi Province Higher Education Reform and Innovation
no. 10, pp. 15541–15562, 2021.
Project (J2020380). [17] S. Namasudra, R. Chakraborty, S. Kadry, G. Manogaran, and
B. S. Rawal, “FAST: fast accessing scheme for data trans-
References mission in cloud computing,” Peer-to-Peer Networking and
Applications, vol. 14, no. 4, pp. 2430–2442, 2021.
[1] L. Wang, G. Von Laszewski, A. Younge et al., “Cloud com-
[18] S. Sun, C. Luo, and J. Chen, “A review of natural language
puting: a perspective study,” New Generation Computing,
processing techniques for opinion mining systems,” Infor-
vol. 28, no. 2, pp. 137–146, 2010.
mation Fusion, vol. 36, pp. 10–25, 2017.
[2] H. Shukur, S. Zeebaree, R. Zebari, D. Zeebaree, O. Ahmed,
[19] L. Wieclaw, V. Pasichnyk, and N. Kunanets, “Cloud com-
and A. Salih, “Cloud computing virtualization of resources
puting technologies in “smart city” projects[C]//2017 9th
allocation for distributed systems,” Journal of Applied Science
and Technology Trends, vol. 1, no. 3, pp. 98–105, 2020. IEEE International Conference on intelligent data acquisition
[3] S. Namasudra, “Data access control in the cloud computing and advanced computing systems: technology and applica-
environment for bioinformatics,” International Journal of Ap- tions (IDAACS),” IEEE, vol. 1, pp. 339–342, 2017.
plied Research in Bioinformatics, vol. 11, no. 1, pp. 40–50, 2021. [20] H. Shukur, S. R. M. Zeebaree, and A. Jamil Ahmed, “A state of
[4] K. Gai, J. Guo, L. Zhu, and S. Yu, “Blockchain meets cloud art survey for concurrent computation and clustering of
computing: a survey,” IEEE Communications Surveys & Tu- parallel computing for distributed systems,” Journal of Ap-
torials, vol. 22, no. 3, pp. 2009–2030, 2020. plied Science and Technology Trends, vol. 1, no. 4, pp. 148–154,
[5] H. Hassan, A. I. El-Desouky, A. Ibrahim, E.-S. M. El-Kenawy, 2020.
and R. Arnous, “Enhanced QoS-based model for trust as- [21] A. Kaur, P. Singh, and A. Nayyar, Fog Computing: Building a
sessment in cloud computing environment,” IEEE Access, Road to IoT with Fog Analytics, Springer, Singapore, 2020.
vol. 8, pp. 43752–43763, 2020. [22] M. Masdari, S. S. Nabavi, and V. Ahmadi, “An overview of
[6] Z. S. Ageed, R. K. Ibrahim, and M. A. M. Sadeeq, “Unified virtual machine placement schemes in cloud computing,”
ontology implementation of cloud computing for distributed Journal of Network and Computer Applications, vol. 66,
systems,” Current Journal of Applied Science and Technology, pp. 106–127, 2016.
pp. 82–97, 2020. [23] R. Meier, A. Rigo, and T. R. Gross, “Virtual machine design
[7] S. Namasudra, R. Chakraborty, and A. Majumder, “Securing for parallel dynamic programming languages,” Proceedings of
multimedia by using DNA-based encryption in the cloud the ACM on Programming Languages, vol. 2, pp. 1–25, 2018.
10 Computational Intelligence and Neuroscience