PHP Architect Virtual Cloud summit
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

PHP Architect Virtual Cloud summit

on

  • 5,079 views

Slides from Virtual Cloud Summit - http://www.phparch.com/phparchitect-live-presents-the-cloud-summit/...

Slides from Virtual Cloud Summit - http://www.phparch.com/phparchitect-live-presents-the-cloud-summit/

Worksheet available from http://www.princesspolymath.com/princess_polymath/?page_id=506 for PaaS slides

Statistics

Views

Total Views
5,079
Views on SlideShare
5,068
Embed Views
11

Actions

Likes
0
Downloads
8
Comments
0

2 Embeds 11

http://www.linkedin.com 7
https://www.linkedin.com 4

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

PHP Architect Virtual Cloud summit Presentation Transcript

  • 1. What is this “cloud” stuff I keep hearing about and how do I use it? Kirsten Jones and Jeremy Johnstone Developer Advocates @ LinkedIn php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 2. What is "cloud" anyway? php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 3. Agenda • About Us • Cloud Overview • IaaS Comparison • PaaS Getting Started php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 4. Our Backgrounds • Jeremy • Used Linux for over 17 years • Experience scaling to billions of PV/m • Kirsten • Passionate about data and mashups • Self proclaimed scripting princess php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 5. Types of Cloud providers • Attack of the aaS: • IaaS • PaaS • SaaS php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 6. IaaS vs PaaS • Level of experience required • Flexibility • Customizability • Ease of setup / deployment • Risk php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 7. Types of IaaS providers • Computing • Storage • HPC • Telecom • more... php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 8. IaaS Comparison of three top compute providers Amazon, Rackspace, and Linode php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 9. Amazon EC2 • Six geographically diverse facilities • Moderately easy to use multiple zones • Linux and Windows support • Hourly billing php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 10. EC2 continued • HPC support • Automatic scaling • Elastic IP • Most storage included php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 11. Rackspace Cloud Servers • Three geographically diverse facilities • Relatively difficult to use multiple DCs • Linux and Windows support • Hourly billing • Fully managed options available php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 12. Linode cloud servers • Six geographically diverse facilities • Relatively easy to use multiple DCs • Linux distros only • Monthly billing • Closest to experience of a dedicated server php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 13. Common Functionality • Burstable resource usage • 99% or better SLA • Load balancing • APIs • DNS • Storage / CDN * php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 14. Use Cases • Conventional multi-machine web hosting • Short term / bursty usage • High performance computing • Persistent Storage • Redundancy • Managed Support php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 15. PaaS Getting Started with Google App Engine, Heroku and Joyent http://www.princesspolymath.com/princess_polymath/?page_id=506 php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 16. Platform as a Service • Build code and deploy to the cloud • Provides the application framework • More infrastructure: more lock-in • Choosing: Programming language, pricing scheme • All have free versions to test on php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 17. Quick Compare • Google App Engine - Easy to administer, nice tools, high lock-in • Heroku - Many languages, scalability, add-ons • Joyent - Focused on node.js, shell access, more configurability php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 18. Google App Engine • Native support for Python and Java • Other languages supported in JVM • Easy to deploy django applications • Integrate with SimpleDB, Google OAuth • Strong vendor lock-in php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 19. Getting Started with Google App Engine • Walkthrough at http://code.google.com/appengine/docs/python/ gettingstarted/ • Download the SDK: http://code.google.com/appengine/downloads.html • Command line functionality or App Engine Launcher (Win/OSX) php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 20. Creating Hello World • helloworld/helloworld.py print Content-Type: text/plain print print Hello, world! • helloworld/app.yaml application: helloworld version: 1 runtime: python api_version: 1 handlers: - url: /.* script: helloworld.py php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 21. Run the application • google_appengine/dev_appserver.py helloworld/ • By default it will run at :8080 on your local server • Automatically restarts when you change files • Real applications use webapp framework php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 22. Deploy to the Cloud • The dashboard can be reached at https://appengine.google.com/ • To deploy, you need to create an application ID on the dashboard, then edit app.yaml application: setting to match. • appcfg.py update helloworld/ • http://application-id.appspot.com php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 23. Heroku • Started with Ruby on Rails, now supports node.js, python, scala, clojure • Plugins to quickly add functionality - logging, couchdb, redis • Easy to control scaling of web and worker components of your application independently php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 24. Getting Started with Heroku • http://devcenter.heroku.com/articles/node-js • Get a Heroku user account: https://api.heroku.com/signup • Set up your local workstation • Node.js, NPM and Git • Login to heroku php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 25. Creating Hello World • server.js var http = require(http); var server = http.createServer(function (req, res) { res.writeHead(200, { "Content-Type": "text/plain" }) res.end("Hello worldn"); }); var port = process.env.PORT||process.env.port||8001; server.listen(port, function() console.log("Listening on " + port); }); php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 26. NPM Configuration • package.json { "name": "my-app", "version": "1.0.0", "scripts": { "start": "node server.js" } php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 27. Procfile • Procfile web: node server.js • Run foreman $ foreman start 14:39:04 web.1 | started with pid 24384 14:39:04 web.1 | Listening on 5000 • Test with a browser on localhost php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 28. Deploy to the Cloud • Create local Git repo $ git init $ git add . $ git commit -m "init" • Create heroku stack and deploy $ heroku create --stack cedar $ git push heroku master ... -----> Launching... done, v2 http://sharp-rain-871.herokuapp.com deployed to Heroku • Scale web processes $ heroku ps:scale web=1 php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 29. Joyent • http://wiki.joyent.com/display/node/ Getting+Started+with+a+Node.js +SmartMachine • Sign up for no.de: http://no.de/ • Set up your SSH key • “Order a machine” php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 30. Creating Hello World • Same node.js files as heroku example server.js package.json • Add config.json file (optional) web: node server.js php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 31. Deploy to the Cloud • Update ~/.ssh/config Host synedranodetest.no.de Port 57791 User node ForwardAgent yes • Create local Git repo $ git init $ git add . $ git commit -m "initial commit" • Push to joyent $ git remote add joyent synedranodetest.no.de:repo $ git push joyent master php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 32. Resources http://code.google.com/appengine/docs/python/ gettingstarted/ http://devcenter.heroku.com/articles/node-js http://wiki.joyent.com/display/node/Getting+Started +with+a+Node.js+SmartMachine php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011
  • 33. The end... =) Questions? php|architect Live! The Cloud Summit - 11/30/2011 "Whats this "cloud" stuff I keep hearing about and how do I use it?"Wednesday, November 30, 2011