Automating Your Infrastructure
Upcoming SlideShare
Loading in...5
×
 

Automating Your Infrastructure

on

  • 1,238 views

 

Statistics

Views

Total Views
1,238
Views on SlideShare
1,238
Embed Views
0

Actions

Likes
0
Downloads
41
Comments
0

0 Embeds 0

No embeds

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

Automating Your Infrastructure Automating Your Infrastructure Presentation Transcript

  • Automating Your InfrastructureAntons Kranga, OUG Harmony 2012, 1, June 2012
  • Name: Antons KrangaRole: Technology Architect, Technology TrainerWorks: Accenture, Member of JUG LatviaExperience: 10+ in IT, JavaCurrent assignment: Cloud Computing.
  • Problem
  • Trends in ITCopyright © 2012 Accenture All rights reserved. © behindthecloud.net 4
  • IT complexity and the timeline Virtual Nodes Physical Hardware 1980 1990 2000 2010+ Mainframe Client/Server Datacenter Cloud1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015Copyright © 2012 Accenture All rights reserved. © Mitchell Hill, Opscode, 5
  • Managing IT Complexity Web Servers Application Servers DatabaseCopyright © 2012 Accenture All rights reserved. 6
  • Managing IT Complexity +1 server Web Servers Application Servers DatabaseCopyright © 2012 Accenture All rights reserved. 7
  • Managing IT Complexity 20+ changes Web Servers Application Servers DatabaseCopyright © 2012 Accenture All rights reserved. 8
  • Take IT Into the CloudCopyright © 2012 Accenture All rights reserved. 9
  • Take IT Into the Cloud Cloud gives huge Virtualization PowerCopyright © 2012 Accenture All rights reserved. 10
  • Take IT Into the Cloud Cloud gives huge Virtualization Power at low cost PowerCopyright © 2012 Accenture All rights reserved. 11
  • Take IT Into the Cloud …and Cloud Infrastructure IncreasesCopyright © 2012 Accenture All rights reserved. 12
  • Take IT Into the Cloud Cost of change increases exponentiallyCopyright © 2012 Accenture All rights reserved. 13
  • Take IT Into the Cloud As well as infrastructure Changes complexity increases exponentiallyCopyright © 2012 Accenture All rights reserved. 14
  • Take IT Into the Cloud How will we manage our infrastructure?Copyright © 2012 Accenture All rights reserved. 15
  • Challenges of Cloud Adoption • Virtualization Efficiency • Infrastructure and Configuration Complexity • Security, Availability etc • Cloud Provider Lock-in • Critical Skills ShortageCopyright © 2012 Accenture All rights reserved. 16
  • Example: Log Collection Becomes Complex Example of Facebook ScribeCopyright © 2012 Accenture All rights reserved. 17
  • How to survive in the Clouds?
  • Why Automate? • Scalable Infrastructure • Accelerate Changes • Cloud Provider Abstraction • Leverage Skills Demand • Manage ConfigurationCopyright © 2012 Accenture All rights reserved. 19
  • Configuration Management Tools • Tight Integration with Infrastructure • Enterprise Ready • Write DSL (not shell commands) • Promote Reuse • Active CommunityCopyright © 2012 Accenture All rights reserved. 20
  • Chef Overview
  • What is Chef?Infrastructure automation platformCopyright © 2012 Accenture All rights reserved. 22
  • What is Chef? Chef Users write Cookbooks and Recipes to describe infrastructure in codeCopyright © 2012 Accenture All rights reserved. 23
  • Anatomy of the Cookbook Cookbook Configuration Attributes Recipe ArtifactsCopyright © 2012 Accenture All rights reserved. 24
  • Anatomy of the Cookbook Cookbook Written in Ruby DSL Configuration Attributes Recipe ArtifactsCopyright © 2012 Accenture All rights reserved. 25
  • Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Resource Recipe operates with platform agnostic resourcesCopyright © 2012 Accenture All rights reserved. 26
  • Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Resource Ensures that configuration matches to the Providers platform Providers ProvidersCopyright © 2012 Accenture All rights reserved. 27
  • Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Node and Resource cookbook configuration properties Providers Providers ProvidersCopyright © 2012 Accenture All rights reserved. 28
  • Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Cookbook Resource contain other configuration information Providers Providers ProvidersCopyright © 2012 Accenture All rights reserved. 29
  • Anatomy of the Cookbook Cookbook Configuration Attributes Recipe Artifacts Resource Templates Files Libs Providers Providers ProvidersCopyright © 2012 Accenture All rights reserved. 30
  • Chef Architecture Chef Server (private or hosted) Chef Server (Rest API) Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 31
  • Chef Architecture Chef Server (private or hosted) Chef Server (Rest API) May have WebUI Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 32
  • Chef Architecture Chef Server (Rest API) Nodes in your infrastructure, managed by chef server Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 33
  • Chef Architecture Stores all nodes configuration attributes, cookbooks cookbooks etc Chef Server CouchDB attributes (Rest API) … databags Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 34
  • Chef Architecture All data stored in JSON cookbooks Chef Server CouchDB attributes (Rest API) … databags Remote Node Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 35
  • Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Can be used by user or Remote Node cookbook Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 36
  • Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Can be used by Provides powerful user or search capabilities Remote Node cookbook for CoachDB Remote Node Remote NodeCopyright © 2012 Accenture All rights reserved. 37
  • Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node Remote Node Stores and forwards data from Chef to solr indexerCopyright © 2012 Accenture All rights reserved. 38
  • Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node Updates solr Remote Node indexer Stores and forwards data from Chef to solr indexerCopyright © 2012 Accenture All rights reserved. 39
  • Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node has All recipes RabbitMQ been combined in Remote Node Remote list and run Node executed by chef client Chef ClientCopyright © 2012 Accenture All rights reserved. 40
  • Chef Architecture Chef client uses cookbooks for execution “pull” strategy which is Chef Servermore flexible in CouchDB attributes (Rest API) real life … search solr databags Remote Node RabbitMQ Remote Node Remote Node Chef ClientCopyright © 2012 Accenture All rights reserved. 41
  • Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node Remote Node Ohai is the tool to discover platform attributes Chef Client OhaiCopyright © 2012 Accenture All rights reserved. 42
  • Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node Remote Node User Workstation knife knife knife Chef Client OhaiCopyright © 2012 Accenture All rights reserved. 43
  • Chef Architecture cookbooks Chef Server CouchDB attributes (Rest API) … search solr databags Remote Node RabbitMQ Remote Node User executes Remote Node knife CLI to operate with Chef Server User Workstation knife knife knife Chef Client OhaiCopyright © 2012 Accenture All rights reserved. 44
  • Demo!
  • Reading…(video) Chef in 5 minutes Cookbook Community Cookbooks from 37 Signalshttp://goo.gl/Of1p5 http://goo.gl/yAlPA http://goo.gl/uHC7A Questions?
  • Thank You!