Your SlideShare is downloading. ×

Devops 4 Saas

1,697

Published on

Presented at the OpenSaas.be Event on 25/4/2013

Presented at the OpenSaas.be Event on 25/4/2013

Published in: Technology
1 Comment
2 Likes
Statistics
Notes
No Downloads
Views
Total Views
1,697
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
21
Comments
1
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Devops, nothing newDevops, nothing newKris Buytaert@krisbuytaert
  • 2. Kris BuytaertKris Buytaert● I used to be a Dev,I used to be a Dev,● Then Became an OpThen Became an Op● Chief Trolling Officer and Open SourceChief Trolling Officer and Open SourceConsultant @inuits.euConsultant @inuits.eu● Everything is an effing DNS ProblemEverything is an effing DNS Problem● Building Clouds since before the bookstoreBuilding Clouds since before the bookstore● Some books, some papers, some blogsSome books, some papers, some blogs● Evangelizing devopsEvangelizing devops
  • 3. Whats this devops thingWhats this devops thinganyhow ?anyhow ?
  • 4. World , 200X-2009World , 200X-2009Patrick Debois, Gildas Le Nadan, Andrew Clay Shafer, Kris Buytaert, JezzPatrick Debois, Gildas Le Nadan, Andrew Clay Shafer, Kris Buytaert, JezzHumble, Lindsay Holmwood, John Willis, Chris Read, Julian Simpson, LukeHumble, Lindsay Holmwood, John Willis, Chris Read, Julian Simpson, LukeKanies, John Allspaw and lots of others ..Kanies, John Allspaw and lots of others ..Gent , October 2009Gent , October 2009Mountain View , June 2010Mountain View , June 2010Hamburg , October 2010Hamburg , October 2010Boston, March 2011Boston, March 2011Mountain View, June 2011Mountain View, June 2011Bangalore, Melbourne,Bangalore, Melbourne,Goteborg , October 2011Goteborg , October 2011........10+ Events being planned for 2013.10+ Events being planned for 2013.
  • 5. ● Devops is a growing professional and culturalDevops is a growing professional and culturalmovementmovement● We dont have all the answers yetWe dont have all the answers yet● We are reaching out to different communitiesWe are reaching out to different communities● We will point out problems we see..We will point out problems we see..● Only the name is newOnly the name is newWhile we are still working out the solutionsWhile we are still working out the solutions
  • 6. devops, a definition:devops, a definition:
  • 7. ● Adopt the new philosophy. We are in a new economic age. Western managementAdopt the new philosophy. We are in a new economic age. Western managementmust awaken to the challenge, must learn their responsibilities, and take onmust awaken to the challenge, must learn their responsibilities, and take onleadership for change.leadership for change.● Cease dependence on inspection to achieve quality. Eliminate the need for massiveCease dependence on inspection to achieve quality. Eliminate the need for massiveinspection by building quality into the product in the first place.inspection by building quality into the product in the first place.● Improve constantly and forever the system of production and service, to improveImprove constantly and forever the system of production and service, to improvequality and productivity, and thus constantly decrease costs.quality and productivity, and thus constantly decrease costs.● Institute training on the job.Institute training on the job.● Institute leadership The aim of supervision should be to help people and machinesInstitute leadership The aim of supervision should be to help people and machinesand gadgets do a better job.and gadgets do a better job.● Drive out fear, so that everyone may work effectively for the company.Drive out fear, so that everyone may work effectively for the company.● Break down barriers between departments. People in research, design, sales, andBreak down barriers between departments. People in research, design, sales, andproduction must work as a team, in order to foresee problems of production andproduction must work as a team, in order to foresee problems of production andusage that may be encountered with the product or service.usage that may be encountered with the product or service.● Eliminate slogans, exhortations, and targets for the work force asking for zero defectsEliminate slogans, exhortations, and targets for the work force asking for zero defectsand new levels of productivity. Such exhortations only create adversarialand new levels of productivity. Such exhortations only create adversarialrelationships, as the bulk of the causes of low quality and low productivity belong torelationships, as the bulk of the causes of low quality and low productivity belong tothe system and thus lie beyond the power of the work force.the system and thus lie beyond the power of the work force.●Eliminate management by objective. Eliminate management by numbersEliminate management by objective. Eliminate management by numbersand numerical goals. Instead substitute with leadership.and numerical goals. Instead substitute with leadership.●Remove barriers that rob the hourly worker of his right to pride ofRemove barriers that rob the hourly worker of his right to pride ofworkmanship. The responsibility of supervisors must be changed fromworkmanship. The responsibility of supervisors must be changed fromsheer numbers to quality.sheer numbers to quality.●Remove barriers that rob people in management and in engineering ofRemove barriers that rob people in management and in engineering oftheir right to pride of workmanship.their right to pride of workmanship.● Institute a vigorous program of education and self-improvement.Institute a vigorous program of education and self-improvement.● Put everybody in the company to work to accomplish the transformation. ThePut everybody in the company to work to accomplish the transformation. Thetransformation is everybodys job.transformation is everybodys job.
  • 8. William EdwardsWilliam EdwardsDemingDeming1986, Out of the Crisis.1986, Out of the Crisis.http://en.wikipedia.org/wiki/W._Edwards_Deminghttp://en.wikipedia.org/wiki/W._Edwards_Deming
  • 9. C(L)AMSC(L)AMS● CultureCulture● (Lean)(Lean)● AutomationAutomation● MeasurementMeasurement● SharingSharingDamon Edwards and John WillisDamon Edwards and John WillisGene KimGene Kim
  • 10. Whats in it for AAS ?Whats in it for AAS ?● Faster time to marketFaster time to market•Features go live in hours vs yearsFeatures go live in hours vs years● In a more safeIn a more safe● Reliable fashionReliable fashion•Fully automatedFully automated● More happyMore happy {customers,developers,managers,investors}{customers,developers,managers,investors}
  • 11. Culture,Culture,automation,automation,Measturement,Measturement,sharingsharing
  • 12. Burn the SilosBurn the Silos
  • 13. Enable CommunicationEnable Communication
  • 14. One Team = One Goal !One Team = One Goal !
  • 15. Lets Play TogetherLets Play TogetherGetting AlongGetting AlongOpsOpsDevsDevs
  • 16. Culture,Culture,Automation,Automation,Measurement,Measurement,SharingSharing
  • 17. Automate all the thingsAutomate all the things● BuildBuild• reproducable builds are undiscussablereproducable builds are undiscussable● TestTest•testing reduces risktesting reduces risk•automate deployments of your test infraautomate deployments of your test infra● DeployDeploy•Infrastructure as CodeInfrastructure as Code•100% automation100% automation•Can you rebuild your infrastructure ?Can you rebuild your infrastructure ?
  • 18. Continuous IntegrationContinuous Integration● BuildsBuilds● Nightly BuildsNightly Builds● Builds with testsBuilds with tests● Nightly Builds with testsNightly Builds with tests● Frequent integrationFrequent integration● Continuous IntegrationContinuous Integration
  • 19. Test AutomationTest Automation● Unit testsUnit tests● Regression testsRegression tests● SeleniumSelenium● CucumberCucumber● TDDTDD● BDDBDD
  • 20. devops (<)> continuous delilverydevops (<)> continuous delilvery
  • 21. How many times a day ?How many times a day ?● 10 @ Flickr10 @ Flickr● Deployments used to be painDeployments used to be pain● Nobody dared to deploy a siteNobody dared to deploy a site● Practice makes perfectPractice makes perfect● Knowing you can vs constantly doing itKnowing you can vs constantly doing it
  • 22. " Our job as engineers (and ops, dev-ops, QA," Our job as engineers (and ops, dev-ops, QA,support, everyone in the company actually) is tosupport, everyone in the company actually) is toenable the business goals. We strongly feel thatenable the business goals. We strongly feel thatin order to do that you must havein order to do that you must have the ability tothe ability todeploy code quickly and safelydeploy code quickly and safely. Even if the. Even if thebusiness goals are to deploy strongly QA’d codebusiness goals are to deploy strongly QA’d codeonce a month at 3am (it’s not for us, we push allonce a month at 3am (it’s not for us, we push allthe time), having a reliable and easythe time), having a reliable and easydeployment should bedeployment should be non-negotiablenon-negotiable."."Etsy Blog upon releasing DeployinatorEtsy Blog upon releasing Deployinatorhttp://codeascraft.etsy.com/2010/05/20/quantum-of-deployment/http://codeascraft.etsy.com/2010/05/20/quantum-of-deployment/
  • 23. Infrastructure as CodeInfrastructure as Code● Treat configuration automation as codeTreat configuration automation as code● Development best practicesDevelopment best practices•Model your infrastructureModel your infrastructure•Version your cookbooks / manifestsVersion your cookbooks / manifests•Test your cookbooks/ manifestsTest your cookbooks/ manifests•Dev/ test /uat / prod for your infraDev/ test /uat / prod for your infra● Model your infrastructureModel your infrastructure● A working service = automated ( Application Code +A working service = automated ( Application Code +Infrastructure Code + Security + Monitoring )Infrastructure Code + Security + Monitoring )● Think Puppet, Chef, Cfengine, ...Think Puppet, Chef, Cfengine, ...
  • 24. OrchestrationOrchestration● On what servers is XYZ running ?On what servers is XYZ running ?● Restart apache on all servers with fact XRestart apache on all servers with fact X● Configure DBConfigure DB•then configure webthen configure web•then restart appthen restart appOver different hosts , automatedOver different hosts , automated
  • 25. Culture,Culture,Automation,Automation,Measurement :Measurement :measure all the thingsmeasure all the thingsSharingSharing
  • 26. Self Service MetricsSelf Service Metrics● Being able to add new metricsBeing able to add new metrics● Build your own dashboardsBuild your own dashboards● Look at metrics / logs on all platformsLook at metrics / logs on all platforms● Learn from the platformLearn from the platform
  • 27. Math 101Math 101● f(x)f(x)● f(x)f(x)● f(x)f(x)● ... statistics 101... statistics 101
  • 28. GraphiteGraphitex
  • 29. ● Collect from anywhereCollect from anywhere● FilterFilter● Send anywhereSend anywhere● QueingQueing
  • 30. StatsdStatsd● A network daemon that runs on a zillionA network daemon that runs on a zillionplatform and listens for statistics, like countersplatform and listens for statistics, like countersand timers, sent over UDP and sendsand timers, sent over UDP and sendsaggregates to one or more pluggable backendaggregates to one or more pluggable backendservices (e.g., Graphite).services (e.g., Graphite).
  • 31. Culture,Culture,Automation,Automation,Measurement,Measurement,SharingSharing
  • 32. ● Open SourceOpen Source● Talk about ExperiencesTalk about Experiences● Publish the codePublish the code● No proprietary software was used in theseNo proprietary software was used in theseslidesslidesDont get Locked In !Dont get Locked In !
  • 33. DashboardsDashboards
  • 34. Visualize Business MetricsVisualize Business Metrics● $revenue$revenue● #sales#sales● signupssignups● conversionsconversions● Api callsApi calls● Application useApplication use
  • 35. Its not about the toolsIts not about the tools
  • 36. ContactContactKris BuytaertKris BuytaertKris.Buytaert@inuits.beKris.Buytaert@inuits.beFurther ReadingFurther Reading@krisbuytaert@krisbuytaerthttp://www.krisbuytaert.be/bhttp://www.krisbuytaert.be/blog/log/http://www.inuits.be/http://www.inuits.be/InuitsInuitsDuboistraat 50Duboistraat 502060 Antwerpen2060 AntwerpenBelgiumBelgium891.514.231891.514.231+32 475 961221+32 475 961221

×