Вы находитесь на странице: 1из 6

Proceedings of 4th RIT Post Graduates Conference (RIT PG Con-18)

NOVATEUR PUBLICATIONS
JournalNX- A Multidisciplinary Peer Reviewed Journal (ISSN No:2581-4230)
April, 13th, 2018
A FRAMEWORK AND ALGORITHMS FOR ENERGY EFFICIENT CONTAINER
CONSOLIDATION IN CLOUD DATA CENTERS

Mr. Mahabaleshwar M. Mundashi Prof. S. R. Poojara


M. Tech Student Assistant Professor
Dept. of Computer science and Engineering. Dept. of Computer science and Engineering.
Rajarambapu Institute of Technology, Sakhrale, India Rajarambapu Institute of Technology, Sakhrale, India
mmmundashi555@gmail.com shivananda.poojara@ritindia.edu

Abstract: which hold everything you need to run: code, system


Now a day’s utilization of power in cloud data centers is very libraries, system tools, settings. The containerized software is
large. Minimization of power consumption in data centers is major available for Linux and Windows based apps and runs the same
challenge. Cloud computing uses a network of remote servers regardless of the environment. Containers running on the host
which are hosted on the Internet to process, manage, and store
data rather than a local server. Containers in cloud is nothing but
machine share the kernel of host’s operating system; it starts
an image which is a lightweight, software package which executes immediately and uses less compute resources and RAM.
independently which hold everything you need to run: code, Images are created from the layers of the file system and share
system libraries, system tools, settings. Using container common files. This minimizes disk usage and image uploading
consolidation, containers are migrated to number of hosts. In is much faster. [1][2]
Container overbooking, allocate some percentage of workload to Consolidation strategy combines the containers which are
any resources. In this scenario hosts having CPU utilization and marked as overloaded. This technique is used for minimization
power consumption less than 70% or more than 80% are of energy utilization in cloud data centers, containers are
considered as underloaded or overloaded. In this paper, focus is migrated on number of hosts which are having smaller support
on the performance of two algorithms named container
of ContainerCloudSim framework.
overbooking and initial placement of containers and compare the
results with scheduling algorithms named FirstFit, MostFull, This paper focuses on container overbooking and container
Random and LeastFull. We will combine the both algorithm and placement policy algorithms. Container overbooking algorithm
create the algorithm which improves the results with reduced the first check whether the container is in overbooked or what then
power consumption in data center and resource utilization. if it is overbooking condition then that container needs to
migrated to another host. For that it will moved to container
Keywords: Cloud, energy consumption, cloud data centers, migration list. In another algorithm container placement policy
Container consolidation, overbooking uses three algorithms FirstFit, MostFull and Random algorithm.
Based on the results and performance evaluation of above
I. INTRODUCTION designed algorithms we are trying to design such an algorithm
which improves the results of algorithm and reduces the energy
Cloud computing is also known as “the cloud”, it uses consumption in data centers with resource utilization.
remote servers which are hosted on internet for storage, Work is carried out in following format; Section 2
manage, and processing of data that are delivered on-demand elaborates previous work done and technique used for that work
on a pay-for-use basis. Users work remotely using cloud by researchers in CloudSim. Section 3 gives brief introduction
computing. The resources retrieved from the cloud are through about ContainerCloudSim, need of simulation and its
web based tool and applications. Cloud computing gives taxonomy. In section 4 details working about proposed research
several benefits for business users and clients. regarding the Container overbooking, consolidation, container
 Self-service provisioning: End users can set up and launch placement policy in Cloud Data Centers by using
application services in cloud environment and use those ContainerCloudSim framework and algorithms and also
resources on demand for any type of workload. This put an mathematical model for power consumption in data centers are
end to the conventional requirement for IT administrators to stated. Section 5 represents discussion about experiment setup
supply and manage compute resources. and results. Chapter 6 outlines the conclusions of proposed
 Elasticity: There will be increase in computing needs and study.
also decrease in the needs therefore companies can scale up
and down as per demand. It removes the demand of huge
expenditure in local infrastructure which may or may not II. RELATEDWORK
remain active. In paper [1], Claus Pahl et al. give an introduction to
 Pay for use: Users use those resources for which they are Virtualization and need for the Containerization. It has been
paid and workloads they use. [4] discussed that to manage and orchestrate applications PaaS
The container is nothing but an image which is a cloud service can use containers. Overall the experiment shows
lightweight, software package which executes independently about container containerization technologies and how
applications can be deployed and run on PaaS platform.
126 | P a g e
Proceedings of 4th RIT Post Graduates Conference (RIT PG Con-18)
NOVATEUR PUBLICATIONS
JournalNX- A Multidisciplinary Peer Reviewed Journal (ISSN No:2581-4230)
April, 13th, 2018
In paper [2], Sareh Fotuhi et al. author gives the brief components: power management, clustering and workload
information about ContainerCloudSim. Container is having prediction.
various advantages over the use of virtual machine. In paper [12], Wang Long, Lan Yuqing and Xia Qingxin et
ContainerCloudSim is a framework or tool which facilitates al states that simulation will reduce the effort to configure
containerized cloud computing environments simulation and testing environment and avoids the spending time. In this paper
modeling support for cloud data center. In this paper author had author uses CloudSim framework for simulation provides
developed simulation architecture and apply various algorithms simulation, power to manage services and to model the cloud
on containerized cloud data center and executed it as an infrastructure. It also states VM allocation policy, VM selection
extension of CloudSim. policy.
In paper [3], Piraghaj et al. carried out CloudSim In paper [13], Anton Beloglazov et al. says that cloud data
architecture and various algorithms are applied using CloudSim centers consume huge amount of electrical power which may
for minimization of energy utilization in cloud data center with results in high operational cost and carbon dioxide emission.
required Quality of Service (QoS). This paper carried out the The objective of author is minimize energy consumption by
whole information and related algorithms for simulation of migrating the VMs on another host and turn off idle nodes in
containers, container consolidation techniques. The objective of cloud data center by providing required quality of service to the
authors is to address the betterment in the utilization of users.
resource on server and virtual machine. In paper [14], Kantarci, Burak, H. Mouftah covers the
In paper [5], Piraghaj et al. told significant problems that energy efficiency in cloud data center which contains many
cloud providers face for reducing total energy utilization in aspects such as storage and network related power
cloud data centers by using various algorithms and CloudSim consumption. For energy efficiency in cloud computing author
tool or framework. The main focus of author is improving proposes various aspects like processing, storage and power
energy efficiency of servers by using the CloudSim framework. consumption network etc.
This paper introduces about CaaS Service and also impact of In paper [15], Berl, Andreas, et al. said that efficiency of
container overbooking, container migration etc. energy is essential for future information and communication
In paper [6], Amir Vahid Dastjerdi et al. states technologies. In this paper author focuses on efficient energy
classification of various resource management techniques for scheduling in multiprocessor and grid system, minimization of
energy efficiency. Author says that energy utilization in cloud energy in clusters of servers and also impact of energy saving
data centers not only affects the overall cost but also it strategies for management of integrated system.
increases the environmental problem as carbon dioxide In paper [16], Qouneh, Amer, Ming Liu, and Tao Li., states
emission. that energy utilization and performance are two main
In paper [7], Awada et al. author proposed that energy challenges in cloud computing data centers. To decrease energy
consumption becoming key issue for the operation and consumption and maintain performance author uses two
maintenance of cloud datacenters; cloud computing providers techniques that is, take power from co-located multithreaded
are becoming deeply concerned. In this paper, author presents virtual machines (VMs) and distribute it to VMs and
formulation and solution for Green Cloud Environments to compensate multi-threaded VMs and re-boost their
reduce environmental impact and energy consumption by performance.
examining static and dynamic portions of cloud components In paper [17], Park, KyoungSoo, and Vivek S. Pai., says
under new models. that CoMon is an evolving, mostly-scalable monitoring system
In paper [9], M. Khoshkholghi et. al. states that cloud data for PlanetLab. In this paper author designs what kinds of data
centers can utilize huge amount of energy which contributes to are gathered in PlanetLab.
high operational cost and emission of carbon dioxide. To In paper [18], Kulseitova, Aruzhan, and Ang Tan Fong.,
reduce the resource utilization and reduction of energy proposed that there is need for applying some energy efficiency
consumption author proposes a technique dynamic techniques in cloud data centers. Thus author present a recent
consolidation of VM using migration but VM consolidation research in cloud data centers and gives taxonomy of work.
may decreases the performance. In this paper different
algorithms are proposed for consolidation of VM dynamically.
In paper [10], Buyya Rajkumar et al. proposed the III. Definition and Model
CloudSim framework for simulation of data centers in cloud A. ContainerCloudSim:
computing environments. CloudSim is used to simplify the
application deployment, how resources are allocated and for ContainerCloudSim is an extension of CloudSim simulator
scheduling algorithms. CloudSim supports one or more virtual framework. ContainerCloudSim is designed for migration of
machines for modeling and simulation. containers from source host to destination host based on the
power consumption in data centers. ContainerCloudSim uses
In paper [11], Mehiar Dabbagh, Bechir Hamdaoui et al.
techniques like container overbooking, container placement,
proposed a framework that is integrated energy-aware resource
provisioning for energy consumption in cloud data centers. It scheduling and consolidation of containers. Container as a
Service’s cloud data center which contains virtual machines,
provides physical machines to cloud data centers for providing
hosts, containers and applications with their workloads.
services to their clients. Framework contains three main
ContainerCloudSim is divided into two parts that is simulated
elements and simulated services for implementation. Aim of
127 | P a g e
Proceedings of 4th RIT Post Graduates Conference (RIT PG Con-18)
NOVATEUR PUBLICATIONS
JournalNX- A Multidisciplinary Peer Reviewed Journal (ISSN No:2581-4230)
April, 13th, 2018
this technique is to provide energy efficient cloud data centers or overloaded. If the host is established underloaded then host
by migrating container from source host to destination host by detector sends host ID and containers ID which are running on
applying some algorithms. [2][8] that host to consolidation module. And if it established
overloaded then detector send request to the Container selector
B. Need of simulation in Cloud Datacenter: component for activating component.
Container Selector – This component is activated when host in
Simulation is widely used technology used frequently to cloud data center is established as over-loaded. This process of
examine complex problems, most simulation-based selection of containers is goes on unless host status is available
experiments consider simplified modeling of cloud computing in between underloaded and overloaded condition.
and application environments. CloudSim is a library for
simulating cloud scenarios. It provides essential classes for Container Migration List (CML) – This component stores the
describing data centers, compute resources, virtual machines, containers information which are selected by Container
applications, users, and management strategies for various parts Selector component and then submit that information to
of the system, such as planning and provisioning. consolidation module.
Simulation provides a safe way to test and explore  Consolidation Module
different scenarios. Simulation is used for improvement in Over-loaded Host list – Task of this component is to store
performance and energy efficient cloud data center. It is used to over-loaded host.
know in which ways a part could fail and what loads it can
Over-loaded Destination Selector – It takes input as
oppose which is helpful for designers and engineers to
overloaded host list, list of containers migration and active host
understand conditions. Simulation is used in many conditions
list. Then it migrates the over-loaded host to destination host.
such as, simulation for performance optimization, testing,
scientific experiments etc. The main advantage of simulation is Destination list – This component contains data having
it provides users feedback practically while designing real- container ID with host and VM ID both are received from the
world systems. above component.
VM Creator – The most important consideration of this
C. Taxonomy of ContainerCloudSim component is to create large number of VM’s in underloaded
host and assigns containers to that VM’s. If any container is
remaining, then it selects host randomly from the idle host and
creates VM on that host.
Underloaded host list – The status of the host that are found to
be under-loaded are stored in this component.
Underloaded Destination Selector – The mechanism of this
task is to find the best destination host for containers from
underloaded hosts by using host selection algorithm. This
component sends the containers to the destination which is
decided by overloaded destination selector to VM-Host
Migration Component along with host ID.
VM-Host Migration Manager – This is used for triggering the
migration of saved containers ID together with selected
destination.
Under-loaded Host Deactivator – After migrating all the
containers this component switches off under-loaded hosts.

IV. EXPERIMENTAL SETUP

To deploy ContainerCloudSim on Eclipse IDE we need to


download Simulator which is .zip file of CloudSim-4.0 from
GitHub and also download eclipse. Deploy the CloudSim-4.0
by extracting the .zip file and import it in Eclipse.
Fig. 3.1 System Architecture and Processes 1. Container overbooking
Figure 3.1 [5] represents the ContainerCloudSim system Overbooking manages the trade-off between maximizing
architecture and processes. The main components of resource utilization and minimizing performance degradation
ContainerCloudSim are and SLA violation. [2] By allocating some percentage of
 Host Status Module workload to any resources ContainerCloudSim is capable of
Host Overload/ Underload Detector – It is widely used container overbooking. In this scenario hosts having CPU
mechanism. In this module host is established as underloaded
128 | P a g e
Proceedings of 4th RIT Post Graduates Conference (RIT PG Con-18)
NOVATEUR PUBLICATIONS
JournalNX- A Multidisciplinary Peer Reviewed Journal (ISSN No:2581-4230)
April, 13th, 2018
utilization and power consumption less than 70% or more than The consolidation algorithms analyze the energy efficiency
80% are considered as overloaded or underloaded. based on the data center energy consumption obtained from
Equation 1.
Algorithm: Container Overbooking
Input: list of container in server (SCL) b) SLA Metric –
Output: selected container
Step 1 begin with input while SLA = (4)
Step 2 check for host overloaded
If host status marked as overloaded then go to step 3
Else check host status
either overloaded or underloaded A Service-Level Agreement is an agreement between two or
Step 3 Apply container selection algorithm more parties, where one is the customer and the others are
to get container from container selection list(SCL) service providers. This can be a legally binding formal or an
Then add selected container to the list informal "contract". Service-Level Agreement is a part of cloud
computing to ensure maximum availability of services for
2. Container consolidation customer. With violation of SLA, the provider has to pay
This technique is used for reducing energy consumption in penalties.
data centers. Using consolidation technique, containers are c) Problem Formulation – For minimizing power utilization
migrated to number of hosts which are smaller with support of of data center with M containers, N VM’s and K servers, we
ContainerCloudSim framework. [5] Migration of containers is formulate the problem as follows:
necessary because host is either overloaded or under-loaded. min(Pdc(t) = (5)
Here two algorithms are used “Most Correlated” and “Max
Usuage” for container selection. Max usage algorithm select the
containers which has most CPU utilization while most (6)
correlated algorithm chooses containers CPU workload is most
correlated with host. [2] ,
Finally at last stage three bin packing algorithms for host
(7)
selection are applied: FirstFit Host Selection, Random Host
Selection and Least Full Host Selection.

3. Container placement policy


Here we study different container to VM mapping algorithms
to see how ContainerCloudSim is used to carry out systematic , (8)
inquiry of algorithms on container placement for total power
consumption, number of container migrations in data center and ,
resulting SLA violations. FirstFit, MostFull and Random are
three different placement policies are evaluated. [5] , (9)
Symbols Description
 Mathematical model for power consumption in Cloud Pdc(t) Power Consumption of the data center at time t
Datacenter [5] Pi(t) Power Consumption of server i at time t
Ns Number of servers
a) Data Center Power Model - Energy efficiency of the data PiIdle Idle power consumption of server i
center at time t is calculated as: Pimax Maximum power consumption of server i
Ui,t CPU utilization percentage of server i at time t
Pdc(t) = (1) Nvm Number of vms
Nc Number of containers
For each server i, utilization of CPU (Ui,t) is equal to Uc(k,j,i)(t) CPU utilization of container k on (VM j, server i)
at time t
Nv Number of SLA Violations
tp The time t at which the violation p happened
Vm j i VM j on server i
CPUr (vm CPU amount requested by VM j on server i at
and the power consumption of the server is estimated using j i, tp) time tp
Equation 2. CPUa (vm CPU amount allocated to VM j at time t p
j i, tp)
Pi (t) = Piidle+ (Pi max- Piidle)* Ui,t NVM> 0 (2) S(i,r) Server i Capacity for resource r
Uvm j,i (t) CPU utilization of VM j on server i at time t
0 NVM= 0 (3) vm(j,i,r) The capacity of resource r of VM j on server i
C(k,j,i,r) The resource r capacity of container k on (VM j,
server i)
Table: Symbol table [5]

129 | P a g e
Proceedings of 4th RIT Post Graduates Conference (RIT PG Con-18)
NOVATEUR PUBLICATIONS
JournalNX- A Multidisciplinary Peer Reviewed Journal (ISSN No:2581-4230)
April, 13th, 2018
V. RESULT AND DISCUSSION Based on the figure 3 and figure 4 we can say that FirstFit
algorithm for container overbooking performs better as
We evaluate two algorithms with two methods. We are compare to MostFull algorithm. The output of the simulation
used ContainerCloudSim to conduct simulation with different shows that number of successfully allocated containers
parameter such as overbooking factor, container migration rate, decreases as percentage of energy consumption increases. The
execution time, container placement etc., volatility of workload is the key factor that affects the
percentage of value. FirstFit algorithm results in less number of
migration and energy consumption and thus should be preferred
A. Container Overbooking
policy to be utilized as the goal of provider is to reduce energy
By allocating some percentage of workload to any
consumption.
resources ContainerCloudSim is capable of container
overbooking. In this scenario hosts having CPU utilization and
power consumption less than 70% or more than 80% are
considered as overloaded or underloaded.

B. Container Placement Policy


Here we study different container to VM mapping
algorithms to see how ContainerCloudSim is used to carry out
systematic inquiry of algorithms on container placement for
total power consumption, number of container migrations in
data center and resulting SLA violations. FirstFit, MostFull and
Random are three different placement policies are evaluated.

 Scheduling Algorithms
FirstFit – In the first fit, containers are allocated to virtual
machines which are first sufficient from the top of Main
Memory. In FirstFit algorithm, available host is opened when it Fig. 5.2 Container Overbooking (MostFull)
receives the first container. When all the containers in a host
are removed from source host, the host is closed. FirstFit
algorithm results in less number of migrations and energy
consumption.

MostFull – In the most full, containers are allocated to virtual


machines which are most correlated with host. MostFull
algorithm packs container on most full virtual machine in terms
of CPU utilization, which results in higher migration rate.

Random – It typically uses random bits as an input in the hope


of achieving good performance in the average case over all
possible choices of random bits. In random algorithm,
Fig. 5.3 Container Initial Placement (FirstFit)
containers are allocated to virtual machines randomly.

Fig. 5.1 Container Overbooking (FirstFit)


Fig. 5.4 Container Initial Placement (MostFull)
130 | P a g e
Proceedings of 4th RIT Post Graduates Conference (RIT PG Con-18)
NOVATEUR PUBLICATIONS
JournalNX- A Multidisciplinary Peer Reviewed Journal (ISSN No:2581-4230)
April, 13th, 2018
Figure 5.3 and 5.4 states that how containers which are in [12] Long, Wang, Lan Yuqing, and Xia Qingxin. "Using cloudsim to model
and simulate cloud computing environment." Computational Intelligence and
overbooking condition are initially placed onto another host. Security (CIS), 9th International Conference on. IEEE, 2013.
Based on the figure we can say that container migration rate for [13] Beloglazov, Anton, and Rajkumar Buyya. "Energy efficient allocation of
FirstFit algorithm is less than MostFull algorithm. The most virtual machines in cloud data centers." Cluster, Cloud and Grid Computing
full container placement algorithm packs containers on most (CCGrid), 10th IEEE/ACM International Conference on. IEEE, 2010.
[14] Kantarci, Burak, and H. Mouftah. "Energy-Efficiency in Cloud Data
full most full virtual machine in terms of CPU utilization, Centers." Comm. Infrastructures for Cloud Computing 241-263, 2013.
results in higher container migration rate. Consequently it [15] Berl, Andreas, et al. "Energy-efficient cloud computing." The computer
results in higher violation and energy consumption. journal 53.7, 1045-1051, 2010
[16] Qouneh, Amer, Ming Liu, and Tao Li. "Optimization of resource
allocation and energy efficiency in heterogeneous cloud data centers." Parallel
VI. CONCLUSION Processing (ICPP), 44th International Conference on. IEEE, 2015.
[17] Park, KyoungSoo, and Vivek S. Pai. "CoMon: a mostly-scalable
monitoring system for PlanetLab." ACM SIGOPS Operating Systems Review
ContainerCloudSim is a framework which used to enquire 40.1, 65-74 2006.
the execution of container placement algorithms on number of [18] Kulseitova, Aruzhan, and Ang Tan Fong. "A survey of energy-efficient
container migrations, data center total power consumption and techniques in cloud data centers." ICT for Smart Society (ICISS), International
SLA violations and for implementing energy efficiency Conference on. IEEE, 2013.
techniques. In this work we design the container overbooking
for FirstFit and MostFull container allocation policy and
Container initial placement policy for FirstFit and MostFull.
The work suggests that the designed strategy is helpful for
improving efficiency of energy in cloud data centers. This
algorithm checks the hosts which are over-loaded and store
them into container migration list. Then it checks for hosts
which are free. In the next work we will use container
consolidation technique with the combination of container
overbooking and container placement policies for improvement
in energy efficiency at cloud data centers.

REFERENCES
[1] C. Pahl, "Containerization and the PaaS Cloud", IEEE Cloud Computing,
vol. 2, no. 3, pp. 24-31, 2015.
[2] S. Piraghaj, A. Dastjerdi, R. Calheiros and R. Buyya, "ContainerCloudSim:
An environment for modeling and simulation of containers in cloud data
centers", Software: Practice and Experience, 2016.
[3] Piraghaj, Sareh Fotuhi. "Energy-Efficient Management of Resources in
Container-based Clouds." (2016).
[4] Rajkumar Buyya, Christian Vecchiola, and S. ThamaraiSelvi. "Mastering
Cloud Computing." (2013): 1-1.
[5] Piraghaj, Sareh Fotuhi, et al. "A framework and algorithm for energy
efficient container consolidation in cloud data centers." Data Science and Data
Intensive Systems (DSDIS), International Conference on. IEEE, 2015.
[6] Amir Vahid Dastjerdi, Rodrigo N.Calheiros, and Rajkumar Buyya, A
Survey and Taxonomy of Energy Efficient Resource Management Techniques
in Platform as a Service Cloud, Handbook of Research on End-to-End Cloud
Computing Architecture Design Book, J.Chen, Y.Zhang, and R.Gottschalk
(eds), IGI Global, Pages. 410 - 454. Web. 16 Oct. 2016. doi: 10.4018/978-1-
5225-0759-8.ch017, Hershey, PA, USA, 2017.
[7] Awada, Uchechukwu, Keqiu Li, and Yanming Shen. "Energy consumption
in cloud computing data centers." International Journal of Cloud Computing
and services science 3.3 (2014).
[8] www.cloudbus.org/cloudsim
[9] M. Khoshkholghi, M. Derahman, A. Abdullah, S. Subramaniam and M.
Othman, "Energy-Efficient Algorithms for Dynamic Virtual Machine
Consolidation in Cloud Data Centers", IEEE Access, vol. 5, pp. 10709-10722,
2017.
[10] Buyya, Rajkumar, Rajiv Ranjan, and Rodrigo N. Calheiros. "Modeling and
simulation of scalable Cloud computing environments and the CloudSim
toolkit: Challenges and opportunities." High Performance Computing
Simulation, HPCS' International Conference on. IEEE, 2009.
[11] M. Dabbagh, B. Hamdaoui, M. Guizani and A. Rayes, "Energy-Efficient
Resource Allocation and Provisioning Framework for Cloud Data Centers",
IEEE Transactions on Network and Service Management, vol. 12, no. 3, pp.
377-391, 2015.

131 | P a g e

Вам также может понравиться