33
Nephelae’s Cloud Papadopoulos Andreas

Nephelae’s Cloud

  • Upload
    conroy

  • View
    66

  • Download
    2

Embed Size (px)

DESCRIPTION

Nephelae’s Cloud. Papadopoulos Andreas. Presentation Outline. Definition of Cloud Computing Cloud Computing Stack Open Source Cloud Computing Software Platforms Nephelae’s Configuration Eucalyptus How to use Nephelae’s infrastructure Demostration. Definition of Cloud Computing. - PowerPoint PPT Presentation

Citation preview

Page 1: Nephelae’s Cloud

Nephelae’s Cloud

Papadopoulos Andreas

Page 2: Nephelae’s Cloud

Presentation OutlineDefinition of Cloud ComputingCloud Computing StackOpen Source Cloud Computing Software

PlatformsNephelae’s ConfigurationEucalyptusHow to use Nephelae’s infrastructureDemostration

Page 3: Nephelae’s Cloud

Definition of Cloud Computing“Cloud computing is Internet-based computing, whereby

shared resources, software and information are provided to computers and other devices on-demand, like electricity” (Wikipedia)

“Cloud computing is a model for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction.” (NIST)

Page 4: Nephelae’s Cloud

Cloud Computing Stack

Page 5: Nephelae’s Cloud

Software As A Service - SAASA complete application is offered to the

customer, as a service on demandA single instance of the service runs on the

cloud and multiple end users are servicedCustomers' side: no need for upfront

investment in servers or software licensesProviders' side: the costs are lowered, since

only a single application needs to be hosted and maintained

SaaS offered by Google, Salesforce, Microsoft, Zoho, etc.

Page 6: Nephelae’s Cloud

Platform As A Service - PAASA layer of software, or development

environment is encapsulated and offered as a service

The customer has the freedom to build his own applications, which run on the provider's infrastructure

PaaS providers offer a predefined combination of OS and application servers, such as LAMP platform, restricted J2EE, Ruby etc.

PaaS example: Google's App Engine, Force.com etc.

Page 7: Nephelae’s Cloud

Infrastructure As A Service - IAASIaaS provides basic storage and computing

capabilities as standardized services over the network

Servers, storage systems, networking equipment, datacenter space etc. are pooled and made available to handle workloads

The customer would typically deploy his own software on the infrastructure.

IaaS examples: Amazon, GoGrid, 3 Tera etc.

Page 8: Nephelae’s Cloud

Anything As A Service - *AAS

Page 9: Nephelae’s Cloud

Impact of Cloud Computing – IT organization governance

Page 10: Nephelae’s Cloud

Open Source Cloud Computing Software Platforms

Eucalyptus (also commercial version available)

OpenNebulaNimbusCloudStackOpenStackOpenQRM…

Page 11: Nephelae’s Cloud

Nephelae’s ConfigurationNephelae runs Ubuntu Enterprise Cloud

Ubuntu Server 11.10Open source eucalyptus 2.0.2

KVM

Page 12: Nephelae’s Cloud

Started as a research project in the Computer Science Department at the University of California, Santa Barbara

Based on open-source software components that are used without modification

Compatible with Amazon's EC2, S3, and EBS interfaces

Hypervisors supported: KVM, Xen and VMware (only enterprise edition)

Page 13: Nephelae’s Cloud

Eucalyptus Architecture

Page 14: Nephelae’s Cloud

Nephelae Architecture   CPU Model CPU

sTotal Cores

Total RAM (GB)

Storage Capacity (TB)

Cloud Controller - Walrus

[email protected] 2 8 74 1.6

Cluster and Storage Controller

[email protected] 2 8 74 1.6

Node Controller 1

[email protected] 2 8 60 1.6

Node Controller 2

[email protected] 2 12 74 1.6

Node Controller 3

[email protected] 2 12 74 1.6

Node Controller 4

[email protected] 2 12 74 1.6

Node Controller 5

[email protected] 2 12 24 460GB

Page 15: Nephelae’s Cloud

Eucalyptus ArchitectureCloud Controller (CLC)

ClC is a collection of three web services Resource Services

Manipulation and monitoring of the system component and virtual machines and network Data Services

Managing of the persistent user and system data Interface Services

Authentication protocol translation User-visible interfaces

Cluster Controller (CC) Schedule incoming instance run requests to specific NCs, FCFS depending on

VM-type Control the instance virtual network overlay Report information about NCs

Node Controller (NC) NC is executed on every node that is designed for hosting VM It discovers the characteristics of the physical resource It replies to describeResource, describeInstances, runInstance,

terminateInstance requests

Page 16: Nephelae’s Cloud

WalrusStorage controllerEucalyptus users can stream data into/out of the cloudStorage service for VM

compressencrypt split cache

Implements REST (via HTTP) SOAP style of software architecture for distributed hypermedia systems such as the World Wide Web.

Page 17: Nephelae’s Cloud

Block Storage (BS)Compatible with Elastic Block Store, BS

allows volumesCreation (from snapshot)MonitoringAttaching DetachingDeletion

Page 18: Nephelae’s Cloud

Eucalyptus Virtual Network OverlayEucalyptus provides four network configurationsSYSTEM: VMs request IP address trough DHCP

requests STATIC: MAC ↔ IP address tupleMANAGED: VM attached to a specific network

(private or public)Isolation

MANAGED NO-VLAN: Same as MANAGED without vlan support

Nephelae is configured in SYSTEM mode

Page 19: Nephelae’s Cloud

How to use Nephelae’s Infrastructure - Outline

Create an account Download and install credentials Install euca2oolsStart-up instancesAttach volumesUse Walrus storageShutting-down instances

Page 20: Nephelae’s Cloud

Create an account Use the Eucalyptus Web Interfaces at

https://Nephelae.in.cs.ucy.ac.cy:8443 /

On the Login page click on Apply for account.On the next page that pops up fill out ALL the

Mandatory AND optional fields of the form. Once complete click on signup and the Eucalyptus

administrator will be notified of the account request.You will get an email once the account has been

approved.Click on the link provided in the email to confirm and

complete the account creation process.

Page 21: Nephelae’s Cloud

Downloadcredentials

Download your credentials as a zip file from the web interface for use with euca2ools

Page 22: Nephelae’s Cloud

Use credentials Save this credential file euca2-

{username}-x509 and extract it for local use

Source the eucarc file using the command source eucarc

mkdir ~/.eucacd ~/.eucaunzip euca2-{username}-x509.zipchmod 0700 ~/.eucachmod 0600 ~/.euca/*

source ./eucarc

Page 23: Nephelae’s Cloud

Install euca2oolsEuca2ools are the command line

clients used to interact with Eucalyptus.

Download euca2ools from http://open.eucalyptus.com/downloads

Instructions for various Linux platforms are available on the download page.

Page 24: Nephelae’s Cloud

Create your KeypairCreate a keypair and add the public key to

eucalyptus.$ euca-add-keypair mykey | tee mykey.private$ chomd 0600 mykey.private

List your existing keypairs$ euca-describe-keypairs

Page 25: Nephelae’s Cloud

Start-up instancesTesting your setup

Use euca-describe-availability-zones to test the setup.

List existing images

$ euca-describe-availability-zones AVAILABILITYZONE NephelaeCC1 NephelaeCC

$ euca-describe-images

IMAGE   emi-E240106D    debian/debian.5-0.x86-64.img.manifest.xml admin   available       public  x86_64  machine eki-4A8E123C    eri-83C01326IMAGE   emi-C9A8102E    centos/centos.5-3.x86.img.manifest.xml  admin   available public          i386    machine eki-36321225    eri-6DF012FE    instance-storeIMAGE   emi-485F121D    ubuntu-9.04/ubuntu.9-04.x86-64.img.manifest.xml admin   available   public x86_64  machine eki-8F121374    eri-CB0D1458    instance-storeIMAGE   emi-C9CD1067    ubuntu11/ubuntu_11__.img.manifest.xml   admin   available public          x86_64  machine eki-559B1299    eri-8EE4137F    instance-store………

Page 26: Nephelae’s Cloud

Start-up instancesSelect image and run

$ euca-run-instances -k mykey -n 1 emi-C9CD1067 -t c1.medium

View status of your instances$ euca-describe-instances

Availability ZonesVMType Ma

xCPU

(#cores)

Ram (MB)

Disk (GB)

m1.small 88 1 256 2c1.mediu

m88 1 512 5

m1.large 44 2 1024 10m1.xlarg

e44 2 2048 20

Page 27: Nephelae’s Cloud

Connect to your instancesView the ip address of your instance using

$ euca-describe-instancesConnect as root with ssh

$ ssh –i mykey.private [email protected]

Install your programsChanges will be lost on shutdown (halt) or

terminate

Page 28: Nephelae’s Cloud

Use BS - Attach volumesPersistent StorageCreate volume using:

$ euca-create-volume –-size 5G –-zone NephelaeCC1Attach Volume to instance

$ euca-attach-volume –i instanceId –d vda volumeIDUse fdisk to create primary partition

vm$ fdisk /dev/vdaCreate filesystem with mkfs

vm$ mkfs.ext3 /dev/vdaMount locally with mount

vm$ mkdir /ebs ; mount /dev/vda1 /ebsUnmount and detach when done

vm$ umount /ebs $ euca-detach-volume volumeID

Page 29: Nephelae’s Cloud

Use Walrus storageDownload s3cmd 0.9.8.3Get patch from eucalyptus siteCreate your config file to include your

SECRET and ACCESS key (from eucarc) and Nephelae host

Use s3cmd to create/delete/upload/download to/from walrus$ s3cmd -c s3cfg.walrus mb s3://BUCKET$ s3cmd -c s3cfg.walrus put FILE [FILE...]

s3://BUCKET[/PREFIX]S3cmd can also be installed on a vm

Page 30: Nephelae’s Cloud

Shutting-down instances Unmount and detach any volumes

Log out from the vm$ euca-terminate-instance instanceId

Page 31: Nephelae’s Cloud

User Limits1 bucket maximum size 30Gb1 block storage maximum size 30Gb

No instances limit

Page 32: Nephelae’s Cloud

Demo

Page 33: Nephelae’s Cloud

Nephelae’s Cloud

Papadopoulos Andreas

Thank you

http://grid.ucy.ac.cy/Nephelae/