Launch Business Startups

Document Sample
Launch Business Startups Powered By Docstoc
					Why Startups Need
Automated Infrastructures
Adam Jacob
Senior Partner
HJK Solutions
adam@hjksolutions.com



                            1
           Overview

•   What is an “Automated Infrastructure”?
•   Why is it so important?
•   MonkeyNews - A Case Study
•   Review
•   Q&A
         Disclaimer

• These are the tools we use
• They are not the only tools
• They may or may not be the right tools for
  how you work or think


                         QuickTime™ an d a
                            decompressor
                   are need ed to see this picture .




                                                       Symbol From IIT Bombay
What is an “Automated
Infrastructure”?




                        4
         Automated

”…a process which may once have been
  performed manually but has been altered
  in some way which allows a machine or
  computer to either wholly or partially
  manipulate the process to save time”


                                       QuickTime™ an d a
                                          decompressor
                                 are need ed to see this picture .
         Infrastructure

“Infrastructure is generally a set of
  interconnected structural elements that
  provide the framework supporting an
  entire structure”


                         QuickTime™ an d a
                            decompressor
                   are need ed to see this picture .
         Automated Infrastructure

“Having the basic services necessary for
  your business to operate largely without
  the aid of a keeper.”
Why is it so important?




                          8
           To your Operations Staff

•   Mitigates some failures
•   They want to be lazy
•   Repetition leads to burnout
•   They want to say “Yes”
            For Startups

•   Time
•   Efficiency
•   Scalability
•   Economics
•   Flexibility
          The Jesse Robbins
          (mis)Quote
“Operations is the act of extracting value
  from your resources.”


                     QuickTime™ and a
                       decompressor
               are needed to see this picture.
MonkeyNews - A Case Study

All the hottest Monkey news, as                          QuickTime™ and a
                                                           decompressor



selected by your monkey-loving peers!
                                                   are neede d to see this picture.




                              Courtesy National Geographic
                                                                                      12
         What is MonkeyNews

• Small Startup
• “Like Digg, only about Monkeys”
• Going to sell Advertising as a revenue
  model
MonkeyNews on Launch Day
Steps to Launch
          Steps to Launch - OS Install

         Manual
                                 OS Install Time
• Install each system by
  hand
• 1 hour per system              6
                                 5
                                 4             app1stg
                                               ops1prod
                           Hours 3
                                               db2prod
                                 2
                                               db1prod
                                 1
                                               app2prod
                                0
                                Manual         app1prod

                                     Method
             Steps to Launch - OS Install

     Automated
                               OS Install Time - Automated
• Ops1prod built
  manually                     7
                               6
  – 1 hour
                               5
• Automated install    Hours
                               4

  system (PXE)                 3                       Attended
                               2                       Unattended
• EC2, Cloud                   1
                               0
                                   PXE EC2
                                       Method
           Steps to Launch - OS Install

                    OS Install Options

      8
      7
      6
      5
Hours 4
                                         Unattended
      3
                                         Attended
      2
      1
      0
          Manual   PXE            EC2
                         Method
          Steps to Launch - DNS

         Manual
• Update each machine            Adding a new Hostname

  in /etc/hosts                  60
                                 50
       Automated                 40
• Install a DNS Server   Minutes 30
                                                          DNS
                                                          Manual

• Use a service                  20

                                 10
  provider                        0
                                      6 10 20 30 40 50
                                      Number of Systems
         Steps to Launch - Server
         Inventory
        Manual
• Use a wiki
      Automated
• Use iClassify
• Roll your own
         Steps to Launch - Identity
         Management
       Manual
• Add each user                     Adding a new User

  everywhere              60
                          50
      Automated           40

• Use LDAP or AD
                                                        Automated
                   Minutes 30
                                                        Manual
                           20

                           10

                            0
                                6   10 20 30 40 50
                                    Number of Systems
         Steps to Launch - Version
         Control
              An Easy One
• You must use version control


                        QuickTime™ an d a
                           decompressor
                  are need ed to see this picture .




                                                      Symbol From IIT Bombay
          Steps to Launch -
          Configuration Management
        Manual
• Version Control   Check in copies of
• Wiki                 config files
                    Try and keep a record
                       of what you have
                       done
         Steps to Launch -
         Configuration Management
      Automated
• Puppet
• Cfengine
• Bcfg2           Infrastructure as Code
Puppet Example - sudo
Puppet Example - sudo
                Steps to Launch -
                Configuration Management
             Automation is Key
• 50+ Different Applications
•   ad, apache2, apt-proxy, beaver, build-essential, capistrano, yum,
    apt, djbdns, emacs, erubis, rubygems, iclassify, imagemagick,
    iptables, java, logrotate, man, maradns, memcached, mongrel-runit,
    munin, mysql, nagios, nscd, ntp, openldap, openssh, perl, perlbal,
    php, postfix, postgresql, puppet, rails, resolver, rsync, ruby, runit,
    sqlite, subversion, sudo, trac, zsh

• Why repeat yourself?
          Steps to Launch - Monitoring

        Manual             Files to Edit in Nagios when
• Add each server by           adding a new Server
  hand                 5
      Automated
                       4
• Use your System
  Inventory and        3
                                                   Manual
  Configuration        2                           Automated
  Management Tools
                       1

                       0
                                 Files
         Steps to Launch - Trending

                  Manual
• Add each server and graph by hand
                Automated
• Use your System Inventory and
  Configuration Management Tools
         Steps to Launch - Email

            Another Easy One
• Every server must be able to send email
  locally.

                       QuickTime™ an d a
                          decompressor
                 are need ed to see this picture .




                                                     Symbol From IIT Bombay
            Steps to Launch - Application
            Deployment
          Manual
                                  Odds of a non-code Mistake
•   Update the                          during a Deploy
    application by hand     12%
                            10%
        Automated           8%

•   Use Capistrano          6%                                 Mistakes
                            4%
•   Roll your own           2%
                            0%
•   Integrate with System         1   2   5   10

    Inventory                      Number of Manual Steps
Launch Day




           QuickTime™ an d a
              decompressor
     are need ed to see this picture .
         Tech Crunched!

                 Symptoms
• Monitors alert
• Trending shows the traffic spike
• Your RSS reader has the culprit
         Tech Crunched! - EC2

• Launch more capacity.




• Two minutes later, they are up
         Tech Crunched! - iClassify

• Classify the Servers
         Tech Crunched! - Puppet

• Puppet applies the class that matches the
  tag:
         Tech Crunched! - Deploy

• Deploy your application!
• “cap -S env=prod deploy”
• One command.
            Tech Crunched! - Post
            Mortem
•   Total Time: ~5 - 10 minutes
•   4 steps total!
•   We doubled capacity
•   No configuration during the issue at all
          New Hire

         Issue                 Resolution
•   MonkeyNews hires   • Add the user to LDAP
    a new engineer     • Add the right group
                         privileges
           Add SSL Support

          Issue                     Resolution
•   MonkeyNews has          • Update Apache
    started taking micro-     Virtual Host in your
    payments (for             Configuration
                              Management
    bananas)
                            • Add the SSL
                              Certificates to
                              Configuration
                              Management
                            • < 10 minutes from
                              start to finish
Review




         41
           Review

• Automated Infrastructure means:
  – “Having the basic services necessary for your
    business to operate largely without the aid of
    a keeper.”
• Automated Infrastructure
  –   Saves time
  –   Increases efficiency
  –   Allows for scalability
  –   Reduces economic impact
  –   Improves flexibility
HJK does this for a living.
But you can ask me how to do it
for free. :)
Adam Jacob
+1 (206) 508-4759
adam@hjksolutions.com


                                  43
June 23-24, 2008
20% off discount: “vel08js”

				
DOCUMENT INFO
Description: Launch Business Startups document sample