39
Devops, nothing new Devops, nothing new Kris Buytaert @krisbuytaert

Devops 4 Saas

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Devops 4 Saas

Devops, nothing newDevops, nothing newKris Buytaert

@krisbuytaert

Page 2: Devops 4 Saas

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 Source Chief Trolling Officer and Open Source

Consultant @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

Page 3: Devops 4 Saas

What's this devops thing What's this devops thing anyhow ? anyhow ?

Page 4: Devops 4 Saas

World , 200X-2009World , 200X-2009

Patrick Debois, Gildas Le Nadan, Andrew Clay Shafer, Kris Buytaert, Jezz Patrick Debois, Gildas Le Nadan, Andrew Clay Shafer, Kris Buytaert, Jezz Humble, Lindsay Holmwood, John Willis, Chris Read, Julian Simpson, Luke Humble, Lindsay Holmwood, John Willis, Chris Read, Julian Simpson, Luke

Kanies, John Allspaw and lots of others ..Kanies, John Allspaw and lots of others ..

Gent , October 2009Gent , October 2009

Mountain View , June 2010Mountain View , June 2010

Hamburg , October 2010Hamburg , October 2010

Boston, March 2011Boston, March 2011

Mountain View, June 2011Mountain View, June 2011

Bangalore, Melbourne, Bangalore, Melbourne,

Goteborg , October 2011Goteborg , October 2011

........

10+ Events being planned for 2013.10+ Events being planned for 2013.

Page 5: Devops 4 Saas

● Devops is a growing professional and cultural Devops is a growing professional and cultural movementmovement

● We don't have all the answers yetWe don't have all the answers yet

● We are reaching out to different communities We are reaching out to different communities

● We will point out problems we see..We will point out problems we see..

● Only the name is new Only the name is new

While we are still working out the solutionsWhile we are still working out the solutions

Page 6: Devops 4 Saas

devops, a definition:devops, a definition:

Page 7: Devops 4 Saas

● Adopt the new philosophy. We are in a new economic age. Western management Adopt the new philosophy. We are in a new economic age. Western management must awaken to the challenge, must learn their responsibilities, and take on must awaken to the challenge, must learn their responsibilities, and take on leadership for change.leadership for change.

● Cease dependence on inspection to achieve quality. Eliminate the need for massive Cease dependence on inspection to achieve quality. Eliminate the need for massive inspection 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 improve Improve constantly and forever the system of production and service, to improve quality 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 machines Institute leadership The aim of supervision should be to help people and machines

and 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, and Break down barriers between departments. People in research, design, sales, and

production must work as a team, in order to foresee problems of production and production must work as a team, in order to foresee problems of production and usage 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 defects Eliminate slogans, exhortations, and targets for the work force asking for zero defects and new levels of productivity. Such exhortations only create adversarial and new levels of productivity. Such exhortations only create adversarial relationships, as the bulk of the causes of low quality and low productivity belong to relationships, as the bulk of the causes of low quality and low productivity belong to the 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 numbers Eliminate management by objective. Eliminate management by numbers and 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 of Remove barriers that rob the hourly worker of his right to pride of workmanship. The responsibility of supervisors must be changed from workmanship. The responsibility of supervisors must be changed from sheer numbers to quality.sheer numbers to quality.

● Remove barriers that rob people in management and in engineering of Remove barriers that rob people in management and in engineering of their 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. The Put everybody in the company to work to accomplish the transformation. The

transformation is everybody's job.transformation is everybody's job.

Page 8: Devops 4 Saas

William Edwards William Edwards Deming Deming

1986, Out of the Crisis. 1986, Out of the Crisis.

http://en.wikipedia.org/wiki/W._Edwards_Deminghttp://en.wikipedia.org/wiki/W._Edwards_Deming

Page 9: Devops 4 Saas

C(L)AMSC(L)AMS● CultureCulture

● (Lean)(Lean)

● AutomationAutomation

● MeasurementMeasurement

● SharingSharing

Damon Edwards and John WillisDamon Edwards and John Willis

Gene KimGene Kim

Page 10: Devops 4 Saas

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 happy More happy {customers,developers,managers,investors}{customers,developers,managers,investors}

Page 11: Devops 4 Saas

Culture,Culture,automation, automation,

Measturement,Measturement,

sharingsharing

Page 12: Devops 4 Saas

Burn the Silos Burn the Silos

Page 13: Devops 4 Saas

Enable CommunicationEnable Communication

Page 14: Devops 4 Saas

One Team = One Goal !One Team = One Goal !

Page 15: Devops 4 Saas

Lets Play TogetherLets Play Together

Getting AlongGetting AlongOpsOpsDevs Devs

Page 16: Devops 4 Saas

Culture, Culture,

Automation,Automation,Measurement,Measurement,

SharingSharing

Page 17: Devops 4 Saas

Automate all the thingsAutomate all the things● BuildBuild

• reproducable builds are undiscussablereproducable builds are undiscussable

● TestTest

• testing reduces risk testing reduces risk

• automate deployments of your test infra automate deployments of your test infra

● DeployDeploy

• Infrastructure as CodeInfrastructure as Code

• 100% automation 100% automation

• Can you rebuild your infrastructure ?Can you rebuild your infrastructure ?

Page 18: Devops 4 Saas

Continuous IntegrationContinuous Integration

● Builds Builds

● Nightly Builds Nightly Builds

● Builds with tests Builds with tests

● Nightly Builds with tests Nightly Builds with tests

● Frequent integration Frequent integration

● Continuous Integration Continuous Integration

Page 19: Devops 4 Saas

Test AutomationTest Automation● Unit testsUnit tests

● Regression testsRegression tests

● SeleniumSelenium

● Cucumber Cucumber

● TDDTDD

● BDDBDD

Page 20: Devops 4 Saas
Page 21: Devops 4 Saas

devops (<)> continuous delilvery devops (<)> continuous delilvery

Page 22: Devops 4 Saas

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 it Knowing you can vs constantly doing it

Page 23: Devops 4 Saas

" 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 to support, everyone in the company actually) is to enable the business goals. We strongly feel that enable the business goals. We strongly feel that in order to do that you must have in order to do that you must have the ability to the ability to deploy code quickly and safelydeploy code quickly and safely. Even if the . Even if the business goals are to deploy strongly QA’d code business goals are to deploy strongly QA’d code once a month at 3am (it’s not for us, we push all once a month at 3am (it’s not for us, we push all the time), having a reliable and easy the time), having a reliable and easy deployment should be deployment should be non-negotiablenon-negotiable." ."

Etsy Blog upon releasing DeployinatorEtsy Blog upon releasing Deployinator

http://codeascraft.etsy.com/2010/05/20/quantum-of-deployment/http://codeascraft.etsy.com/2010/05/20/quantum-of-deployment/

Page 24: Devops 4 Saas

Infrastructure as CodeInfrastructure as Code● Treat configuration automation as code Treat 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, ...

Page 25: Devops 4 Saas

OrchestrationOrchestration● On what servers is XYZ running ? On what servers is XYZ running ?

● Restart apache on all servers with fact X Restart apache on all servers with fact X

● Configure DB Configure DB

• then configure web then configure web

• then restart app then restart app

Over different hosts , automated Over different hosts , automated

Page 26: Devops 4 Saas

Culture, Culture,

Automation,Automation,

Measurement :Measurement :

measure all the thingsmeasure all the thingsSharingSharing

Page 27: Devops 4 Saas
Page 28: Devops 4 Saas

Self Service MetricsSelf Service Metrics

● Being able to add new metrics Being 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

Page 29: Devops 4 Saas
Page 30: Devops 4 Saas

Math 101Math 101

● f(x)f(x)

● f'(x)f'(x)

● f''(x)f''(x)

● ... statistics 101... statistics 101

Page 31: Devops 4 Saas

Graphite Graphite

x

Page 32: Devops 4 Saas

● Collect from anywhereCollect from anywhere

● FilterFilter

● Send anywhereSend anywhere

● QueingQueing

Page 33: Devops 4 Saas

StatsdStatsd

● A network daemon that runs on a zillion A network daemon that runs on a zillion platform and listens for statistics, like counters platform and listens for statistics, like counters and timers, sent over UDP and sends and timers, sent over UDP and sends aggregates to one or more pluggable backend aggregates to one or more pluggable backend services (e.g., Graphite).services (e.g., Graphite).

Page 34: Devops 4 Saas

Culture, Culture,

Automation, Automation,

Measurement,Measurement,

SharingSharing

Page 35: Devops 4 Saas

● Open SourceOpen Source

● Talk about ExperiencesTalk about Experiences

● Publish the codePublish the code

● No proprietary software was used in these No proprietary software was used in these slidesslides

Don't get Locked In !Don't get Locked In !

Page 36: Devops 4 Saas

DashboardsDashboards

Page 37: Devops 4 Saas

Visualize Business MetricsVisualize Business Metrics● $revenue$revenue

● #sales#sales

● signups signups

● conversionsconversions

● Api callsApi calls

● Application useApplication use

Page 38: Devops 4 Saas

It's not about the toolsIt's not about the tools

Page 39: Devops 4 Saas

ContactContactKris Buytaert Kris Buytaert [email protected]@inuits.be

Further ReadingFurther Reading@krisbuytaert @krisbuytaert http://www.krisbuytaert.be/bhttp://www.krisbuytaert.be/blog/log/http://www.inuits.be/http://www.inuits.be/

InuitsInuits

Duboistraat 50Duboistraat 502060 Antwerpen2060 AntwerpenBelgiumBelgium891.514.231891.514.231

+32 475 961221+32 475 961221