nephele implementation work

48
A Seminar on Implementation Of Exploiting Dynamic Resource Allocation for Efficient Parallel Data Processing in the Cloud Presented By: Hussain khan Md M.Tech(S.E) IIyear 10311D2506 Under The Guidance of Mrs. Aruna Varanasi, H.O.D of C.S.E Dept, Snist, Ghatkesar

Upload: hussain-khan-khan

Post on 14-Apr-2015

43 views

Category:

Documents


2 download

DESCRIPTION

cloud

TRANSCRIPT

Page 1: Nephele Implementation Work

ASeminar

onImplementation

Of

Exploiting Dynamic Resource Allocation

forEfficient Parallel Data Processing in the Cloud

Presented By: Hussain khan MdM.Tech(S.E) IIyear

10311D2506

Under The Guidance of

Mrs. Aruna Varanasi,H.O.D of C.S.E Dept,

Snist, Ghatkesar

Page 2: Nephele Implementation Work

Description:• In recent years ad-hoc parallel data processing has emerged to be one

of the killer applications for Infrastructure-as-a-Service (IaaS) clouds.

• Major Cloud computing companies have started to integrate frameworks for parallel data processing in their product portfolio, making it easy for customers to access these services and to deploy their programs.

• However, the processing frameworks which are currently used have been designed for static, homogeneous cluster setups and disregard the particular nature of a cloud.

• Consequently, the allocated compute resources may be inadequate for big parts of the submitted job and unnecessarily increase processing

time and cost.

Page 3: Nephele Implementation Work

• In this paper we discuss the opportunities and challenges for efficient parallel data processing in clouds and present our research project named NEPHELE.

• It is the first data processing framework to explicitly exploit the dynamic resource allocation offered by today’s IaaS clouds for both, task scheduling and execution.

• Particular tasks of a processing job can be assigned to different types of virtual machines which are automatically instantiated and terminated during the job execution.

• Based on this new framework, we perform extended evaluations of Map Reduce-inspired processing jobs on an IaaS cloud system and compare the results to the popular data processing framework Hadoop.

Page 4: Nephele Implementation Work

TECHNIQUE USED Nephele framework:  The actual execution of tasks which a Nephele job

consists of is carried out by a set of instances.

Each instance runs a so-called Task Manager (TM).

A Task Manager receives one or more tasks from the Job Manager at a time, executes them.

After that informs the Job Manager about their completion or possible errors.

Unless a job is submitted to the Job Manager, we expect the set of instances (and hence the set of Task Managers) to be empty.

Upon job reception the Job Manager then decides, depending on the job’s particular tasks, how many and what type of instances the job should be executed on, and when the respective instances must be allocated/ de-allocated to particular instance

It ensures a continuous but cost-efficient processing. Our current strategies for these decisions are

highlighted at the end of this section.

Page 5: Nephele Implementation Work

SYSTEM ARCHITECTURE

Description: Here the system architecture depicts that

Through client page we can give HTTP request to the servlet and retrieve resources from persistent storage by data access object.

From servlet job manager will get the HTTP response and handover the task to the task manager.

Task manager will process the task and again forward the response to the client page

Page 6: Nephele Implementation Work

DATA FLOW DIAGRAM

Description:From the data flow diagram it clearly shows that: User can connect with the cloud after checking the credentials through login.

Through the main page client can give request through main page then this job will redirect to job manager for scheduling and allocating.

Then proper task manager will perform particular task by getting the necessary resources from the persistent storages

Finally the result is being sent to the client

Page 7: Nephele Implementation Work

Design Work

List of Modules in the project Login Client request Job manager Resource storage Task manager Process the task

Page 8: Nephele Implementation Work

Implementation WorkHome Page

Page 9: Nephele Implementation Work

1)Login Page

Page 10: Nephele Implementation Work

Registration PageA new user registers details and gets authentication

Page 11: Nephele Implementation Work

Upon Successful Registration a message would be displayed

Page 12: Nephele Implementation Work

Then the User Logins with so created mail Id and Password

Page 13: Nephele Implementation Work

Module: 2)Client RequestThe client provides his request to job Manager by entering the data in the empty space provided

Page 14: Nephele Implementation Work

Sample Request created by the client

Page 15: Nephele Implementation Work

After creating the Request, by clicking upon the Submit button, the request would be sent directly to the Job Manager

Page 16: Nephele Implementation Work

Code for creating Client Request• protected void btnSubmit_Click(object sender, EventArgs e)

• {

• string Name = Session["username"].ToString();

• //ObjClientBO.Request = txtClient.Text;

• try

• {

• SqlConnection con = new SqlConnection(constring);

• con.Open();

• SqlCommand cmd = new SqlCommand("Insert into tblClientRequest(Name,Request)values('" + Name + "','" + txtClient.Text + "')", con);

• SqlDataAdapter da = new SqlDataAdapter(cmd);

• cmd.ExecuteNonQuery();

• ScriptManager.RegisterStartupScript(Panel1,Panel1.GetType(), "MyScript", "alert('Your Request has been sent successfully');", true);

• txtClient.Text = "";

• }

• catch (Exception ex)

• {

• ex.Message.ToString();

• }

• clear();

Page 17: Nephele Implementation Work

Module : 3) Job ManagerJob Manager logins to Cloud controller to view the client requests and process the requests.

Page 18: Nephele Implementation Work

A window opens displaying the “View Request” Tab, to view the requests sent by the client

Page 19: Nephele Implementation Work

Then the request sent by different would be displayed.

Page 20: Nephele Implementation Work

Then the job manager checks for the resources needed to process the tasks

Page 21: Nephele Implementation Work

A window opens displaying the services available by the job manager

Page 22: Nephele Implementation Work

If the resources are available, then the Job Manager selects the particular resources depending upon the request sent by the clients.

Page 23: Nephele Implementation Work

• Code for Job manager• public partial class JobManager : System.Web.UI.Page

• {

•  

• string constring = @"Data Source=HOME-PC;Initial Catalog=CloudComputing;Persist Security Info=True;User ID=sa;Password=srinivas";

• CloudBO.JobManager ObjJobBO = new CloudBO.JobManager();

• int id = 0;

• protected void Page_Load(object sender, EventArgs e)

• {

• if (!IsPostBack)

• {

• data();

• plat();

• }

• }

•  

• protected void btnViewRequest_Click(object sender, EventArgs e)

• {

• Panel4.Visible = true;

• Panel1.Visible = false;

• }

Page 24: Nephele Implementation Work

• protected void btnAvailableResourse_Click(object sender, EventArgs e)

• {

• Panel1.Visible = true;

• Panel4.Visible = false;

• lblmessage.Visible = true;

• lblmessage.Text = "IF RESOURCE IS UNAVAILABLE PLEASE REGISTER IN TO CLOUD REGISTRATION";

• lblmess.Visible = true;

• lblmess.Text = "IF RESOURCE IS UNAVAILABLE PLEASE REGISTER IN TO CLOUD REGISTRATION";

• }

• protected void btnsoftware_Click(object sender, EventArgs e)

• {

• ddlSW.Visible = true;

• btnCloudRegistration.Visible = true;

• }

•  

Page 25: Nephele Implementation Work

• protected void btnPlatform_Click(object sender, EventArgs e)

• {

• ddlPF.Visible = true;

• btnplatCloudReg.Visible = true;

• }

•  

• protected void btnSubmit_Click(object sender, EventArgs e)

• {

• // ObjJobBO.DdlSoftware = ddlSW.SelectedItem.Text;

• // ObjJobBO.DdlPlatform = ddlPF.SelectedItem.Text;

• // ObjJObBAL.InsertJobManager(ObjJobBO);

• try

• {

• id = Convert.ToInt32(lblrequestid.Text);

• SqlConnection con = new SqlConnection(constring);

• con.Open();

• SqlCommand cmd = new SqlCommand("Insert into tblJobManager(ddlSoftware,ddlPlatform,RequestID,Request,Name) values('" + ddlSW.SelectedItem.Text + "','" + ddlPF.SelectedItem.Text + "'," + id + ",'" + lblrequestmesg.Text + "','" + lblrequestname.Text + "')", con);

• cmd.ExecuteNonQuery();

• }

Page 26: Nephele Implementation Work

Module : 4) Resource storageIf the resources are unavailable, then the Job Manager gets additional resources from the Cloud Persistent storage by providing the authenticated details for accessing the storage

Page 27: Nephele Implementation Work

The job Manager provides his authenticated details for accessing the storage of the Cloud

Page 28: Nephele Implementation Work

Upon successful registration a message would be displayed

Page 29: Nephele Implementation Work

A window would be displayed for searching the needed resources

Page 30: Nephele Implementation Work

Then the Job Manager enters his needed resources and searches for availability

Page 31: Nephele Implementation Work

Job manager selects all the resources depending upon the necessity

Page 32: Nephele Implementation Work

Upon the successful selection the resource would be added to the existence resources of the job manager

Page 33: Nephele Implementation Work

Then the assigned resources for particular request would be displayed

Page 34: Nephele Implementation Work

Module : 5) Task ManagersDepending upon the number of request sent by a particular client the Job Manager selects the tasks and assigns the tasks to task managers.

Page 35: Nephele Implementation Work

Code for Task Managers• public partial class AssignedTask : System.Web.UI.Page

• {

• string constring = ConfigurationManager.ConnectionStrings["PharmaConnection"].ToString();

• //string constring = @"Data Source=HOME-PC;Initial Catalog=CloudComputing;Persist Security Info=True;User ID=sa;Password=srinivas";

• protected void Page_Load(object sender, EventArgs e)

• {

• }

• protected void ddljob_SelectedIndexChanged(object sender, EventArgs e)

• {

• if (ddljob.SelectedItem.Text == "--select--")

• {

• btnTask1.Visible = false;

• btnTask2.Visible = false;

• Button1.Visible = false;

• }

Page 36: Nephele Implementation Work

Module: 6) Processing the TasksBy clicking upon the individual task managers three windows would be opened parallel in the

browser.• Task 1: To create a Student Registration page for

client as first request .

• Task2 : To create a Student Profile form for client as second request.

• Task3: To display the so entered details by using database

Page 37: Nephele Implementation Work
Page 38: Nephele Implementation Work
Page 39: Nephele Implementation Work
Page 40: Nephele Implementation Work
Page 41: Nephele Implementation Work
Page 42: Nephele Implementation Work
Page 43: Nephele Implementation Work
Page 44: Nephele Implementation Work
Page 45: Nephele Implementation Work

Data Base Tables

Page 46: Nephele Implementation Work

Sample Data base For Job Manager

Page 47: Nephele Implementation Work

ADVANTAGES

• Reduce the workload on cloud.

• Fast processing.

• Easy to maintain and troubleshoot.

• Easy to design as the infrastructure we need.

Page 48: Nephele Implementation Work

Thank You