Upload
others
View
5
Download
0
Embed Size (px)
Citation preview
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
© 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/
10/19/2011
Private Infrastructure as a Service
(IaaS)
© 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
© Y Raivio
• Eucalyptus (Eucalyptus Systems)
• Open Stack (Nasa, Rackspace, Cisco..)
• Open Nebula (C12G Labs)
Alternatives
10/19/2011 5
© 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
© Y Raivio
Components
10/19/2011 7
Source: http://support.rightscale.com/09-Clouds/Eucalyptus/01-Overview_of_Eucalyptus
© Y Raivio
Deployment options
10/19/2011 8
© 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
© Y Raivio
Architecture
10/19/2011 10
© 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
© 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
© 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
© 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
© Y Raivio
Private Cloud
10/19/2011 15
© Y Raivio
Overview
10/19/2011 16
© 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
© Y Raivio
Different type of hypervisors
10/19/2011 18
Type1 • VMWare
ESXi
• Microsoft HyperV
• Citrix Xen Server
Type 2 • KVM
• VMWare Server
© Y Raivio
Private Cloud setup
10/19/2011 19
© Y Raivio
Hybrid Cloud
10/19/2011 20
© Y Raivio
AutoScaler framework
10/19/2011 21
© 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
© 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
© Y Raivio
10/19/2011 25
Service example: Location tracing
Home
69%
Work
19%
Work
travel
6%
Free
time
6%
TeliaSonera: Innovation World Developer
© 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
© 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
© 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