Download presentation
Presentation is loading. Please wait.
Published byAsher Miles Modified over 8 years ago
1
www.egi.eu EGI-InSPIRE RI-261323 EGI Webinar www.egi.eu EGI-InSPIRE RI-261323 Porting your application to the EGI Federated Cloud 17 Feb 2014 1
2
www.egi.eu EGI-InSPIRE RI-261323 Outline Part 1 –General Concept and Integration Strategies Webinar target & Objectives Terminology Integration strategies Part 2 –Porting your application to the EGI Federated Cloud Pre-requisites Command-line environment Manual server setup / Basic OS image contextualization Custom OS images Infrastructure & Application brokers 17 Feb 2014 2
3
www.egi.eu EGI-InSPIRE RI-261323 Target & Objectives Objective : Provide a general guide on how to port your application to a Cloud Infrastructure-as-a-Service Target : Applications / web services developers / administrators / service providers, with good system administration skills and minimal or null knowledge of Cloud technologies. 17 Feb 2014 3
4
www.egi.eu EGI-InSPIRE RI-261323 The “Cloud” Cloud: An IT provisioning concept of using remote virtual services that can be rapidly provisioned and released on-demand with minimal management effort. 17 Feb 2014 4 Give me a server 124.61.25.23
5
www.egi.eu EGI-InSPIRE RI-261323 The “Cloud” Cloud: An IT provisioning concept of using remote virtual services that can be rapidly provisioned and released on-demand with minimal management effort. 17 Feb 2014 5 Store this file http://thecloud.com/storage/myfile.data
6
www.egi.eu EGI-InSPIRE RI-261323 Cloud Technologies Computing : –Infrastructure-as-a-Service (IaaS): A Cloud service that provisions Virtual Machines on-demand. –Platform-as-a-Service (PaaS): A Cloud service which provides a platform to integrate algorithms and computational tasks, integrated with storage, database and other services –Software-as-a-Service (SaaS): A Cloud service which provides direct access to a particular software appliance on-demand, usually via a web interface. –Database-as-a-Service, DNS-as-a-Service, etc…: A set of basic services to simplify application building, porting and scaling Storage : –STorage-as-a-Service (STaaS): Object Storage –Personal Storage (Personal-STaaS): Dropbox-like storage 17 Feb 2014 6
7
www.egi.eu EGI-InSPIRE RI-261323 IaaS vs PaaS vs SaaS 17 Feb 2014 7 Infrastructure-as-a-Service Platform-as-a-Service Software-as-a-Service Software Algorithm
8
www.egi.eu EGI-InSPIRE RI-261323 Cloud IaaS Features IaaS : –Basic OS images: Set of pre-built generic Operative System images, with support for contextualization, security, etc... These images are usually kept updated by the cloud provider –Custom OS images: Possibility to import virtual disks and use them as OS images for newly created servers –Contextualization: Initial setup of the virtual machine performed at startup. Standard setup includes network and access credentials, while more advanced setup can be specified by the user via a custom contextualization script (custom user data) –API: Application Programming Interface to access the IaaS services, which can be integrated to dynamically manage the cloud virtual servers 17 Feb 2014 8
9
www.egi.eu EGI-InSPIRE RI-261323 IaaS Integration Porting of your application can be done at different levels, according to which and how many features of the Cloud IaaS service you want to exploit 17 Feb 2014 9 Manual Application Setup Automatic Application Setup Import Application Integrate Application with the API Integration Strategies Manual server setup Basic OS image with contextualization Custom OS image Infrastructure broker Application broker
10
www.egi.eu EGI-InSPIRE RI-261323 Manual Server Setup 17 Feb 2014 10 Infrastructure-as-a-Service Application Ask for a virtual server, with a specific OS and hardware resources The server is created and the access details (ex. IP) are returned to the user Connect to the virtual server via command line or graphical interface and install manually the application Final users starts to use the application
11
www.egi.eu EGI-InSPIRE RI-261323 Manual Server Setup Advantages: Easy Disadvantages: All the server management and configuration is done by hand Recommended for: Applications testing and development Simple self-packaged applications with minimal effort for installation and configuration “Disposable" applications (applications/web services which are started, used for a limited time, then destroyed and never started again) 17 Feb 2014 11
12
www.egi.eu EGI-InSPIRE RI-261323 Deployment Script Basic OS image with contextualization 17 Feb 2014 12 Infrastructure-as-a-Service Application Ask for a virtual server, with a specific OS, hardware resources, specifyiing the deployment script The server is created and the deployment script will install and configure the application Application is encapsulated into a deployment script Final users starts to use the application
13
www.egi.eu EGI-InSPIRE RI-261323 Basic OS Image with contextualization Advantages: Fast server configuration High portability Possibility to customize Disadvantages: Effort needed to build the contextualization script Need to maintain the contextualization script on OS updates Recommended for: Web service applications Applications which usually need to stay on 24/7, with relatively infrequent application updates and downtimes (ex. monthly). 17 Feb 2014 13
14
www.egi.eu EGI-InSPIRE RI-261323 Custom OS image 17 Feb 2014 14 Infrastructure-as-a-Service Application Ask for a virtual server, with a the custom OS image and specific hardware resources The server is created and will contain already the application Application is encapsulated into a custom virtual disk OS image Final users starts to use the application Application Import the custom OS image into the IaaS service image library
15
www.egi.eu EGI-InSPIRE RI-261323 Custom OS image Advantages: Very fast deployment (application is already installed) Possibility to support legacy applications Disadvantages: Possible compatibility issues Need to maintain a full OS image High effort to build the custom OS image Recommended for: Servers who are started and shut down very frequently, with low frequency of application and system update Legacy applications, when is not possible to port the application to a newer environment 17 Feb 2014 15
16
www.egi.eu EGI-InSPIRE RI-261323 Infrastructure Broker 17 Feb 2014 16 Infrastructure-as-a-Service The application is integrated into an Infrastructure broker, usually via custom deployment scripts Final users starts to use the application Infrastructure Broker On request of the user, the broker will perform a complex deployment on the Cloud IaaS Application Infrastructure broker may have advanced functionality, like high avaliability, dynamic load balancing, etc…
17
www.egi.eu EGI-InSPIRE RI-261323 Infrastructure broker Advantages: Possibility to manage complex deployments Possibility to access advanced features, like high avaliability, load balancing, dynamically scaling Disadvantages: Need to integrate your application into the broker Recommended for: Complex applications deployments which are started manually on a relatively frequent basis (eg. twice per week) 17 Feb 2014 17
18
www.egi.eu EGI-InSPIRE RI-261323 Application Broker 17 Feb 2014 18 Infrastructure-as-a-Service The application is integrated into an Application broker Application Broker Final users request the running of the application directly to the application broker Application The broker will perform the deployment of the application according to the requests of the user Application
19
www.egi.eu EGI-InSPIRE RI-261323 Application broker Advantages: Exploit parallel processing to speed-up single processing Load balancing and high availability is includes Possibility to setup complex resources usage policies Disadvantages: Need to integrate your application into the application broker Recommended for: Asynchronous processing, where workload is not constant but comes in burst and there is the need to dynamically adapt the infrastructure utilization to the application needs. Applications with high resources needs, with the need to minimize the cost of the resources usage 17 Feb 2014 19
20
www.egi.eu EGI-InSPIRE RI-261323 Summary Integration StrategyDescriptionRecommended for Manual server setup Basic OS image Manual server startup Manual configuration Test, self-cointaned applications, "disposable" applications Basic OS image with contextualization Basic OS image Automatic configuration Startup may be slow Web service applications, on 24/7, with monthly application updates Custom OS image Application is pre-installed Need to build and maintain the image Specials OS flavors, complex installation procedures, dynamic provisioning Infrastructure broker Automate multi-server deployment on multiple clouds sites Complex multi-server applications Application broker Adapting dynamically to the workload Automate split for parallel applications High computing resources requirements or burst processing 17 Feb 2014 20
21
www.egi.eu EGI-InSPIRE RI-261323 Q&A ??? 17 Feb 2014 21
22
www.egi.eu EGI-InSPIRE RI-261323 Outline Part 1 –General Concept and Integration Strategies Webinar target & Objectives Terminology Integration strategies Part 2 –Porting your application to the EGI Federated Cloud Pre-requisites Command-line environment Manual server setup / Basic OS image contextualization Custom OS images Infrastructure & Application brokers 17 Feb 2014 22
23
www.egi.eu EGI-InSPIRE RI-261323 Target & Objectives Objective : Provide a basic step-to-step guide on how to implement the basic IaaS application porting strategy in the EGI Federated Cloud Target : Applications / web services developers / administrators / service providers, with good system administration skills and minimal or null knowledge of Cloud technologies. 17 Feb 2014 23
24
www.egi.eu EGI-InSPIRE RI-261323 Pre-requisites 17 Feb 2014 24 Have access to the EGI Federated Cloud: Get a user certificate from EUGridPMA –http://www.egi.eu/how-to/get_a_certificate.htmlhttp://www.egi.eu/how-to/get_a_certificate.html Register to a Virtual Organization (who offers cloud resources) –For test and demo purposes, we will use the Federated Cloud Task Force VO: https://perun.metacentrum.cz/perun-registrar-cert/?vo=fedcloud.egi.eu&page=apps Find a site supporting your resources (send an email to ucst@egi.eu)ucst@egi.eu –For test and demo purposes, we will use the Federated Cloud Testbed: https://wiki.egi.eu/wiki/Fedcloud-tf:Testbed Get a test/demo environment: Install an hypervisor on your PC (we will use VirtualBox, www.virtualbox.org) www.virtualbox.org Install a basic Linux OS (we will use Scientific Linux 6.5)
25
www.egi.eu EGI-InSPIRE RI-261323 Step 0. Command-line environment 17 Feb 2014 25 As a preliminary step, we will setup a command-line Linux environment with a set of tools. Thus not required by all the integration strategies, the command-line environment is useful to quickly check, test and manage the IaaS virtual machines, using the Federated Cloud API clients Let’s login to a Linux OS (we will use Scientific Linux 6.5) and follow the guide on https://wiki.egi.eu/wiki/Fedcloud-tf:CLI_Environmenthttps://wiki.egi.eu/wiki/Fedcloud-tf:CLI_Environment
26
www.egi.eu EGI-InSPIRE RI-261323 Manual Server Setup 17 Feb 2014 26 Infrastructure-as-a-Service Application Ask for a virtual server, with a specific OS and hardware resources The server is created and the access details (ex. IP) are returned to the user Connect to the virtual server via command line or graphical interface and install manually the application Final users starts to use the application
27
www.egi.eu EGI-InSPIRE RI-261323 Manual Server Setup 17 Feb 2014 27 Let’s login to a Linux OS (we will use Scientific Linux 6.5) and follow the guide on https://wiki.egi.eu/wiki/Fedcloud-tf:Users:ApplicationPortingHowTo#1._Manual_server_setup_2 Steps: Browse AppDB and find a basic image Generate a set of SSH keys Create a contextualization script to inject the key Start the virtual server Login and setup the application
28
www.egi.eu EGI-InSPIRE RI-261323 Deployment Script Basic OS image with contextualization 17 Feb 2014 28 Infrastructure-as-a-Service Application Ask for a virtual server, with a specific OS, hardware resources, specifying the deployment script The server is created and the deployment script will install and configure the application Application is encapsulated into a deployment script Final users starts to use the application
29
www.egi.eu EGI-InSPIRE RI-261323 17 Feb 2014 29 Let’s login to a Linux OS (we will use Scientific Linux 6.5) and follow the guide on https://wiki.egi.eu/wiki/Fedcloud- tf:Users:ApplicationPortingHowTo#2._Basic_OS_image_with_contextualization_2 Steps: Browse AppDB and find a basic image Build a deployment script Build a contextualization script Start the server Basic OS image with contextualization
30
www.egi.eu EGI-InSPIRE RI-261323 Custom OS image 17 Feb 2014 30 Infrastructure-as-a-Service Application Ask for a virtual server, with a the custom OS image and specific hardware resources The server is created and will contain already the application Application is encapsulated into a custom virtual disk OS image Final users starts to use the application Application Import the custom OS image into the IaaS service image library
31
www.egi.eu EGI-InSPIRE RI-261323 17 Feb 2014 31 Let’s follow the guide on https://wiki.egi.eu/wiki/Fedcloud-tf:Users:ApplicationPortingHowTo#3._Custom_OS_image_2 Steps: Create a virtual machine on your local PC Configure the network and contextualization on the VM Install your software in the machine Package the VM Upload the image to the FedCloud repository Register the virtual appliance and its associated image(s) in AppDB Start the server Custom OS image
32
www.egi.eu EGI-InSPIRE RI-261323 Infrastructure & Application Broker 17 Feb 2014 32 Infrastructure-as-a-Service The application is integrated into an broker Broker Application The broker will perform the deployment of the application Application
33
www.egi.eu EGI-InSPIRE RI-261323 17 Feb 2014 33 Integration of applications into an Infrastructure or an Application broker is heavily dependent on the application itself and the broker solutions. As reference, we can follow the guides on: https://wiki.egi.eu/wiki/Fedcloud-tf:Users:ApplicationPortingHowTo#4._Infrastructure_broker_2 https://wiki.egi.eu/wiki/Fedcloud-tf:Users:ApplicationPortingHowTo#5._Application_broker_2 Infrastructure & Application Broker
34
www.egi.eu EGI-InSPIRE RI-261323 EGI Webinar www.egi.eu EGI-InSPIRE RI-261323 EGI Federated Cloud resources Wiki site: http://go.egi.eu/fedcloudhttp://go.egi.eu/fedcloud GitHub: https://github.com/EGI-FCTFhttps://github.com/EGI-FCTF Mailing List: fedcloud-tf@mailman.egi.eu Indico site: https://www.egi.eu/indico/categoryDisplay.py?categId=56https://www.egi.eu/indico/categoryDisplay.py?categId=56 User support: ucst@egi.euucst@egi.eu References for this tutorial and additional information https://wiki.egi.eu/wiki/Fedcloud-tf:Users https://wiki.egi.eu/wiki/Fedcloud-tf:Users:FAQ https://wiki.egi.eu/wiki/Fedcloud-tf:CLI_Environment https://wiki.egi.eu/wiki/Fedcloud-tf:Users:ApplicationPortingHowTo
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.