1 DevOp vs 1.000 servers - Amazon EC2 and Chef automation intro
Upcoming SlideShare
Loading in...5
×
 

1 DevOp vs 1.000 servers - Amazon EC2 and Chef automation intro

on

  • 7,598 views

Short intro into Chef and infrastructure automation on the phpunconf in Hamburg, Germany

Short intro into Chef and infrastructure automation on the phpunconf in Hamburg, Germany

Statistics

Views

Total Views
7,598
Views on SlideShare
3,899
Embed Views
3,699

Actions

Likes
5
Downloads
41
Comments
0

8 Embeds 3,699

http://www.deutsche-startups.de 3192
http://www.deutsche-startups.com 494
http://paper.li 8
http://rss.qoli.de 1
http://deutsche-startups.feedsportal.com 1
http://newsblur.com 1
http://www.365dailyjournal.com 1
https://www.google.de 1
More...

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

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

    1 DevOp vs 1.000 servers - Amazon EC2 and Chef automation intro 1 DevOp vs 1.000 servers - Amazon EC2 and Chef automation intro Presentation Transcript

    • DevOp
      1 Admin vs. 1.000 Serversphpunconf Hamburg 2011
      Thomas Metschke
      @tmetschke
      2011/09/10
      Peritor GmbH
    • Peritor GmbH
      Consulting, development and workshops since 2005
      2
      Databases
      Selection
      Integration
      Migration
      Automation
      Deployment
      Workflows
      Clusters
      Ruby & RoR
      Code Review
      Security Review
      Workshops
      Development
      Performance
      Analysis
      Optimization
    • 3
    • EC2 & EucalyptusCluster Management
      Automatic Configuration
      Self Healing Clusters
      Auto Scaling Clusters
      One Click Deployment
      One Click Cluster Cloning
      Monitoring & Alerting
      Logs & Accounting
      Firewalls & Backups
      Access & Rights Management
      4
    • Project life cycle
      Maturity &Decline
      Production& Growth
      Concept & Development
      Niche /
      EOL
      5
    • Cloud Computing
      6
    • 7
    • Amazon Elastic Compute Cloud
      Virtual servers via API call
      Pay per hour
      Different instance types in different regions
      8
    • Regions and Availability Zones
      Regions
      Multiple Availability Zones
      Slightly different costs
      Availability Zones
      4 x US-east – Northern Virginia
      3 x US-west – Northern California
      3 x EU-west – Ireland
      2 x AP-southeast – Singapore
      2 x AP-northeast – Tokyo
      9
    • Server types
      10
    • Amazon EC2 additional services
      11
      Elastic Load Balancing
      Virtual Private Cloud 
      Elastic IP
      CloudWatch
      Spot instances
      Elastic Block Storage
      And a lot more …
    • Amazon EC2
      12
    • 13
      Storage &IP Addresses
    • Single AZ Deployment
      14
    • Multi AZ Deployment
      15
    • Amazon EC2 is
      16
      Infrastructure as a Service
    • What you can build fast
      17
    • But what if …
      18
    • Heal and restore
      19
    • Scaling up and down
      Manual
      Time
      API
      Load
      20
      Different triggers make it possible to scale any part of the infrastructure or create new clusters
    • Deployment
      21
      Cluster
      Application
      Handle deployments of applications out of source control systems or via http downloads. Allow update code on running servers. User management and GUI.
    • Automationis needed
      • Configuration
      • Healing
      • Scaling
      • Deployment
      flickr.com/photos/torek/3788181603
      22
    • 23
      Chef– short intro
    • Chef
      Open Source Provisioning Tool
      Configures your servers
      Cookbooks & recipes
      Ruby DSL
      24
    • Chef Solo/Client
      25
      Chef
      Solo
      JSON
      push
      configuration
      (re)configure
      Cookbooks
    • Cookbooks
      26
      Cookbooks
      apache2
      memcached
      mysql
      zend
    • Memcached Cookbook
      27
      Cookbooks
      memcached
      attributes
      recipes
      templates
    • Memcached Cookbook
      28
      memcached
      attributes
      default.rb
      recipes
      service.rb
      install.rb
      templates
      default
      memcached.conf.erb
    • Attributes
      29
      cookbooks/memcached/attributes/default.rb
      Set defaultvaluesfor variables to use in recipes & templates
    • Recipes
      30
      cookbooks/memcached/recipes/service.rb
      Actualinstructions to execute
    • Recipes
      31
      cookbooks/memcached/recipes/install.rb
    • Templates
      cookbooks/memcached/templates/default/memcached.conf.erb
      32
    • /etc/chef/solo.json (configuration JSON)
      Chef Solo Run
      33
      Run Chef solo
    • Let’s talk about cute little Monsters
      34
    • Monster World
      1.6 million DAU
      8.2 million MAU
      Peak 130 servers
      ~ 240.000 requests per minute on average
      35
    • Basic architecture
      36
      App Server
      App Server
      EBS Volume
      Load Balancer
      App Server
      App Server
      DBs
      App Server
      App Server
      EBS Volume
      App Server
      Slave DBs
      App Server
      All configuration, management and deployment through Scalarium.
      No other tools needed.
      S3
    • Flexibility and Scalability
      1:5 facebook
      1:20 local social networks
    • Flexibility and Scalability
      Cost savings of ~ 40%!
    • DEMO?
      39
    • Want to try Scalarium
      SignUp on
      http://scalarium.com
      and use it for free as long as you are in test & dev mode
      Chef examples and guides
      https://github.com/scalarium/example-cookbooks
      http://wiki.opscode.com/display/chef/Resources
      40