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.

Standardizing and Managing Your Infrastructure - MOSC 2011

1,486 views

Published on

Introduction to some of the newer, available tools for use in standardizing and managing server infrastructures. Also includes simple ways on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Standardizing and Managing Your Infrastructure - MOSC 2011

  1. 1. STANDARDIZING AND MANAGING YOUR INFRASTRUCTURE by BRIAN RITCHIE
  2. 2. WHO AM I ?• Worked for CIMB Group, Mindvalley, IOR, KPC, etc• Trained in ITIL and PMI• TOGAF certified• Experience : • Technical Lead - BI and Analytics • Technical Test Manager - Group Financial Management System (GFMS) • Initiator & Lead - Open Source Competency Centre & Research and Development Centre • PMO Governance, System Administrator, and the list goes on...
  3. 3. WHY AM I EXCITED ?
  4. 4. 1. ALL THE AMAZING PEOPLE GATHERED HERE FOR MOSC 2011
  5. 5. 2. ITS MY BIRTHDAY !!!
  6. 6. WHY ARE YOU HERE TODAY ?
  7. 7. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure.
  8. 8. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure.• You are a COO or equivalent and looking for ways to streamline your OPEX while introducing change
  9. 9. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure.• You are a COO or equivalent and looking for ways to streamline your OPEX while introducing change• You are the "IT Person" and have been instructed to "fix it".
  10. 10. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure.• You are a COO or equivalent and looking for ways to streamline your OPEX while introducing change• You are the "IT Person" and have been instructed to "fix it".• or you just enjoy learning
  11. 11. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure.• You are a COO or equivalent and looking for ways to streamline your OPEX while introducing change• You are the "IT Person" and have been instructed to "fix it".• or you just enjoy learning
  12. 12. WHAT AM I GOING TO TALK ABOUT ?
  13. 13. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic
  14. 14. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic
  15. 15. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic• Realized that all work and no play makes Jack a dull boy, so I am going to mix and match
  16. 16. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic• Realized that all work and no play makes Jack a dull boy, so I am going to mix and match
  17. 17. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic• Realized that all work and no play makes Jack a dull boy, so I am going to mix and match
  18. 18. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic• Realized that all work and no play makes Jack a dull boy, so I am going to mix and match• Tailoredmore towards the Business and Innovation side of things but will feature snippets of scripts so you understand how easy it is to innovate
  19. 19. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic• Realized that all work and no play makes Jack a dull boy, so I am going to mix and match• Tailoredmore towards the Business and Innovation side of things but will feature snippets of scripts so you understand how easy it is to innovate
  20. 20. QUESTIONS TO KEEP IN MIND• How to decide if you need change in your infrastructure ?• How do you proceed from there ?• What are the new innovative ways to make this happen ?• Current Technologies and how do you evaluate them before applying ?• How do I think outside the box ?
  21. 21. CHANGEMotivations People• Speed• Reliability• Scalability Money Time Dependency
  22. 22. WHAT’S NEXT ?
  23. 23. PLAN AND DESIGN YOUR ARCHITECTURE Load Balancers Firewalls Web Cache Web ServersDatabase Servers
  24. 24. BUT WAIT, PLANNING AND DESIGN IS SIMPLE. ITS THE DEPLOYMENT AND MAINTENANCE THATS KILLING US.
  25. 25. INTRODUCING Ruby preferred
  26. 26. REDUCE SERVERDEPLOYMENT TIME TO 5 MINUTES
  27. 27. WHAT IS CHEF ?• Fully automated configuration management system - Imagine an API for your entire line of servers• Ruby powered but has a simple DSL (domain specific language)• Scripts are now called “Recipes”
  28. 28. WHAT IS WEBISTRANO ?• Web UI for managing Capistrano deployments• Lets you manage your projects stages like test, staging and production• Allows you to do multi-stage and multi-environment scenarios• Allows you to track user deployment activity
  29. 29. WHAT IS NAGIOS ?• Infrastructure monitoring and alert system• Ableto monitor uptime, resource usage, and react accordingly to perform auto healing• Ableto integrate easily with Chef to perform auto scaling if and when required
  30. 30. WE HAVE THE TOOLS, BUTHOW DO WE USE THEM ?
  31. 31. CHEF• Chef divides its script into “cookbooks” = container/folder• Each cookbook has sub-folders : • recipes • resources • attributes • definitions • templates, etc...• Thishelps keep the scripts consistent, neat, easy to maintain and share
  32. 32. SAMPLE SCRIPT FOR CHEFApache Bare Installation package "apache2" do   case node[:platform]   when "centos","redhat","fedora","suse"     package_name "httpd"   when "debian","ubuntu"     package_name "apache2"   when "arch"     package_name "apache"   end   action :install end Source : https://github.com/opscode/cookbooks
  33. 33. SAMPLE SCRIPT FOR CHEFMySQL Install Bare include_recipe "mysql::client" if platform?(%w{debian ubuntu})   directory "/var/cache/local/preseeding" do     owner "root"     group "root"     mode 0755     recursive true   end package "mysql-server" do   action :install end Source : https://github.com/opscode/cookbooks
  34. 34. CHEF WEB INTERFACE
  35. 35. WEBISTRANO• In simple terms, it talks to your revision control system and deploys the latest revision to the server• Allows you to rollback revisions in case you broke something• Allowsyou to deploy and rollback on Staging environments making it a breeze to update your web apps
  36. 36. SAMPLE SCRIPT FOR WEBISTRANOInstall Wordpress - Config CONFIG = { :application => site_name, :domain => example.com, :user => demo, :password => nil, :ssh_port => 12345, :use_sudo => false, :scm => subversion, :scm_username => demosvn, :scm_password => passsvn, :repository => svn://svnrepo.company.com/wordpress_base/, :base_theme => thesis_theme, :subdirectory_path => , }
  37. 37. SAMPLE SCRIPT FOR WEBISTRANOInstall Wordpress - Deploy set :deploy_to, "/home/demo/#{application}" set :deploy_via, :remote_cache set :copy_exclude, [ .svn, .DS_Store, *.bat, *.exe, Thumbs.db, *.sh ] set :shared_children, %w(log media system config) after deploy:setup, deploy:sync after deploy:sync, deploy:cleanup
  38. 38. WEBISTRANO WEB INTERFACE
  39. 39. NAGIOS• Lots of plugins that are used to monitor and track different aspects of your infrastructure• APIallows interaction and “plug and play” interfaces with other services such as Chef• Configurationallows for Dashboard and reporting module to be customized to show current resources and provides enough data points for future architecture planning and reviews
  40. 40. NAGIOS WEB INTERFACE
  41. 41. DOES THIS MAKE BUSINESS SENSE ?
  42. 42. POST - EVALUATION• Reduced deployment times for scaling up servers from 5-6 hours to 5-10 minutes• Reduced IT OPEX by 56%• Allowed for Rapid Testing and Iterations• Lesser downtime overall and faster patch deployments and upgrade cycles
  43. 43. CONTACT ME ISO 9001:2008,• Email : brianritchie@iorsb.com ‘PKK Awam Kelas A’, Grade 7 CIDB• Twitter : @brianritchie• Facebook : fb.me/brianritchie• Google + : goo.gl/O8gjJ• Skype : brianritchie

×