0% found this document useful (0 votes)
3 views

Final Document

The project report discusses a framework for predictive resource allocation in cloud computing, focusing on optimizing resource distribution among multiple tenants with varying requirements. It proposes a radial basis function neural network for translating simulation tasks into specific resource needs and introduces a multi-objective genetic algorithm to enhance resource allocation efficiency. The findings demonstrate the framework's effectiveness in meeting computational demands in a distributed environment.

Uploaded by

arokia.jackson
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Final Document

The project report discusses a framework for predictive resource allocation in cloud computing, focusing on optimizing resource distribution among multiple tenants with varying requirements. It proposes a radial basis function neural network for translating simulation tasks into specific resource needs and introduces a multi-objective genetic algorithm to enhance resource allocation efficiency. The findings demonstrate the framework's effectiveness in meeting computational demands in a distributed environment.

Uploaded by

arokia.jackson
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 48

Predictive Allocation Of Resources

In Cloud Computing

A PROJECT REPORT

Submitted by

JEBIN KUMAR.E (210513104044)


AROKIA JACKSON.A (210513104017)

In partial fulfillment for the award of the degree


Of

BACHELOR OF ENGINEERING

in

COMPUTER SCIENCE AND ENGINEERING

DMI COLLEGE OF ENGINEERING

ANNA UNIVERSITY: CHENNAI 600 025

APRIL 2017
Predictive Allocation Of Resources
In Cloud Computing

A PROJECT REPORT

Submitted by

JEBIN KUMAR.E (210513104044)


AROKIA JACKSON.A (210513104017)

In partial fulfillment for the award of the degree


Of

BACHELOR OF ENGINEERING

in

COMPUTER SCIENCE AND ENGINEERING

DMI COLLEGE OF ENGINEERING

ANNA UNIVERSITY: CHENNAI 600 025

APRIL 2017
ANNA UNIVERSITY: CHENNAI 600025

BONAFIDE CERTIFICATE

Certified that the project report “PREDICTIVE ALLOCATION OF


RESOURCES IN CLOUD COMPUTING” is the bonafide work of

JEBIN KUMAR.E (210513104044), AROKIA JACKSON.A (210513104017)


who

Carried out the project under my supervision.

SIGNATURE SIGNATURE
Dr.A.UMAMAGESWARI. M.Tech.Ph.D Mr.S.KINGSLEY ME.,
HEAD OF THE DEPARTMENT SUPERVISOR
ASSISTANT PROFESSOR

Department of Computer Science Department of Computer Science

And Engineering, And Engineering,

DMI College of Engineering, DMI College of Engineering,

Palanchur, Palanchur,

Chennai-600123. Chennai-600123.

Anna University Practical Project Viva Voice held on

Internal Examiner External Examiner


ACKNOWLEDGEMENT

We are immensely pleased in taking up this opportunity to thank the LORD


ALMIGHTY for showering this unlimited blessing upon us.
We take this opportunity to express our gratitude to our Founder and
Chairman Rev.Fr.Dr.J.E.Arul Raj, our Correspondent Rev.Sr.I.Arokiamary,
M.Tech., Ph.D., and our Administrator Rev.Sr. Hamlet., for allowing us to take
over this project. We thank our Principal, Dr.M.A.Leo Vijilious, M.E.,Ph.D., who
has always served as an inspiration for us to carry out our responsibilities also
providing comfort zone for doing this project work.
We thank our Dean, Dr.Suresh Mohan Kumar, M.E., Ph.D., for his
valuable support and providing necessary comforts for doing this project.
We wish to express our sincere thanks to Dr.A.Umamageswari,M.Tech.,
Ph.D., Head of the Deparssnt and Mr.S.Selvin Ebenezer, M.E., Project
Coordinator for their scintillating discussion and encouragement towards our
project.
We express our deep sense of gratitude to our esteemed Supervisor,
Mr.S.Kingsley, M.E., for constant guidance and co-operation during the project
work.
It is a pleasure to acknowledge our indebtedness to all the Teaching and
Non-Teaching staff of Department Computer Science and Engineering who aided
us successfully to bring our project as effective one.
Further thanks to our parents, our family members and friends for their
moral support
JEBIN KUMAR.E
AROKIA JACKSON.A
ABSTRACT

Cloud computing technologies have enabled a new paradigm for


advanced product development powered by the provision and subscription of
computational services in a multi-tenant distributed simulation environment. The
description of computational resources and their optimal allocation among tenants
with different requirements holds the key to implementing effective software
systems for such a paradigm. To address this issue, a systematic framework for
monitoring, analyzing and improving system performance is proposed in this
research. Specifically, a radial basis function neural network is established to
transform simulation tasks with abstract descriptions into specific resource
requirements in terms of their quantities and qualities. Additionally, a novel
mathematical model is constructed to represent the complex resource allocation
process in a multi-tenant computing environment by considering priority-based
tenant satisfaction, total computational cost and multi-level load balance. To
achieve optimal resource allocation, an improved multi-objective genetic algorithm
is proposed based on the elitist archive and the K-means approaches. As
demonstrated in a case study, the proposed framework and methods can effectively
support the cloud simulation paradigm and efficiently meet tenants’ computational
requirements in a distributed environment.
TABLE OF CONTENTS
CHAPTER TITLE PAGE NO

1 INTRODUCTION 1
1.1 Overall view
2 LITERATURE SURVEY 2
3 SYSTEM ANALYSIS 5
3.1 Existing System
3.1.1 Disadvantages of Existing System
3.2 Proposed System
3.2.1 Advantages of Proposed System
4 SYSTEM REQUIREMENT 8
4.1 Hardware Configuration
4.2 Software Configuration
5 SYSTEM DESIGN 9
5.1 Architecture Diagram
5.2 System Description
6 System Study 12

6.1 Feasibility Study

6.1.1 Economical Feasibility

6.1.2 Technical Feasibility


6.1.3 Social Feasibility
7 Project Description 14

7.1 Modules
7.2 Module Description
7.2.1 Client Registration
7.2.2 Client Login
7.2.3 Cloud
7.2.4 Graph
8 CONCLUSION AND 16
FUTURE ENHANCEMENT
APPENDICES 17
APPENDIX A
SOURCE CODING
APPENDIX B
SCREENSHOTS
REFERENCES 36
LIST OF FIGURES

FIGURE NO FIGURE NAME PAGE NO

5.1.a System Arichitecture 9

8a Client Registration 31

8b Client Login 32

8c Resource Allocation 33

8d Cloud 34

8e Admin Screen 35
LIST OF ABBREVATION

RBFNN - Radial basis function neural network

KGA - K-means genetic algorithm

PSO - Particle swarm optimization

QOS - Quality of service

HRCA - Heuristic Resource Combination Algorithm

RRA - Resource Refusal Rate

ACO - Ant colony optimization

SA - Simulated annealing

GM - Green Manufacturing

SD - Sustainable Development

SOO - Single objective optimization

MOO - Multiple objective optimization

GA - Genetic Algorithm
CHAPTER 1

INTRODUCTION

1.1 OVERALL VIEW

We present an effective solution for resource scheduling in a heterogeneous


and collaborative cloud computing environment to meet tenants’ diverse
simulation requirements. The RBFNN model is compared with a grey exponent
static model and simulation results show that it has attached a good learning
capability. Numerical experiments have also been conducted to compare the
performances of the proposed KGA and PSO.
Testing results in a case study have demonstrated the good performances of
KGA in terms of both convergence and running time for solving collaborative
simulation problem. A novel resource scheduling model is formulated for a highly
heterogeneous cloud environment by considering the tenant priority, load balance
and energy consumption criteria.
An improved KGA algorithm is developed based on the elitist strategy and the
k-means approach provides effectiveness and feasibility in resource scheduling. As
demonstrated in a case study, the proposed framework and methods can effectively
support the cloud simulation paradigm and efficiently meet tenants’ computational
requirements in a distributed environment.

1
CHAPTER 2

LITERATURE SURVEY

1. J. Yu, R. Buyya, and K. Ramamohanarao. “Workflow Scheduling


Algorithms for Grid Computing,” Metaheuristics for schedul-ing in
distributed computing environments. Springer Berlin Hei-delberg, pp. 173-
214, 2008.

Workflow scheduling is one of the key issues in the management of


workflow execution. Scheduling projects is a process that maps and manages
execution of interdependent tasks on distributed resources. It introduces allocating
suitable resources to workflow tasks so that the execution can be completed to
satisfy objective functions specified by users. Proper scheduling can have
significant impact on the performance of the system. In this chapter, we investigate
existing workflow scheduling algorithms developed and deployed by various Grid.

Demerits: Only problems faced by deadline and budget is solved partially. QOS is
said to be provided on certain circumstances

2. C. J. Chen, J. Zhang, J. Li, X. Li,“Resource Virtualization Methodology for


On-Demand Allocation in Cloud Computing Systems,”Service Oriented
Computing and Applications, vol. 7, no. 2, pp. 77-100, Jun 2013.

The resources heterogeneity and unbalanced capability, together with the


diversity of resource requirements in cloud computing systems,have produced
great contradictions between resources tight coupling characteristics and user’s
multi-granularities requirements. Heuristic resource combination algorithm
(HRCA) is proposed to transform physical resources to logic resources, which
meets two requirements: randomness in combination and fluctuation control to the
size of resources granularities. . RRA assures the lowest resource refusal rate and
the greatest resource satisfaction. We verify the effectiveness, performance and
accuracy of algorithms in implementing the goal of resource virtualization centered
on resource users and on-demand allocation.

Demerits: The RMA algorithm which is said to be used in this paper is providing
resources for a short time only with high benefits.

2
3. A. Y. Zomayaand Y. H. Teh,“Observations on Using Genetic Algorithms
for Dynamic Load-Balancing,”IEEE Trans. Parallel and Distributed
Systems,vol.12, no. 9, pp.899-911, Sep 2001.

Load-balancing problems arise in many applications, but, most importantly,


they play a special role in the operation of parallel and distributed computing
systems.Most of the research on load-balancing focused on static scenarios that, in
most of the cases, employ heuristic methods. However, genetic algorithms have
gained immense popularity over the last few years as a robust and easily adaptable
search technique.The algorithm considers other load-balancing issues such as
threshold policies, information exchange criteria, and interprocessor
communication. The effects of these and other issues on the success of the genetic-
based load-balancing algorithm as compared with the first-fit heuristic are outlined.

Demerits: The threshold policy used also provided better performance in


comparison to the first fit algorithm that does not have such a mechanism.

4. R. Buyya, S. K. Garg, and R. N. Calheiros,“SLA-Oriented Re-source


Provisioning for Cloud Computing: Challenges, Archi-tecture, and
Solutions,” in Proc. 2011 International Conference on Cloud and Service
Computing (CSC),Hong Kong, 2011, pp.1-10.

Cloud computing systems promise to offer subscription-oriented, enterprise-


quality computing services to users worldwide. With the increased demand for
delivering services to a large number of users, they need to offer differentiated
services to users and meet their quality expectations.This paper presents vision,
challenges, and architectural elements of SLA-oriented resource management. The
proposed architecture supports integration of marketbased provisioning policies
and virtualisation technologies for flexible allocation of resources to applications.
The performance results obtained from our working prototype system shows the
feasibility and effectiveness of SLA-based resource provisioning in Clouds.

Demerits: These complex user applications often require collaboration among


multiple organizations or businesses and thus require their specific services to
function successfully.

3
5. L. Ramachandran, N. C. Narendra, K. Ponnalagu, “Dynamic Provisioning
in Multi-Tenant ServiceClouds,”Service Oriented Computing and
Applications, vol. 6, no. 4, pp.283-302, Dec 2012.

Cloud-based systems promise an on-demand service provisioning system


along with a “pay-as-you-use” policy. In the case of multi-tenant systems this
would mean dynamic creation of a tenant by integrating existing cloudbased
services on the fly. Presently, dynamic creation of a tenant is handled by building
the required components from scratch. Although multi-tenant systems help
providers save cost by allocating multiple tenants to the same instance of an
application, they incur huge re configuration costs. Cost and time spent on these
reconfiguration activities can be reduced by re-constructing tenants from existing
tenant configurations supported by service providers. Multi-tenant cloudbased
systems also lack the facility of allowing clients to specify their requirements.
Giving clients the flexibility to specify requirements helps them avoid spending an
excessive amount of time and effort looking through a list of services, many of
which might not be relevant to them. Moreover, dynamic provisioning in the cloud
requires an integrated solution across the technology stack (software, platform and
infrastructure) combining functional,non-functional and resource allocation
requirements.Existing research works in the area of web service matching,
although numerous, still fall short, since they usually consider each requirement
type

Demerits: In this there is no dynamic resource allocation of SaaS.

4
CHAPTER 3

SYSTEM ANALYSIS

3.1 EXISTING SYSTEM

In a cloud computing environment, the qualified services are usually


numerous and dynamic, which makes it a challenging task to allocate resources.
The total cost is a widely used criterion to measure the performance of allocation
schemes. As Green Manufacturing (GM) and Sustainable Development (SD) are
playing even more important roles in the business and industry. The energy
consumption of a cloud centre has to be taken into consideration as well.
Therefore, load balance is considered as one of the optimization indexes during the
resource allocating process.

Compared with the single objective optimization (SOO) problems, the


MOO problems are characterized by incommensurability and contradiction
between different objectives. Specifically, incommensurability refers to the fact
that there is no uniform measure for various objectives while contradiction means
performance of one objective is improved at the cost of making others worse.

A common method for analyzing such a problem is to transform a MOO


problem into a SOO problem using the method of weighting aggregation. As the
solution space of resource scheduling in cloud computing is too huge to explore for
the conventional operational research (OR) algorithms, some artificial intelligence
methods have been proposed in recent years, such as the Genetic Algorithm (GA),
genetic algorithms have some inherent limitations.

5
3.1.1 DISADVANTAGES OF EXISTING SYSTEM

 Services security need to be addressed urgently, the priority of each tenant


also becomes important to the resource allocating process.
 The optimization result is largely determined by the weights of different
factors and determination of these weights is very difficult without
comprehensive knowledge of the problem.
 Resource scheduling in cloud computing is too huge to explore for the
conventional operational research (OR) algorithms, some artificial
intelligence methods have been proposed in recent years, such as the Genetic
Algorithm (GA), genetic algorithms have some inherent limitations.

3.2 PROPOSED SYSTEM:

In Proposed system, we present an effective solution for resource scheduling


in a heterogeneous and collaborative cloud computing environment to meet
tenants’ diverse simulation requirements.

A novel mathematical model is formulated to represent the complex


scheduling problem and an improved multi-objective genetic algorithm is proposed
based on the elitist archive and the k-means approaches.

By capturing and reusing engineering experience, a RBFNN model is


established to interpret simulation tasks and then match them to resource
requirements in terms of their quantities and qualities.

The RBFNN model is compared with a grey exponent static model and
simulation results show that it has attached a good learning capability.

6
Numerical experiments have also been conducted to compare the
performances of the proposed KGA and PSO. Testing results in a case study have
demonstrated the good performances of KGA in terms of both convergence and
running time for solving collaborative simulation problem.

3.2.1 ADVANTAGES OF PROPOSED SYSTEM:

 A radial basis function neural networks is established as a knowledge model


for estimating the required resources of each tenant.
 A novel resource scheduling model is formulated for a highly heterogeneous
cloud environment by considering the tenant priority, load balance and
energy consumption criteria.
 An improved KGA algorithm is developed based on the elitist strategy and
the k-means approach provides effectiveness and feasibility in resource
scheduling.
 The RBFNN model is compared with a grey exponent static model and
simulation results show that it has attached a good learning capability.

7
CHAPTER 4

SYSTEM REQUIREMENT

4.1 HARDWARE CONFIGURATION

 Processor - Intel core


 Speed - 1.70 Ghz
 RAM - 256 MB(min)
 Hard Disk - 20 GB
 Key Board - Standard Windows Keyboard
 Mouse - Two or Three Button Mouse
 Monitor - SVGA
 Webcamera - intex, iball, logitech

4.2 SOFTWARE CONFIGURATION

 Operating System : Windows 8


 Programming Language : JAVA/J2EE
 Java Version : JDK 1.7 & above.
 Database : MYSQL
 IDE : Eclipse

8
CHAPTER 5

SYSTEM DESIGN

5.1 ARCHITECTURE DIAGRAM:

UI SLA
User
1 layer layer

User SLA parameter


SLA
SLA Service
model Sla Model
2 SLA negotition providers
User paramet
n

Multi view
menu
Middle ware
layer SLA

Multiview
function Resource Performan
dispencer ce monitor

Dynamic
migration

Software Model service Computing services


sevices

FIG 5.1.a System Architecture

5.2 System Description

The architecture of a multi-tenant distributed simulation system is shown in


FIG 5.1.a, which includes four main parts together with the service providers and
tenants working in a cloud computing environment. Computational resources are
traded between the service providers and the consumers or tenants. These different
roles may come from different enterprises, different departments within an
enterprise or different individuals within a department.

9
As the development of complex products involves the collaboration of
different people from different domains in completing a series of tasks. An
effective and efficient mechanism is necessary to analyse the tasks and then
identify and match resource requirements in terms of their quantities and qualities.
Most of the analysis work is now done based on the experience obtained in
previous projects. By reusing this kind of implicit knowledge, a Radial Basis
Function Neural Network (RFBNN) is established to estimate the resources
required by each tenant. In a cloud computing environment, the qualified services
are usually numerous and dynamic, which makes it a challenging task to allocate
resources.
The total cost is a widely-used criterion to measure the performance of
allocation schemes. As Green Manufacturing (GM) and Sustainable Development
(SD) are playing even more important roles in the business and industry of the 21st
century , the energy consumption of a cloud center has to be taken into
consideration as well.
Therefore, load balance is considered as one of the optimization indexes
during the resource allocating process. As some problems such as services security
need to be addressed urgently, the priority of each tenant also becomes important to
the resource allocating process, and as such a priority-based satisfaction index is
proposed to ensure the tenants’ highest satisfaction. Thus, the performance of
resource allocation in cloud computing is evaluated using a Multi-Objective
Optimization (MOO) problem with three indexes in this research. Compared with
the single objective optimization (SOO) problems, the MOO problems are
characterized by incommensurability and contradiction between different
objectives.
Specifically, incommensurability refers to the fact that there is no uniform
measure for various objectives while contradiction means performance of one
objective is improved at the cost of making others worse. A common method for
analyzing such a problem is to transform a MOO problem into a SOO problem
using the method of weighting aggregation.
However, the optimization result is largely determined by the weights of
different factors and determination of these weights is very difficult without
comprehensive knowledge of the problem. Researchers have made significant
progress in overcoming this difficulty by finding out all the no dominated solutions
which are called the set of Pareto front solutions. As the solution space of resource
scheduling in cloud computing is too huge to explore for the conventional
operational research (OR) algorithms, some artificial intelligence methods have
been proposed in recent years, such as the Genetic Algorithm (GA), the Particle
Swarm Optimization (PSO), the Simulated Annealing (SA), the Ant Colony
Optimization (ACO) and so on.
10
Owing to the simplicity of operation and the power of effect of the GA
approach, it has been widely applied to timetabling and scheduling problems.
Nevertheless, genetic algorithms have some inherent limitations. For
example, they have a tendency to converge towards local optima and an
exponential increase of search space and time will be incurred when they are
applied to large-scale problems. To overcome these limitations for solving the
problem of cloud computing resources scheduling effectively and efficiently, the
K-means based GA (KGA) has been proposed by taking advantages of the
traditional GAs and local search. The main contributions of this paper include:
1. A radial basis function neural networks is established as a knowledge model
for estimating the required resources of each tenant.
2. A novel resource scheduling model is formulated for a highly
heterogeneous cloud environment by considering the tenant priority, load
balance and energy consumption criteria.
3. An improved KGA algorithm is developed based on the elitist strategy and
the k-means approach and its effectiveness and feasibility is demonstrated
in a resource scheduling case study.
4. To allocate resources effectively in a highly heterogeneous cloud
environment, a multi-objective optimization model is established by
considering the tenant priority, load balance and energy consumption
criteria.

A distributed and interactive system can facilitate the development of multi-


tenant simulation which is performed by various tenants with different
requirements within a cloud simulation platform. Each tenant contains various
users that share one database instance and application environment to complete
the same task. To meet the multi-tenancy need, the system offers a framework
for the requirement of negotiating, monitoring and scheduling services based
on the Service Level Agreement.

11
CHAPTER 6

SYSTEM STUDY

6.1 FEASIBILITY STUDY


The feasibility of the project is analysed in this phase and business proposal is
put forth with a very general plan for the project and some cost estimates. During
system analysis the feasibility study of the proposed system is to be carried out.
This is to ensure that the proposed system is not a burden to the company. For
feasibility analysis, some understanding of the major requirements for the system
is essential.
A feasibility study aims to objectively and rationally uncover the strengths and
weaknesses of an existing business or proposed venture, opportunities and threats
present in the environment, the resources required to carry through, and ultimately
the prospects for success.
In its simplest terms, the two criteria to judge feasibility are cost required
and value to be attained. Three key considerations involved in the feasibility
analysis are

 ECONOMICAL FEASIBILITY
 TECHNICAL FEASIBILITY
 SOCIAL FEASIBILITY

6.1.1 ECONOMICAL FEASIBILITY

This study is carried out to check the economic impact that the system will
have on the organization. This allows companies to carefully manage their money
to insure the most profitable projects are undertaken. Economic feasibility also
helps companies determine whether or not revisions to a project that at first seems
unfeasible will make it feasible.
The amount of fund that the company can pour into the research and
development of the system is limited. The expenditures must be justified. Thus the
developed system as well within the budget and this was achieved because most of

12
the technologies used are freely available. Only the customized products had to be
purchased.

6.1.2 TECHNICAL FEASIBILITY

This study is carried out to check the technical feasibility, that is, the
technical requirements of the system. Any system developed must not have a high
demand on the available technical resources. This will lead to high demands on the
available technical resources.

All the resources are available for the client and they can access them easily.
So that the technical feasibility can be achieved easily,and the can get the best
performance for the services that are needed by them.

This will lead to high demands being placed on the client. The developed
system must have a modest requirement, as only minimal or null changes are
required for implementing this system.

6.1.3 SOCIAL FEASIBILITY

The aspect of study is to check the level of acceptance of the system by the
user. This includes the process of training the user to use the system efficiently. The
user must not feel threatened by the system, instead must accept it as a necessity.
It involves taking a judgment call on whether a project is doable. The two
criteria to judge feasibility are cost required and value to be delivered.
A well-designed study should offer a historical background of the
business or project, a description of the product or service, accounting
statements, details of operations and management, marketing research and
policies, financial data, legal requirements and tax obligations.
Generally, such studies precede technical development
and project implementation. The level of acceptance by the users solely depends
on the methods that are employed to educate the user about the system and to make
him familiar with it.
His level of confidence must be raised so that he is also able to make some
constructive criticism, which is welcomed, as he is the final user of the system.

13
CHAPTER 7

PROJECT DESCRIPTION

7.1 MODULES:
 Client Registration

 Client Login

 Resource Allocation

 Cloud

 graph generation

7.2 MODULE DESCRIPTION:


7.2.1 Client Registration
URS provides a user registration service (Fig no:8a) allowing users to self-
register, free of charge. The user needs to set up a profile that includes a user ID,
password, and provide a small amount of additional information, including
affiliation, country, and a valid e-mail address. This information is never provided
to any application without a user's explicit permission.

7.2.2 Client Login


A login, logging in or logging on(Fig no:9b) is the entering of identifier
information into a system by a user in order to access that system (e.g., a computer
or a website). It is an integral part of computer security procedures.

A login generally requires the user to enter two pieces of information, first
a user name and then a password. This information is entered into
14
a login window on a GUI(graphical user interface) or on the command line in
a console (i.e., an all-text mode screen), depending on the system and situation.

Client can request resource to cloud. The resource may be software, os, etc.

7.2.3 Cloud:
The cloud stores the client’s files and provides download service for the
client.(Fig no:8d) Cloud storage is universally viewed as one of the most important
services of cloud computing. Although cloud storage provides great benefit to
users, it brings new security challenging problems. One important security problem
is how to efficiently check the integrity of the data stored in cloud.
The cloud can allocate and deallocate the resouces required by users.

7.2.4 GRAPH:
we generated 3 types of graphs for optimization.
i) User based:

The user based graph is based on the number of users connected to the
cloud network and the total number of services that are provided to them.

ii) Memory based:

In memory based graph the total amount of memory that are needed
and the amount of memory that are allocated for the users are shown.

iii) Software based:

It gives the details about the number of services provided and the
number of services allocated to the users connected to the particular cloud
network.

We allocated resource to new users based on these graph.


15
CHAPTER 8

CONCLUSION AND FUTURE ENHANCEMENT

8.1 CONCLUSION AND FUTURE ENHANCEMENT:

This paper presents an effective solution for resource scheduling in a


heterogeneous and collaborative cloud computing environment to meet tenants’
diverse simulation requirements.
A novel mathematical model is formulated to represent the complex
scheduling problem and an improved multi-objective genetic algorithm is proposed
based on the elitist archive and the k-means approaches. By capturing and reusing
engineering experience, a RBFNN model is established to interpret simulation
tasks and then match them to resource requirements in terms of their quantities and
qualities. The RBFNN model is compared with a grey exponent static model and
simulation results show that it has attached a good learning capability.
Numerical experiments have also been conducted to compare the
performances of the proposed KGA and PSO. Testing results in a case study have
demonstrated the good performances of KGA in terms of both convergence and
running time for solving collaborative simulation problems. In our future work, the
influence of various parameters in the mathematical model such as the node price
and the priority weight will be analyzed in detail. Besides, more practical
applications will be considered such as the learning effect and the synchronous task
constraints. Furthermore, the algorithms with better performance in terms of
efficiency will be developed for relatively largescale problems with complex
constraints.

16
APPENDIX A
Source Code:

CLOUD ADMIN LOGIN:


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<jsp:include page="includes/header.jsp" />
<script language="JavaScript" type="text/javascript">
<!--
function cf( form )
{
if ((form.un.value == ""))
{
alert( "Please enter your UserName " );
form.un.focus();

return false;
}
else if ((form.un.value.length < 5))
{
alert( "UserName Must be in More than 5 Characters" );
form.un.focus();
return false;
}
else if((form.ps.value== ""))
{
alert( "Please enter your Password " );
form.ps.focus();
return false ;
}
else
{

if((form.ps.value.length < 5))


{
alert( "Password Must be in More than 5 Characters" );
form.ps.focus();
return false;
17
}
}
return true ;
}
function val(){
//var x=document.form1.err1.value
if(document.form1.err1.value=="yes"){
alert("UserName Password are Incorrect !");
}}
</script>
<div class="userInput register">
<h2>Cloud Admin Login</h2>
<form action="calogin" name="form1" method="post" onsubmit="return cf(this)
">
<table cellpadding=15 cellspacing=15>
<tr><td>User Name:</td><td><input class="form-control" type="text"
name="un"></td></tr>
<tr><td>Password:</td><td><input class="form-control" type="password"
name="ps"></td></tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr><td></td><td><input class="btn btn-primary" type="submit" value="Login">
<input type="reset" class="btn btn-default" value="ClearFields">
<input type="hidden" name="err1" value="<
%=request.getParameter("error")%>"/>
</td></tr>
</table>
</form>
</div>
<jsp:include page="includes/footer.jsp" />

CLIENT LOGIN:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<jsp:include page="includes/header.jsp" />
<script language="JavaScript" type="text/javascript">
<!--
function cf( form )
{
18
if ((form.un.value == ""))
{
alert( "Please enter your UserName " );
form.un.focus();

return false;
}
else if ((form.un.value.length < 5))
{
alert( "UserName Must be in More than 5 Characters" );
form.un.focus();
return false;
}
else if((form.ps.value== ""))
{
alert( "Please enter your Password " );
form.ps.focus();
return false ;
}
else
{

if((form.ps.value.length < 5))


{
alert( "Password Must be in More than 5 Characters" );
form.ps.focus();
return false;
}
}
return true ;
}
function val(){
//var x=document.form1.err1.value
if(document.form1.err1.value=="yes"){
alert("UserName Password are Incorrect !");
}}
</script>
<div class="userInput register">
<h2>User Login</h2>

19
<form action="clogin" name="form1" method="post" onsubmit="return cf(this)
">
<table cellpadding=15 cellspacing=15>
<tr><td>User Name:</td><td><input class="form-control" type="text"
name="un"></td></tr>
<tr><td>Password:</td><td><input class="form-control" type="password"
name="ps"></td></tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr><td></td><td><input class="btn btn-primary" type="submit" value="Login">
<input type="reset" class="btn btn-default" value="ClearFields">
<input type="hidden" name="err1" value="<
%=request.getParameter("error")%>"/>
</td></tr>
</table>
</form>
</div>
<jsp:include page="includes/footer.jsp" />

REGISTRATON:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"


pageEncoding="ISO-8859-1"%>
<jsp:include page="includes/header.jsp" />
<script language="JavaScript" type="text/javascript">
<!--
function cf( form )
{
if ((form.nm.value == ""))
{
alert( "Please enter your Name " );
form.nm.focus();

return false;
}
20
if (form.eid.value == "")
{
alert( "Please enter your Email Address" );
form.eid.focus();
return false ;
}
else
{
/* var emailID = form.emailid.value;
atpos = emailID.indexOf("@");
dotpos = emailID.lastIndexOf(".");

if (atpos < 1 || ( dotpos - atpos < 2 ))


{
alert("Please enter correct email ID");
form.emailid.focus();
return false;
}*/
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-
z]{2,4})$/;

if (reg.test(form.eid.value) == false)
{
alert('Invalid Email Address');
return false;
}

}
if ((form.un.value == ""))
{
alert( "Please enter your UserName " );
form.un.focus();

return false;
}
else if ((form.un.value.length < 5))
{
alert( "UserName Must be in More than 5 Characters" );
form.un.focus();
return false;
21
}
else if((form.ps.value== ""))
{
alert( "Please enter your Password " );
form.ps.focus();
return false ;
}
else
{

if((form.ps.value.length < 5))


{
alert( "Password Must be in More than 5 Characters" );
form.ps.focus();
return false;
}
if((form.rps.value.length<5))
{
alert( "RePassword Must be in More than 5 Characters" );
form.rps.focus();
return false ;
}

else
{
if ((form.ps.value!=form.rps.value))
{
alert( "Password & Re-Password Doesnot Match" );
form.ps.focus();
form.rps.focus();
return false ;
}
else
{var e = document.getElementById("dd");
var e1=document.getElementById("mm");
var e2=document.getElementById("yy");
var strUser = e.options[e.selectedIndex].value;
var strUser1 = e1.options[e1.selectedIndex].value;
var strUser2 = e2.options[e2.selectedIndex].value;
if(strUser==0)
22
{
alert("Please select a Day");
return false;
}
else if(strUser1==0)
{
alert("Please select Month");
return false;
}
else if(strUser2==0)
{
alert("Please select Year");
return false;
}

}
}
}

if (form.mno.value == "")
{
alert( "Please enter your Mobile Number" );
form.mno.focus();
return false ;
}else
{
var phoneno = /^\d{10}$/;
if((form.mno.value.match(phoneno)))
{
return true;
}
else
{
if(isNaN(form.mno.value))
{
alert("Enter the valid Mobile Number(Like : 9566137117)");
form.mno.focus();
return false;
}
23
else
{
alert( "Mobile Number Must be in 10 Digits" );
form.mno.focus();
return false ;
}
}
}

return true ;
}
</script>
<div class="userInput register">
<h2>Client Registration</h2>
<form action="cregs" method="post" onsubmit="return cf(this) ">
<table>
<tr>
<td>Name:</td>
<td colspan="2"><input class="form-control" type="text"
name="nm"></td>
</tr>
<tr>
<td>Select gender:</td>
<td colspan="2"><input type="radio" name="gender" value="Male"
checked> Male
<input type="radio" name="gender"value="Female"> Female</td>
</tr>
<tr><td>Email_Id:</td><td colspan="2"><input class="form-control" type="text"
name="eid"></td></tr>
<tr><td>UserName:</td><td colspan="2"><input class="form-control"
type="text" name="un"></td></tr>
<tr><td>Password:</td><td colspan="2"><input class="form-control"
type="password" name="ps"></td></tr>
<tr><td>Re_password:</td><td colspan="2"><input class="form-control"
type="password" name="rps"></td></tr>
<tr>
<td colspan="3">DOB:</td>
</tr>
<tr>
24
<td></td>
<td>
<select class="form-control" id=mm name="month"
onchange="return wait_for_load(this, event, function()
{ editor_date_month_change(this, 'birthday_day','birthday_year');
});">
<option value="0">Month</option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
</td><td>
<select class="form-control" name="day" id=dd>
<option value="0">Day</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
</td><td style="width: 110px;">
<select class="form-control" name="year" id=yy>
<option value="0">Year</option>
<option value="2015">2015</option>
25
<option value="2014">2014</option>

26
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
<option value="2005">2005</option>
<option value="2004">2004</option>
<option value="2003">2003</option>
<option value="2002">2002</option>
<option value="2001">2001</option>
<option value="2000">2000</option>
<option value="1999">1999</option>
<option value="1998">1998</option>
<option value="1997">1997</option>
<option value="1996">1996</option>
</select></td></tr>
<tr><td>Mobile Number:</td><td colspan="2"><input class="form-control"
type="text" name="mno"></td></tr>
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr><td style="width: 150px;"></td><td><input class="btn btn-primary"
type="submit" value="Register"></td><td><input class="btn btn-default"
type="reset" value="Clear Fields"></td></tr>
</table>
</form>
</div>
<jsp:include page="includes/footer.jsp" />

AVAILABLE RESOURCES:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"


pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="com.eyeopen.dao.DAOFactory"%>
<%@page import="java.sql.Connection"%>
27
<jsp:include page="includes/header.jsp" />
<jsp:include page="includes/sidemenu.jsp" />
<div class="col-md-9">
<table class="table table-striped resourceTable" border=5 bordercolor="magenta"
cellpadding=5 cellspacing=5>
<tr>

<th>CLOUD NAME</th>
<th>RESOURCE ID</th>
<th>SOFTWARE</th>
<th>MEMORY</th>
<th>STORAGE</th>
<th>AVAILABLE</th>
<th>REQUEST</th>
</tr>
<%Connection con = DAOFactory.getConnection();
String un=(String)session.getAttribute("un");
PreparedStatement ps = con.prepareStatement("select
a.rid,a.software,a.Memory,a.Storage,a.available,b.cname from resource_available a
inner join cloud_master b where a.cid=b.cid");
ResultSet rs = ps.executeQuery();
int rid=0;
String cname="";
String sname="";
int ram=0,mem=0,avail=0;
%>
<%while(rs.next()) {

cname=rs.getString("cname");
rid=rs.getInt("rid");
sname=rs.getString("software");
ram=rs.getInt("Memory");
mem=rs.getInt("Storage");
avail=rs.getInt("available");

%>
<tr>
<td ><%=cname%><input type="hidden" value=<%=cname %>
name="cname"/></td>
<td ><%=rid%><input type="hidden" value=<%=rid %> name="rid"/></td>
28
<td ><%=sname%><input type="hidden" value=<%=sname %>
name="sname"/></td>
<td ><%=ram+"MB"%><input type="hidden" value=<%=ram%>
name="ram"/></td>
<td ><%=mem+"MB"%><input type="hidden" value=<%=mem%>
name="mem"/></td>
<td ><%=avail%><input type="hidden" value=<%=avail %>
name="avail"/></td>
<td><a href="Reqtext.jsp?rid=<%=rid%>&cname=<%=cname%>&sname=<
%=sname%> &ram=<%=ram%>&mem=<%=mem%>">Request Resource
Here</a></td>
</tr>
<%} %>
</table>
</div>
<jsp:include page="includes/footer.jsp" />

UNALLOCATED RESOURCES:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="com.eyeopen.dao.DAOFactory"%>
<%@page import="java.sql.Connection"%>
<jsp:include page="includes/header.jsp" />
<jsp:include page="includes/sidemenu.jsp" />
<div class="col-md-9">

<table class="table table-striped resourceTable" >


<tr>

<th>CLOUD NAME</th>
<th>RESOURCE ID</th>
<th>SOFTWARE</th>
<th>MEMORY</th>
<th>STORAGE</th>
<th>REMARKS</th>
</tr>
<%Connection con = DAOFactory.getConnection();
29
String un=(String)session.getAttribute("un");
PreparedStatement ps = con.prepareStatement("select
a.rid,a.software,a.Memory,a.Storage,b.nop,b.cloud,b.remarks from
resource_available a inner join resource_allocated b where a.software=b.resource
and sts=0 and b.uname=?");
ps.setString(1,un);
ResultSet rs = ps.executeQuery();
int rid=0;
String cname="";
String sname="",rem="";
int ram=0,mem=0,avail=0;
%>
<%while(rs.next()) {

cname=rs.getString("cloud");
rid=rs.getInt("rid");
sname=rs.getString("software");
ram=rs.getInt("Memory");
mem=rs.getInt("Storage");
rem=rs.getString("remarks");
%>
<tr>
<td ><%=cname%><input type="hidden" value=<%=cname %>
name="cname"/></td>
<td ><%=rid%><input type="hidden" value=<%=rid %> name="rid"/></td>
<td ><%=sname%><input type="hidden" value=<%=sname %>
name="sname"/></td>
<td ><%=ram+"MB"%><input type="hidden" value=<%=ram%>
name="ram"/></td>
<td ><%=mem+"MB"%><input type="hidden" value=<%=mem%>
name="mem"/></td>
<td ><%=rem%><input type="hidden" value=<%=rem %>
name="rem"/></td>

</tr>
<%} %>
</table>
</div>

<jsp:include page="includes/footer.jsp" />


30
APPENDIX B
Screen Shots:

Client Registration:

Fig no:8a

31
User Login:

Fig no:8b

32
Resource
Allocation:

Fig no:8c

33
Cloud:

Fig no:8d

34
Admin Login:

Fig no:8e

35
REFERENCES:

[1] X. Xu, “From Cloud Computing to Cloud Manufacturing, “Robotics and


Computer-integrated Manufacturing, vol. 28, no.1, pp.75-86, Feb. 2012.
[2] L. Wu, S. K. Garg, S. Versteeg, and R. Buyya,“SLA-Based Re-source
Provisioning for Hosted Software-as-a-Service Applica-tions in Cloud Computing
Environments,”IEEE Trans. Services Computing, vol.7, no.3, pp. 465-485, Sep.
2014, doi:10.1109/TSC.2013.49.
[3] J. Espadas, A. Molina, G. Jiménez, et al,“A Tenant-Based Re-source Allocation
Model for Scaling Software-As-A-Service Applications over Cloud Computing
Infrastructures,”Fut. Gener.Comput.Syst., vol. 29, no. 1, pp. 273-286, Jan 2013.
[4] R. Buyya, C.S. Yeo, S. Venugopal, J. Broberg, and I. Brandic, “Cloud
Computing and Emerging IT Platforms: Vision, Hype, and Reality for Delivering
Computing as the 5th Utility, Fu-ture Generation Computer Systems,’’ Fut. Gener.
Comput. Syst., vol. 25, no. 6, pp. 599-616, June 2009.
[5] BoeingEdge, Referenced on May 10 2015. [Online]. Available:
[6] Y. Y. Ran, J. Yang, S. B. Zhang, and H. S. Xi, “SLA-Driven Dy-namic
Resource Provisioning for Service Provider in Cloud Computing,” in Proc. IEEE
Globecom Workshops (GC Wkshps), Atlanta, GA, 2013, pp. 408-413,
doi:10.1109/GLOCOMW.2013.6825022.
[7] L. Wu, S. K. Garg, and R. Buyya,“SLA-Based Admission Con-trol for
aSoftware-As-A-Service Provider in Cloud Computing Environments,” Journal of
Computer and System Sciences, vol. 78, no. 5, pp.1280-1299, Sept. 2012.
[8] L. Wu, S. K. Garg, and R. Buyya, “Sla-Based Resource Alloca-tion for
Software asaService Provider (Saas) in Cloud Compu-ting Environments,” in Proc.
11th IEEE/ACM Int’l Symp. CCGrid, Los Angeles, CA, USA, 2011, pp. 195-204.
[9] R. Buyya, S. K. Garg, and R. N. Calheiros,“SLA-Oriented Re-source
Provisioning for Cloud Computing: Challenges, Archi-tecture, and Solutions,” in
Proc. 2011 International Conference on Cloud and Service Computing
(CSC),Hong Kong, 2011, pp.1-10.
[10] D. KrajncandP. Glavič,“A Model for Integrated Assessment of Sustainable
Development,”Resources, Conservation and Recy-cling, vol. 43, no. 2, pp. 189-
208, Jan 2005.
[11] N.M.P. Bocken, S.W. Short, P. Rana, and S. Evans, “A Litera-ture and Practice
Review to Develop Sustainable Business Model Archetypes,”Journal of Cleaner
Production, vol. 65, pp. 42-56, Feb 2014.

36
[12] F. Tao, Y. Feng, L. Zhang L, and T. W. Liao. “CLPS-GA: A Case Library and
Pareto Solution-Based Hybrid Genetic Algorithm for Energy-Aware Cloud Service
Scheduling,”Applied Soft Computing, vol. 19, pp.264-279, Jun 2014.
[13] J. Yu, R. Buyya, and K. Ramamohanarao. “Workflow Scheduling Algorithms
for Grid Computing,” Metaheuristics for schedul-ing in distributed computing
environments. Springer Berlin Hei-delberg, pp. 173-214, 2008.
[14] A. Y. Zomayaand Y. H. Teh,“Observations on Using Genetic Algorithms for
Dynamic Load-Balancing,”IEEE Trans. Parallel and Distributed Systems,vol.12,
no. 9, pp.899-911, Sep 2001.
[15] K. M. Sim,“Agent-Based Cloud Computing,”IEEE Trans. Services
Computing, vol. 5, no. 4, pp.564-577, Nov 2012.
[16] F. Tao, C. Li, and T. Liao, “BGM-BLA: A New Algorithm for Dynamic
Migration of Virtual Machines in Cloud Computing,”IEEE Trans. Services
Computing, Mar 2015, doi: 10.1109/TSC.2015.2416928.
[17] P. C. Churchand A. M. Goscinski,“A Survey of Cloud-Based Service
Computing Solutions for Mammalian Genomics,” IEEE Trans. Services
Computing, vol. 7, no. 4, pp. 726-740, Dec 2014, doi: 10.1109/TSC.2014.2353645.
[18] J. Yang, J. Qiu, and Y. Li, “A Profile-Based Approach to Just-In-Time
Scalability for Cloud Applications,” inProc. IEEE In-ternational Conference
onCloud Computing(CLOUD), Bangalore, pp. 9-16, Sept 2009.
[19] H. Wang, A. L. Johnson, and R. H. Bracewell, “The Retrieval of Structured
Design Rationale for the Re-Use of Design Knowledge with an Integrated
Representation,”Advanced En-gineering Informatics, vol. 26, no. 2, pp. 251-266,
Apri2012.
[20] F. Behloul, BPF. Lelieveldt, and A. Boudraa, “Optimal Design of Radial Basis
Function Neural Networks for Fuzzy-Rule Ex-traction in High Dimensional Data,”
Pattern Recognition,vol. 35, no. 3, pp. 659-675, Mar 2002.
[21] L. Zhang, Y. Luo, F. Tao,et al,“Cloud Manufacturing: A New Manufacturing
Paradigm,”Enterprise Information Systems, vol. 8, no. 2, pp.167-187, 2014.
[22] X. Lin, Y. Wang, and Q. Xie, “Task Scheduling with Dynamic Voltage and
Frequency Scaling for Energy Minimization in The Mobile Cloud Computing
Environment,”IEEE Trans. Ser-vices Computing, vol. 8, no. 2, pp.175-186, Apri
2015, doi: 10.1109/TSC.2014.2381227.
[23] J. M. Alcarazand A. J. Gutierrez, “Mon-Paas: AnAdaptive Monitoring
Platformas aService for Cloud Computing Infra-structures and Services,”IEEE
Trans. Services Computing, vol. 8, no. 1, pp. 65-78, Feb 2015, doi:
10.1109/TSC.2014.2302810.
[24] S. Chaisiri, B. S. Lee, and D. Niyato,“Optimization of Re-Source Provisioning
Cost in Cloud Computing,”IEEE Trans. Services Computing, vol. 5, no. 2, pp.
37
164-

38
39

You might also like