Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

JUDCon 2010 Boston : CoolingTower and CirrAS

830 views

Published on

Presented by Bob McWhirter at JUDCon 2010 in Boston.

Published in: Technology
  • Be the first to comment

JUDCon 2010 Boston : CoolingTower and CirrAS

  1. 1. CoolingTower and CirrAS Bob McWhirter JBoss Fellow
  2. 2. CoolingTower and CirrAS Bob McWhirter JBoss Fellow
  3. 3. Who is Bob? • JBoss Fellow • Chief Architect of Middleware Cloud Computing • Founder of... • The Codehaus • Drools • TorqueBox
  4. 4. Who is Marek? • Marek Goldmann • Polish! • Electronic musician • CirrAS Lead
  5. 5. Who is Jim? • Jim Crossley • Loves grits! • Acoustic musician • CoolingTower Lead
  6. 6. Background Software (SaaS) Platform (PaaS) Simplified “cloud” stack Infrastructure (IaaS)
  7. 7. Background Software (SaaS) What you write Platform (PaaS) Infrastructure (IaaS)
  8. 8. Background Software (SaaS) What you write Platform (PaaS) What you target Infrastructure (IaaS)
  9. 9. Background Software (SaaS) What you write Platform (PaaS) What you target Infrastructure (IaaS) Where it runs
  10. 10. Background Software (SaaS) What you write Platform (PaaS) What you target You don’t want to care Infrastructure (IaaS) Where it runs
  11. 11. Background Software (SaaS) What you write Platform What you target But you want JavaEE (PaaS) Infrastructure (IaaS) and easy it runs Where
  12. 12. CoolingTower A simple-to-deploy (and manage) cloud catalyst.
  13. 13. Deltacloud To be cloud-agnostic, CoolingTower uses Deltacloud to interface with providers.
  14. 14. Deltacloud CoolingTower Cloud Deltacloud
  15. 15. Deltacloud $ gem install deltacloud-core $ deltacloudd -i ec2 Starting Deltacloud API :: ec2 :: http://localhost:3001/api >> Thin web server (v1.2.7 codename No Hup) >> Debugging ON >> Maximum connections set to 1024 >> Listening on localhost:3001, CTRL+C to stop
  16. 16. Bootstrap your PaaS CoolingTower is a simple Ruby-on-Rails application you deploy in JBoss. *See our TorqueBox talk at 5pm!
  17. 17. CoolingTower $ cd $JBOSS_HOME $ ./bin/run.sh ... JBossAS [6.0.0.20100429-M3 "Neo"] Started in 43s:728ms
  18. 18. CoolingTower Deltacloud localhost
  19. 19. Role #1 “I want my app running”
  20. 20. Developer Portal
  21. 21. Developer Portal
  22. 22. Remember! Besides CoolingTower and the Deltacloud adapter, there is no AS or anything running... yet.
  23. 23. Cold start!
  24. 24. Your app is now deployed.
  25. 25. What just happened?
  26. 26. CirrAS CoolingTower just used Deltacloud to launch a JBoss AS cluster, plus a front- end tier of mod_cluster. These are CirrAS appliances.
  27. 27. First, send out a scout... • Launch a management node, the spine upon which the PaaS rests. • Cluster-specific configuration passed to management node. • AWS credentials • S3 bucket for clustering • Coordinates the weaving of all other nodes. • Includes RHQ/JON/JOPR.
  28. 28. IaaS Provider CoolingTower Deltacloud Management localhost
  29. 29. Then launch the tiers... •Launch 1 node of EWS • mod_cluster • Apache httpd •Launch 1 node of EAP • JBossAS
  30. 30. IaaS Provider EWS CoolingTower Deltacloud Management localhost EAP
  31. 31. Management Node, activate! Management node watches the IaaS, notices new nodes appearing.
  32. 32. Cluster Configuration • Tells each EAP node about each EWS node • Tells EAP nodes about the S3 bucket for clustering. • Restarts services on nodes as appropriate.
  33. 33. IaaS Provider EWS CoolingTower Deltacloud Management localhost EAP
  34. 34. Cluster Formation •EAP nodes rendezvous on S3 for cluster discovery. •EAP node informs EWS nodes of cluster view.
  35. 35. IaaS Provider EWS CoolingTower Deltacloud Management localhost EAP S3
  36. 36. There ya go... From nothing to minimal 2-tier cluster in 1 click. but that’s not all!
  37. 37. Your app gets deployed CoolingTower wakes up, notices an EAP node is ready, and deploys your app.
  38. 38. IaaS Provider EWS CoolingTower Deltacloud Management localhost EAP S3
  39. 39. Gives you a URL
  40. 40. mod_cluster status
  41. 41. Role #2 “I gotta keep all of this stuff running”
  42. 42. PaaS Administrator Ultimately a PaaS is a shared resource. One administrator for N applications.
  43. 43. Scale To scale a tier, administrator simply launches more nodes. CirrAS appliances have been intentionally designed to be automatically horizonally scalable.
  44. 44. *c lic k*
  45. 45. I love coffee. Now would be a good time to enjoy some.
  46. 46. What’s going on? While we enjoy our beverage... • Another CirrAS node starts up. • Management node notices. • Shoots configuration (S3, EWS) to it. • It joins the cluster. • Neighbor hands the app to it. • It becomes an available worker.
  47. 47. Oh yeah, JON
  48. 48. Embedded JOPR
  49. 49. Role #3 “I’m a user, and I want to use your app a whole lot.”
  50. 50. Our user...
  51. 51. Take a node out of service.
  52. 52. Scale more!
  53. 53. For less than the cost of a cup of coffee... 1 EWS $0.08 5 EAP $0.40 1 Management $0.08 $0.56
  54. 54. Roadmap • Application versions • Multiple clusters/environments • Per-application configuration • ELB/HAProxy support
  55. 55. Thanks!
  56. 56. Q&A
  57. 57. Resources http://jboss.org/stormgrind/ # Projects http://cloudpress.org/ # Blog #stormgrind # IRC @stormgrind # Twitter @marekgoldmann @jcrossley3 @bobmcwhirter

×