Your SlideShare is downloading. ×
0
It’s in the cloud!

Provisioning and how the (pkg)cloud can help

Ken Perkins
Developer Advocate
@kenperkins
About Me
mmmmm….. Beer….

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

2
About Me
•

Beer!

•

Joined Rackspace March 2013

•

1st engineering hire at clipboard.com; Acquired by Salesforce.com Ma...
Overview
•

What is the cloud really? APIs on Datacenters!

•

Why provisioning for the cloud?

•

APIs are awesome, but w...
What is the “cloud”

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

5
It’s in the cloud!

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

6
What is the cloud anyway?
•

Datacenters & Applications with APIs

•

Infrastructure-as-a-service
• Compute, DNS, storage,...
Provisioning for the cloud

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

8
Provisioning for the cloud
•

On-Demand Environments

•

A/B Deployment

•

Integration with Orchestration

•

Continuous ...
Writing your own API wrapper sucks

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

10
Writing your own API wrapper sucks
•

But, but, require(„request‟) makes it so easy

•

Maintenance hell. Just add another...
But, Dedicated Servers!

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

12
But Dedicated Servers are Cheap!
•

Limited capacity

•

Provisioning lead time

•

Not truly on demand

•

Shifts control...
About pkgcloud

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

14
About pkgcloud
•

Multi-Cloud provisioning package for node.js

•

Created by Nodejitsu Dec 2011

•

Born out of node-clou...
Why pkgcloud?
•

Single convention, multiple clouds

•

Uniform vocabulary

•

Abstract out peculiarities of individual pr...
What is multi-cloud anyway?

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

17
What is multi-cloud?
•

Current Providers:
• Amazon, Azure, Digital Ocean, Joyent, Openstack, Rackspace

•

Generalized mo...
Multi-Service
•

Compute
• AWS, Azure, Rackspace, Openstack, Joyent, DigitalOcean, Telefonica

•

Storage
• AWS, Rackspace...
Example 1
Using pkgcloud with CloudFiles
Code @ http://j.mp/pkgcloud-cf

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

20
Example 2
Using pkgcloud with CloudServers
Code @ http://j.mp/pkgcloud-cs

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

21
Why is Rackspace involved?

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

22
Why is Rackspace involved?
•

We created OpenStack, and then gave it away!

•

We‟re all about community

•

Developer Adv...
What’s Next?

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

24
The Future…

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

25
The Future
•

Need to add more implementations of providers within services (i.e. make them truly
multi-cloud)

•

Refacto...
Takeaways
• Design for the cloud from the start
• Focus on work only you and your team can do; not writing
API wrappers

•...
Further Info
• Github:
– http://github.com/nodejitsu/pkgcloud
• IRC
– #pkgcloud on freenode
• Website:
http://developer.ra...
Q&A

RACKSPACE® HOSTING

|

WWW.RACKSPACE.COM

29
RACKSPACE® HOSTING
US SALES: 1-800-961-2888
RACKSPACE® HOSTING

|

© RACKSPACE US, INC.

|

|

|

5000 WALZEM ROAD

|

US ...
Upcoming SlideShare
Loading in...5
×

It's in the cloud

407

Published on

Provisioning and how the (pkg)cloud can help

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
407
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Trip to germany, only had pictures of me and beer 
  • Love to codeLove to talk about code
  • Quick intro to what we’re talking about…
  • It’s not REALLY in the cloud.
  • Take a datacenter, throw an API on top. Win.Create and tear down environments on a whimRamp up massive capacity at a moments noticeGreat for small start ups and low funded projects through enterprise (think netflix)
  • The cost of dynamic environments is often so little it’s not worth worrying about. Be careful to make the creation and the decommisioning automatic, as you can easily forget about massive amounts of resources and incur massive costs.Puppet/Chef/Ansible/Salt/Vagrant
  • Take a datacenter, throw an API on top. Win.Create and tear down environments on a whimRamp up massive capacity at a moments noticeGreat for small start ups and low funded projects through enterprise (think netflix)
  • 30 sites, nosingle repository for RackersThis leads to inconsistent answers to customersLearning curve for new Racker is large
  • Not yet published
  • Transcript of "It's in the cloud"

    1. 1. It’s in the cloud! Provisioning and how the (pkg)cloud can help Ken Perkins Developer Advocate @kenperkins
    2. 2. About Me mmmmm….. Beer…. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 2
    3. 3. About Me • Beer! • Joined Rackspace March 2013 • 1st engineering hire at clipboard.com; Acquired by Salesforce.com May 2013; 120k users; node.js based • Core committer for pkgcloud; 5th most commits; most in last year. • I kind of have a sports addiction… RACKSPACE® HOSTING | WWW.RACKSPACE.COM 3
    4. 4. Overview • What is the cloud really? APIs on Datacenters! • Why provisioning for the cloud? • APIs are awesome, but writing your own wrapper sucks • Why do you care? I can get a 32gb server for €49/mo... • Pkgcloud use cases & capabilities • Why did Rackspace hire my to work on this anyway? RACKSPACE® HOSTING | WWW.RACKSPACE.COM 4
    5. 5. What is the “cloud” RACKSPACE® HOSTING | WWW.RACKSPACE.COM 5
    6. 6. It’s in the cloud! RACKSPACE® HOSTING | WWW.RACKSPACE.COM 6
    7. 7. What is the cloud anyway? • Datacenters & Applications with APIs • Infrastructure-as-a-service • Compute, DNS, storage, load balancing, databases, email, orchestration, & more, all highly available • On demand resource creation • “Web-scale” • If you build it, they will come RACKSPACE® HOSTING | WWW.RACKSPACE.COM 7
    8. 8. Provisioning for the cloud RACKSPACE® HOSTING | WWW.RACKSPACE.COM 8
    9. 9. Provisioning for the cloud • On-Demand Environments • A/B Deployment • Integration with Orchestration • Continuous Integration/Continuous Deployment • DRY – Don‟t Repeat Yourself applies to infrastructure too! • From dev (maybe using vagrant?) to production RACKSPACE® HOSTING | WWW.RACKSPACE.COM 9
    10. 10. Writing your own API wrapper sucks RACKSPACE® HOSTING | WWW.RACKSPACE.COM 10
    11. 11. Writing your own API wrapper sucks • But, but, require(„request‟) makes it so easy • Maintenance hell. Just add another feature… • It‟s cool, I can open-source my wrapper • Idiosyncrasies of the API • It‟s all about priorities • Spend your time on stuff only you know: Your Product and Your App. RACKSPACE® HOSTING | WWW.RACKSPACE.COM 11
    12. 12. But, Dedicated Servers! RACKSPACE® HOSTING | WWW.RACKSPACE.COM 12
    13. 13. But Dedicated Servers are Cheap! • Limited capacity • Provisioning lead time • Not truly on demand • Shifts control away from the developer • $50/mo for cloud only gets you a 1-2gb server :S • Sometimes both is a winning strategy too RACKSPACE® HOSTING | WWW.RACKSPACE.COM 13
    14. 14. About pkgcloud RACKSPACE® HOSTING | WWW.RACKSPACE.COM 14
    15. 15. About pkgcloud • Multi-Cloud provisioning package for node.js • Created by Nodejitsu Dec 2011 • Born out of node-cloudservers npm package from Nodejitsu • Users include Rackspace (Cloud Monitoring), Bloomberg, Nodejitsu, Advanced Simulation Technology (Rossk), among hundreds of others RACKSPACE® HOSTING | WWW.RACKSPACE.COM 15
    16. 16. Why pkgcloud? • Single convention, multiple clouds • Uniform vocabulary • Abstract out peculiarities of individual providers and APIs • Node is great for command line tools too! RACKSPACE® HOSTING | WWW.RACKSPACE.COM 16
    17. 17. What is multi-cloud anyway? RACKSPACE® HOSTING | WWW.RACKSPACE.COM 17
    18. 18. What is multi-cloud? • Current Providers: • Amazon, Azure, Digital Ocean, Joyent, Openstack, Rackspace • Generalized models across providers • i.e. every compute provider has: client.createServer(options, function(err, server) { ... }); • Code is mostly portable (options signature for example) • Caveat emptor RACKSPACE® HOSTING | WWW.RACKSPACE.COM 18
    19. 19. Multi-Service • Compute • AWS, Azure, Rackspace, Openstack, Joyent, DigitalOcean, Telefonica • Storage • AWS, Rackspace • Database • Rackspace, Azure, IrisCouch, MongoHq, MongoLab, Redistogo • DNS • Rackspace • BlockStorage • Rackspace* • Load Balancing • Rackspace* RACKSPACE® HOSTING | WWW.RACKSPACE.COM 19
    20. 20. Example 1 Using pkgcloud with CloudFiles Code @ http://j.mp/pkgcloud-cf RACKSPACE® HOSTING | WWW.RACKSPACE.COM 20
    21. 21. Example 2 Using pkgcloud with CloudServers Code @ http://j.mp/pkgcloud-cs RACKSPACE® HOSTING | WWW.RACKSPACE.COM 21
    22. 22. Why is Rackspace involved? RACKSPACE® HOSTING | WWW.RACKSPACE.COM 22
    23. 23. Why is Rackspace involved? • We created OpenStack, and then gave it away! • We‟re all about community • Developer Advocates for PHP, Java, .Net, golang, Ruby, Python, node.js • We already have core committers on jClouds, Fog, libcloud, among others • We‟d rather engage and interface with existing open-source communities than try to fragment them RACKSPACE® HOSTING | WWW.RACKSPACE.COM 23
    24. 24. What’s Next? RACKSPACE® HOSTING | WWW.RACKSPACE.COM 24
    25. 25. The Future… RACKSPACE® HOSTING | WWW.RACKSPACE.COM 25
    26. 26. The Future • Need to add more implementations of providers within services (i.e. make them truly multi-cloud) • Refactor Databases entirely • More services (queuing, autoscale, orchestration, email, etc) • Command Line tools (rossk!) • … RACKSPACE® HOSTING | WWW.RACKSPACE.COM 26
    27. 27. Takeaways • Design for the cloud from the start • Focus on work only you and your team can do; not writing API wrappers • Put more control in the hands of you and your developers RACKSPACE® HOSTING | WWW.RACKSPACE.COM 27
    28. 28. Further Info • Github: – http://github.com/nodejitsu/pkgcloud • IRC – #pkgcloud on freenode • Website: http://developer.rackspace.com/devtrial • Contact info: ken.perkins@rackspace.com Twitter: @kenperkins RACKSPACE® HOSTING | WWW.RACKSPACE.COM 28
    29. 29. Q&A RACKSPACE® HOSTING | WWW.RACKSPACE.COM 29
    30. 30. RACKSPACE® HOSTING US SALES: 1-800-961-2888 RACKSPACE® HOSTING | © RACKSPACE US, INC. | | | 5000 WALZEM ROAD | US SUPPORT: 1-800-961-4454 SAN ANTONIO, TX 78218 | WWW.RACKSPACE.COM RACKSPACE® AND FANATICAL SUPPORT® ARE SERVICE MARKS OF RACKSPACE US, INC. REGISTERED IN TH E UNITED STATES AND OTHER COUNTRIES. | WWW.RACKSPACE.COM 30
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×