t-110.5121 mobile cloud computing private cloud ... · • support private, public and hybrid cloud...

28
10/19/2011 Yrjö Raivio, Koushik Annapureddy, Ramasivakarthik Mallavarapu Aalto University, School of Science Department of Computer Science and Engineering Data Communications Software Email: yrjo.raivio(at)aalto.fi Course email: t-110.5121(at)tkk.fi © Y Raivio T-110.5121 Mobile Cloud Computing Private Cloud & Assignment 2 19.10.2011

Upload: others

Post on 20-May-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

10/19/2011

Yrjö Raivio, Koushik Annapureddy,

Ramasivakarthik Mallavarapu

Aalto University, School of Science

Department of Computer Science and Engineering

Data Communications Software

Email: yrjo.raivio(at)aalto.fi

Course email: t-110.5121(at)tkk.fi

© Y Raivio

T-110.5121 Mobile Cloud Computing

Private Cloud &

Assignment 2

19.10.2011

Page 2: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Outline

10/19/2011 2

• Private Infrastructure as a Service (IaaS)

• Eucalyptus

• OpenStack

• OpenNebula

• OpenNebula in practise

• Assignment 2

See also: http://cse.aalto.fi/studies/eit-2011/lecture-materials/

Page 3: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

10/19/2011

Private Infrastructure as a Service

(IaaS)

Page 4: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Cloud computing management software

• Manage infrastructure (private and public)

• Launch VMs into a cloud

• Resource scheduler

• Controls Life-cycle of VMs with the help of Hypervisors

• Storage management

• Network management

• Admin and user interfaces (API/CLI/GUI)

• Provide Image repository/marketplace

• Load balancer

• Accounting/Billing

Cloud Middleware

10/19/2011 4

Page 5: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Eucalyptus (Eucalyptus Systems)

• Open Stack (Nasa, Rackspace, Cisco..)

• Open Nebula (C12G Labs)

Alternatives

10/19/2011 5

Page 6: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Elastic Utility Computing Architecture Linking Your Programs To Useful Systems

• Enterprise Edition with support available

• Support for private and hybrid cloud

• Support for AWS APIs -> scale out to Amazon EC2 possible

• Storage component: Walrus (S3-compliant)

• Primarily as VM repository

• Support for Xen and KVM

• GridEngine will integrate Eucalyptus

Eucalyptus

10/19/2011 6

Page 8: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Deployment options

10/19/2011 8

Page 9: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• OpenStack Compute and OpenStack Object Storage,

• Support by various major enterprises

• Project launched by Rackspace and NASA

• Claims to be more scalable than others

• Heavily under development

• Ubuntu Enterprise cloud has OpenStack as core component (not Eucalyptus anymore)

OpenStack

10/19/2011 9

Page 10: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Architecture

10/19/2011 10

Page 11: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Support private, public and hybrid cloud

• Support Amazon EC2 + ElasticHosts

• Supports standard management API called OCCI (Open

Cloud Computing Interface) defined by Open Grid Forum

• KVM, Xen, VMware hypervisors are supported

OpenNebula

10/19/2011 11

Page 12: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Summary table

10/19/2011 12

Eucalyptus

2.0

OpenNebula

2.0

OpenStack

Cactus

Hypervisor KVM, Xen,

VMware

KVM, Xen,

VMware

KVM, Xen,

VMware,

Hyper-V, LNC,

UML

Workload distr. Round Robin,

Greedy, Power

save

Configurable

scheduler

Configurable

scheduler

VM live

migration

No Yes Yes

Auto scaling No No No

APIs EC2 and S3 OCCI, EC2,

own

EC2, S3,

OCCI, own

Hybrid cloud Yes with EC2 Yes, allows

federation

Yes with EC2

Source: http://cse.aalto.fi/site1/wp-content/uploads/2011/05/lagerspetz-cloud-seminar.pdf

Page 13: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Understanding Private Cloud

• Traditional vs. Private Cloud

• Virtualization

• Web Interface

• Demo of OpenNebula 3.0 and Hybrid Cloud

Agenda

10/19/2011 13

Page 14: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Traditional vs. Private Cloud

10/19/2011 14

Internet Internet

Router Router Router Router

Firewall Firewall

App Web AD CRM Web

Firewall DB DB

DB DB Firewall

Host Host CRM

AD

Web

Page 15: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Private Cloud

10/19/2011 15

Page 16: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Overview

10/19/2011 16

Page 17: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Virtualization

10/19/2011 17

O.S

O.S

O.S

Physical Environment

Virtual Environment

O.S

O.S

O.S

H.W

H.W

H.W

Why Virtualization ?

1) Cost Savings

2) Better Resource Utilization

3) Better Memory Management

4) Increased Availability

5) Better Resource Provisioning

6) Energy Saving

Page 18: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Different type of hypervisors

10/19/2011 18

Type1 • VMWare

ESXi

• Microsoft HyperV

• Citrix Xen Server

Type 2 • KVM

• VMWare Server

Page 19: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Private Cloud setup

10/19/2011 19

Page 20: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

Hybrid Cloud

10/19/2011 20

Page 21: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

AutoScaler framework

10/19/2011 21

Page 22: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio 10/19/2011

Questions?

Contacts:

Teacher: yrjo.raivio(at)aalto.fi, A122

Assistants: ramasivakarthik.mallavarapu(at)aalto.fi, PlayRoom

koushik.annapureddy(at)aalto.fi, A118

Course staff: t-110.5121(at)tkk.fi

Page 23: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio 10/19/2011

OpenNebula in Practise

Assignment 2

Page 24: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Task: • Create a Location Based Services (LBS) mashup

• Initial setup: • Familiarize with IWD API, find some new APIs • Develop code (most given in Noppa) and run in OpenNebula

• Input: • Trace a mobile for one week (once per hour) or one day (every 10 min) • Default mobile: 040 5601774 any time between 24.10-13.11 • Store longitude and latitude to database

• Output: • Deadline 20.11 • Input location data to GoogleMaps, visualise • Add other services such as route guide, service listings, adverts, weather

information etc. based on the route • Send recommendations with SMS or MMS to a given number in Noppa,

start your message with ”GX MY: xyz...” where X=your group number and M=your message number (max limit 10 messages per group)

• Test your implementation with your own number!

Location tracing mashup deployed on

OpenNebula

10/19/2011 24

Page 25: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

10/19/2011 25

Service example: Location tracing

Home

69%

Work

19%

Work

travel

6%

Free

time

6%

TeliaSonera: Innovation World Developer

Page 26: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Apps4Finland competition ongoing, examples:

• HSL Route Guide:

• http://www.youtube.com/watch?v=qGllzWt0acU

• Trains on Map:

• http://www.vr.fi/fi/index/aikataulut/liikennetilanne/junatkartalla.html

• Service Map:

• http://www.hel.fi/palvelukartta/

Open API examples

10/19/2011 26

Page 27: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Problem statement: • Trace one week, once per hour a 2G mobile phone using

network APIs • Show results using Google Maps • Other open APIs give a plus (example HSL route guide)

• Allowed programming languages: • PHP, Java

• TeliaSonera Location API request and send SMS/MMS given for PHP and Java

• More data for the programming part will be posted in Noppa by Friday 21.10

• Optional • You may trace yourself IF you have TeliaSonera SIM, also

prepaid works; in that case you have to register yourself to IWD

• If you want, you may also fetch your location data directly from your phone and trace yourself

Additional information

10/19/2011 27

Page 28: T-110.5121 Mobile Cloud Computing Private Cloud ... · • Support private, public and hybrid cloud • Support Amazon EC2 + ElasticHosts • Supports standard management API called

© Y Raivio

• Assignment 2 is not about: • Learning how to program in Java or PHP

• Goals: • Practical experience on OpenNebula • How to run VM in OpenNebula • Open APIs, especially operator network APIs

Learning goals for Assignment 2

10/19/2011 28