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.

0

Share

Download to read offline

Clocker and OpenStack

Download to read offline

Talk given at OpenStack online meetup on 19 August 2014

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Clocker and OpenStack

  1. 1. Clocker  and  OpenStack   Andrew  Kennedy,  Dave  Nielsen  and  Andrea  Turli   OpenStack  Meetup,  19  August  2014    
  2. 2. IntroducCon   •  Speakers   –  Andrew  Kennedy  and  Andrea  Turli   –  Dave  Neilsen   •  Overview   –  Docker   –  Brooklyn   –  Campsite   –  OpenStack  
  3. 3. Docker   •  IntroducCon   •  Popularity   •  History   •  Ecosystem  
  4. 4. Docker  
  5. 5. Docker   •  Technical   •  Containers   •  Micro  Services   •  Dockerfiles   –  ConfiguraCon   –  Volumes   –  Composable  
  6. 6. Docker   •  Cloud  Usage   •  OpenStack   •  Manual  Process   –  CredenCals  and  Keys   –  OperaCng  System  and  Hardware   –  Download  and  InstallaCon   –  ConfiguraCon   –  Dockerfile  per  Service  
  7. 7. Brooklyn   •  Brooklyn   –  ApplicaCon  Management  PlaOorm   –  Autonomic  CompuCng   •  YAML  Blueprint   –  Services  (EnCCes)   –  ConfiguraCon   –  ATributes  (Sensors)   –  AcCons  (Effectors)  
  8. 8. Clocker   •  Infrastructure   –  Apache  jclouds  Supported  Cloud  with  CredenCals   •  Docker  Host   –  Running  the  Docker  Service   –  REST  API  Access  Using  jclouds  1.8.0  Docker  Driver   –  Virtual  Machine  Access  Using  SSH   –  Cluster  of  Containers   •  Docker  Container   –  Running  Services  and  Commands  for  EnCty  
  9. 9. Clocker  
  10. 10. DemonstraCon   Deploying  a  Docker  Cloud  
  11. 11. Clocker   •  Demand  Side   –  Create  a  New  Container   –  Resize  Cluster  of  EnCCes   –  AutoScaler  Policy  ATached  to  Cluster   •  Supply  Side   –  Placement  Strategies  for  Containers   –  Depth  or  Breadth  First   –  Affinity  Rules   –  Resource  AllocaCon  (CPU  Shares,  Load,  Memory,  …)  
  12. 12. Clocker   •  ApplicaCon  Deployment   –  CAMP  Blueprint  in  YAML   –  Java  Classes   –  Mostly  Unchanged   •  Docker  Specific  ConfiguraCon   –  Affinity  Rules  or  Placement  Strategy   –  Dockerfile  or  Image  ID   –  CPU  or  Memory  Shares   –  Docker  Volumes  
  13. 13. DemonstraCon   ApplicaCons  on  the  Docker  Cloud  
  14. 14. Campsite  ApplicaCon   •  GitHub  Repository   •  Components   –  PHP  Web  ApplicaCon   –  Node.JS  RESTful  API   –  MySQL  Database   •  Cloud  Services   –  Email   –  Message  Queue   –  Object  Store  
  15. 15. Campsite  Blueprint   id:  campsite-­‐application   locations:   -­‐  jclouds:hpcloud-­‐compute   services:   -­‐  serviceType:  brooklyn.entity.database.mysql.MySqlNode   -­‐  serviceType:  brooklyn.campsite.entity.CampsiteWebapp      brooklyn.config:          objectStorage:  AWSObjectStorage          queueService:  AWS_SQS          emailService:  AWS_SES          databaseHost:  $brooklyn:component("mysql").attributeWhenReady("host.name")          databasePort:  $brooklyn:component("mysql").attributeWhenReady("mysql.port")          databaseUser:  "campsite"          databasePassword:  "p4ssw0rd"          domainName:  "campsite.org"   -­‐  serviceType:  brooklyn.campsite.entity.CampsiteApi  
  16. 16. Campsite  Blueprint   •  Java  Components   –  CampsiteWebapp  PHP  EnCty   –  CampsiteApi  Node.JS  EnCty   •  Campsite  ApplicaCon   –  ConfiguraCon  ProperCes   –  Webapp,  API  and  MySQL  Database  EnCCes   •  YAML  Blueprint  
  17. 17. DemonstraCon   Campsite  Deployment  
  18. 18. Campsite  Cluster   •  Add  Cluster  CapabiliCes   •  No  Extra  Coding   –  Just  Write  YAML  Blueprint   –  CampsiteWebapp  Already  Set  Up   –  Stateless  Service  (Uses  SQL  Database)   –  Only  Run  Database  Create  and  Install  Once   •  New  Services   –  Nginx  Load  Balancer  EnCty   –  Rabbit  MQ  Broker  EnCty  
  19. 19. DemonstraCon   Campsite  Cluster  Blueprint  
  20. 20. Summary   •  Docker  Containers   –  Micro  Services   •  LimitaCons   –  MulCple  Hosts   –  Management   •  Clocker   –  ApplicaCon  Blueprints   –  OrchestraCon  
  21. 21. Web  Resources   http://clocker.io/   http://brooklyn.io/   https://github.com/brooklyncentral/campsite/   https://github.com/dnielsen/campapp/   http://docker.io/   http://davenielsen.wordpress.com    

Talk given at OpenStack online meetup on 19 August 2014

Views

Total views

790

On Slideshare

0

From embeds

0

Number of embeds

7

Actions

Downloads

12

Shares

0

Comments

0

Likes

0

×