application programming in cloud via swift swift tutorial, ccgrid 2013, hour 2 ketan maheshwari
DESCRIPTION
Cloud Model of Computation Compute resources drawn as VMs from a pool of hardware resources One time configuration Economical: Computation power “outsourced” More control: “root” access to VMs gives more setup optionsTRANSCRIPT
![Page 1: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/1.jpg)
Application Programming in Cloud via Swift
Swift Tutorial, CCGrid 2013, Hour 2Ketan Maheshwari
![Page 2: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/2.jpg)
Overview
Part I– Cloud model of computation– Amazon ec2 setup– Tests accessing ec2 VM nodes
Part II– Swift setup– Swift test drive
Part III– Running a mock app using Swift on Cloud– Exercise
![Page 3: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/3.jpg)
Cloud Model of Computation
Compute resources drawn as VMs from a pool of hardware resources One time configuration Economical: Computation power “outsourced” More control: “root” access to VMs gives more setup options
![Page 4: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/4.jpg)
Amazon EC2 setup
For this tutorial, we encourage using Amazon EC2 cloud computing environment
Any other cloud could be used if EC2 not available Create VMs
![Page 5: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/5.jpg)
Swift
Application programming language– aka parallel scripting– aka workflow framework
Suited to a variety of applications Interfaced to
– Clouds – Grids– Clusters– Supercomputers
![Page 6: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/6.jpg)
What we need: Cloud side
A number of VM instances Onetime Setup
– firewalls– installation
Sanity test IP of instances
![Page 7: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/7.jpg)
What we need: Application Side
App executable installed on cloud instances– Making a single cloud image and drawing instances from it is convenient
Data workflow
![Page 8: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/8.jpg)
What we need: Swift side
Swift installed on submit host Make sure perl is installed on cloud instances
![Page 9: Application Programming in Cloud via Swift Swift Tutorial, CCGrid 2013, Hour 2 Ketan Maheshwari](https://reader036.vdocuments.mx/reader036/viewer/2022082510/5a4d1b0d7f8b9ab05998c20e/html5/thumbnails/9.jpg)
Steps
Encode workflow in Swift