T-110.5121 Mobile Cloud Computing Private Cloud & Assignment 2 19.10.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
Outline 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/ 2
Private Infrastructure as a Service (IaaS)
Cloud Middleware 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 4
Alternatives Eucalyptus (Eucalyptus Systems) Open Stack (Nasa, Rackspace, Cisco..) Open Nebula (C12G Labs) 5
Eucalyptus 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 6
Components Source: http://support.rightscale.com/09-clouds/eucalyptus/01-overview_of_eucalyptus 7
Deployment options 8
OpenStack 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) 9
Architecture 10
OpenNebula 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 11
Summary table Hypervisor Workload distr. VM live migration Eucalyptus 2.0 KVM, Xen, VMware Round Robin, Greedy, Power save OpenNebula 2.0 KVM, Xen, VMware Configurable scheduler No Yes Yes Auto scaling No No No OpenStack Cactus KVM, Xen, VMware, Hyper-V, LNC, UML Configurable scheduler APIs EC2 and S3 OCCI, EC2, own Hybrid cloud Yes with EC2 Yes, allows federation EC2, S3, OCCI, own Yes with EC2 Source: http://cse.aalto.fi/site1/wp-content/uploads/2011/05/lagerspetz-cloud-seminar.pdf 12
Agenda Understanding Private Cloud Traditional vs. Private Cloud Virtualization Web Interface Demo of OpenNebula 3.0 and Hybrid Cloud 13
Traditional vs. Private Cloud Internet Internet Router Router Router Router Firewall Firewall App Web AD CRM Web Host Host CRM AD Web DB Firewall DB DB Firewall DB 14
Private Cloud 15
Overview 16
Virtualization Physical Environment O.S H.W O.S 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 Virtual Environment O.S O.S O.S O.S H.W 17
Different type of hypervisors Type1 VMWare ESXi Microsoft HyperV Citrix Xen Server Type 2 KVM VMWare Server 18
Private Cloud setup 19
Hybrid Cloud 20
AutoScaler framework 21
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
OpenNebula in Practise Assignment 2
Location tracing mashup deployed on OpenNebula 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! 24
Service example: Location tracing Home 69% Work travel 6% Work 19% Free time 6% TeliaSonera: Innovation World Developer 25
Open API examples 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/ 26
Additional information 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 27
Learning goals for Assignment 2 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 28