it is happening now 2015: devops (kris buytaert)

65
Devops 101 Devops 101 Kris Buytaert @krisbuytaert

Upload: cefora-cevora

Post on 22-Jan-2018

388 views

Category:

Education


1 download

TRANSCRIPT

Page 1: IT is happening now 2015: DevOps (Kris Buytaert)

Devops 101Devops 101

Kris Buytaert

@krisbuytaert

Page 2: IT is happening now 2015: DevOps (Kris Buytaert)

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 @Consultant @inuits.euinuits.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: IT is happening now 2015: DevOps (Kris Buytaert)

What's this Devops thing really about ?What's this Devops thing really about ?

Page 4: IT is happening now 2015: DevOps (Kris Buytaert)

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, and Humble, Lindsay Holmwood, John Willis, Chris Read, Julian Simpson, and

lots of others ..lots of others ..

Gent , October 2009Gent , October 2009

Mountain View , June 2010Mountain View , June 2010

5th aniversary last year in Gent5th aniversary last year in Gent

........

Page 5: IT is happening now 2015: DevOps (Kris Buytaert)

Devops , a definitionDevops , a definition● 25-40 year old 25-40 year old

● Experienced linux engineerExperienced linux engineer

● Knows how to write codeKnows how to write code

● Sits between the developers and operations Sits between the developers and operations engineersengineers

● Drinks BeerDrinks Beer

● Eats SushiEats Sushi

● Lives in Belgium or the UKLives in Belgium or the UK

Page 6: IT is happening now 2015: DevOps (Kris Buytaert)

Devops is not Devops is not ● A new roleA new role

● A new job descriptionA new job description

● A new team A new team

● A new functionA new function

● NewNew

Page 7: IT is happening now 2015: DevOps (Kris Buytaert)

devops, a definition:devops, a definition:

Page 8: IT is happening now 2015: DevOps (Kris Buytaert)

● 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 and numerical Eliminate management by objective. Eliminate management by numbers and numerical goals. Instead substitute with leadership.goals. Instead substitute with leadership.•Remove barriers that rob the hourly worker of his right to pride of workmanship. The Remove barriers that rob the hourly worker of his right to pride of workmanship. The responsibility of supervisors must be changed from sheer numbers to quality.responsibility of supervisors must be changed from sheer numbers to quality.•Remove barriers that rob people in management and in engineering of their right to Remove barriers that rob people in management and in engineering of their right to pride of workmanship. 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 9: IT is happening now 2015: DevOps (Kris Buytaert)

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 10: IT is happening now 2015: DevOps (Kris Buytaert)

““DevOps is a cultural andDevOps is a cultural and

professional movement”professional movement”

Adam JacobAdam Jacob

Page 11: IT is happening now 2015: DevOps (Kris Buytaert)

#devops=~C(L)AMS#devops=~C(L)AMS● CultureCulture

● (Lean)(Lean)

● AutomationAutomation

● Monitoring and MeasurementMonitoring and Measurement

● SharingSharing

Damon Edwards and John WillisDamon Edwards and John Willis

Gene KimGene Kim

Page 12: IT is happening now 2015: DevOps (Kris Buytaert)

Why #devops ?Why #devops ?

Page 13: IT is happening now 2015: DevOps (Kris Buytaert)

Devs vs OpsDevs vs Ops

Page 14: IT is happening now 2015: DevOps (Kris Buytaert)

HistoricallyDifferent GoalsHistoricallyDifferent Goals

DevelopmentDevelopment

● New releasesNew releases

● New FeaturesNew Features

● New platformsNew platforms

● New architecturesNew architectures

● Functional ReqFunctional Req

OperationsOperations

● Stable PlatformStable Platform

● No DowntimeNo Downtime

● Scalable PlatformScalable Platform

● Non Functional ReqNon Functional Req

Page 15: IT is happening now 2015: DevOps (Kris Buytaert)

Whats in it for you ?Whats in it for you ?● Faster time to marketFaster time to market

• Features go live in hours vs yearsFeatures go live in hours vs years

● In a more safe (Secure)In a more safe (Secure)

● Reliable fashionReliable fashion

• Fully automatedFully automated

● More happy More happy {customers,developers,ops,managers,investors}{customers,developers,ops,managers,investors}

Page 16: IT is happening now 2015: DevOps (Kris Buytaert)

Why do you want ?Why do you want ?● Broken culture #needsfixingBroken culture #needsfixing

● Business pressure, Business pressure,

• SlowSlow

• Low quality releasesLow quality releases

● Unmanageable infrastructureUnmanageable infrastructure

● Too fast growthToo fast growth

Page 17: IT is happening now 2015: DevOps (Kris Buytaert)

Culture,Culture,automation, automation,

Measturement,Measturement,

sharingsharing

Page 18: IT is happening now 2015: DevOps (Kris Buytaert)

Change Management & Change Management & ResistanceResistance

● 20 – 60 – 2020 – 60 – 20

● 20% Early adopters , find your peers20% Early adopters , find your peers

● 60% Will wait , but adopt slowly60% Will wait , but adopt slowly

● 20% 20%

Page 19: IT is happening now 2015: DevOps (Kris Buytaert)

Your goals ?Your goals ?● Have you even set goals ?Have you even set goals ?

● CD vs CD ?CD vs CD ?

● Is your infra in place ? Is your infra in place ?

● Is your team ready ? Is your team ready ?

Page 20: IT is happening now 2015: DevOps (Kris Buytaert)

Analyze ThisAnalyze This● What are devs nagging aboutWhat are devs nagging about

• Slow builds ? Slow builds ?

• No enviroments ?No enviroments ?

● What are ops nagging aboutWhat are ops nagging about

• Bad artefacts ?Bad artefacts ?

• No logs ?No logs ?

● What is mgmt nagging about What is mgmt nagging about

• Quality / Feedback ?Quality / Feedback ?

Page 21: IT is happening now 2015: DevOps (Kris Buytaert)

SpoilerSpoiler

Your real problem is most probably not technicalYour real problem is most probably not technical

Page 22: IT is happening now 2015: DevOps (Kris Buytaert)

Are you speaking the same Are you speaking the same language ?language ?● Configuration management vs configuration Configuration management vs configuration

managementmanagement

● What is Operations ?What is Operations ?

● What is #devops ?What is #devops ?

Page 23: IT is happening now 2015: DevOps (Kris Buytaert)

A reaction to ?A reaction to ?● ITIL ITIL

• For imposing irrelevant proceduresFor imposing irrelevant procedures

• And Blocking innovationAnd Blocking innovation

● AgileAgile

• For not including operations in the discussionFor not including operations in the discussion

Page 24: IT is happening now 2015: DevOps (Kris Buytaert)

Agile ?Agile ?● Waterfall Waterfall

● Watermill Watermill

● ScrumScrum

● KanbanKanban

● SAFESAFE

Page 25: IT is happening now 2015: DevOps (Kris Buytaert)

HowtoHowto

Page 26: IT is happening now 2015: DevOps (Kris Buytaert)

Do not call it a Do not call it a #devopsteam #devopsteam

● It's not a job title.It's not a job title.

● Ops isn't actually opsOps isn't actually ops

● It's not the team in charge of deliveryIt's not the team in charge of delivery

● Yet another silo between devs and opsYet another silo between devs and ops

Page 27: IT is happening now 2015: DevOps (Kris Buytaert)

Crossfunctional TeamCrossfunctional Team● Build a project team with skills from all overBuild a project team with skills from all over

• DevelopmentDevelopment

• Continuous Integration Continuous Integration

• TestingTesting

• Infrastructure (HA/ Scale/ Performance)Infrastructure (HA/ Scale/ Performance)

• DeploymentDeployment

• MeasurementMeasurement

● Seat them together !Seat them together !

● Goal = Help the businessGoal = Help the business

Page 28: IT is happening now 2015: DevOps (Kris Buytaert)

Devops is a “reorg”Devops is a “reorg”

Page 29: IT is happening now 2015: DevOps (Kris Buytaert)

Shared BacklogShared Backlog● CHALLENGE : Getting Non Functional CHALLENGE : Getting Non Functional

Requirements in the development backlogRequirements in the development backlog

• On team levelOn team level

• On management levelOn management level

• On business user levelOn business user level

● Put the Product Owner on CallPut the Product Owner on Call

Page 30: IT is happening now 2015: DevOps (Kris Buytaert)

Enable CommunicationEnable Communication

Page 31: IT is happening now 2015: DevOps (Kris Buytaert)

Start “Hiring”Start “Hiring”● Internally / ExternallyInternally / Externally

● Get experience on boardGet experience on board

● Get BuyIn inside the teamGet BuyIn inside the team

● Don't hesitate to also Fire !Don't hesitate to also Fire !

Page 32: IT is happening now 2015: DevOps (Kris Buytaert)

Build TrustBuild Trust● ExperimentExperiment

• DevDev

• TestTest

● ProdProd

● Automate all the Automate all the thingsthings

● Measure successMeasure success

● Measure FailureMeasure Failure

Page 33: IT is happening now 2015: DevOps (Kris Buytaert)

With great power ...With great power ...

Your code will go to production..Your code will go to production..

You will be able to fix it ..You will be able to fix it ..

You will have access to the logsYou will have access to the logs

Access to the metrics...Access to the metrics...

Page 34: IT is happening now 2015: DevOps (Kris Buytaert)
Page 35: IT is happening now 2015: DevOps (Kris Buytaert)

Your machines as CattleYour machines as Cattle

Page 36: IT is happening now 2015: DevOps (Kris Buytaert)

Treat your people as petsTreat your people as pets

Page 37: IT is happening now 2015: DevOps (Kris Buytaert)

Stop playing theatreStop playing theatre● Security TheatreSecurity Theatre

● Procedure Theatre Procedure Theatre

Page 38: IT is happening now 2015: DevOps (Kris Buytaert)

BondBond● Internal DevopsdaysInternal Devopsdays

● Internal Open Source Days Internal Open Source Days

● Hack DaysHack Days

● Teach a collegue daysTeach a collegue days

● Ramdon Lunch meetupsRamdon Lunch meetups

● Eat CakeEat Cake

● Both inside and outside the officeBoth inside and outside the office

Page 39: IT is happening now 2015: DevOps (Kris Buytaert)

Myths ?Myths ?● You can only change small orgsYou can only change small orgs

● You can't change a large organisationYou can't change a large organisation

It dependsIt depends

Page 40: IT is happening now 2015: DevOps (Kris Buytaert)

It's about the tools !It's about the tools !

• The wrong tools will block youThe wrong tools will block you

• The right tools will enhance your cultureThe right tools will enhance your culture

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

Page 41: IT is happening now 2015: DevOps (Kris Buytaert)

Culture, Culture,

Automation,Automation,Measurement,Measurement,

SharingSharing

Page 42: IT is happening now 2015: DevOps (Kris Buytaert)

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 43: IT is happening now 2015: DevOps (Kris Buytaert)

Automation supports responsabilityAutomation supports responsability

● Version all the thingsVersion all the things

• git blamegit blame

• don't blamedon't blame

• Failure is an option Failure is an option

● No manual changesNo manual changes

• Enforce fast automated pipelinesEnforce fast automated pipelines

• Manuall changes will be automatically Manuall changes will be automatically revertedreverted

Page 44: IT is happening now 2015: DevOps (Kris Buytaert)

Automate all the thingsAutomate all the things● Host ProvisioningHost Provisioning

● DB deploymentDB deployment

● Application Server deployment Application Server deployment

● UsersUsers

● BackupsBackups

● Application DeploymentApplication Deployment

● Firewall changesFirewall changes

● Loadbalancer configLoadbalancer config

Page 45: IT is happening now 2015: DevOps (Kris Buytaert)

Idempodent InfrastructureIdempodent Infrastructure● Configuration management ensures stateConfiguration management ensures state

● Periodically,Periodically,

● ConstantlyConstantly

● Manual changes are revertedManual changes are reverted

Page 46: IT is happening now 2015: DevOps (Kris Buytaert)

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

Page 47: IT is happening now 2015: DevOps (Kris Buytaert)
Page 48: IT is happening now 2015: DevOps (Kris Buytaert)

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 49: IT is happening now 2015: DevOps (Kris Buytaert)

Delivery vs DeploymentDelivery vs Deployment● Test MaturityTest Maturity

• Are you comfortable with your test Are you comfortable with your test coverage ?coverage ?

● Development Maturity Development Maturity

• Feature FlagsFeature Flags

• Deployed code <> Enabled FeatureDeployed code <> Enabled Feature

Page 50: IT is happening now 2015: DevOps (Kris Buytaert)

" 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 51: IT is happening now 2015: DevOps (Kris Buytaert)

What about Legacy ?What about Legacy ?● Ignore itIgnore it

● Refactor it (Estonia !)Refactor it (Estonia !)

● Why do you call it legacy ?Why do you call it legacy ?

● Technical DebtTechnical Debt

● Pay back with Interrest Pay back with Interrest

Page 52: IT is happening now 2015: DevOps (Kris Buytaert)

Culture, Culture,

Automation,Automation,

Measurement :Measurement :

measure all the thingsmeasure all the thingsSharingSharing

Page 53: IT is happening now 2015: DevOps (Kris Buytaert)
Page 54: IT is happening now 2015: DevOps (Kris Buytaert)

#monitoringlove#monitoringlove•

• Ulf Mansson #devopsdays Rome 2011 Ulf Mansson #devopsdays Rome 2011

• A new era of toolingA new era of tooling

• #monitoringlove hacksessions @inuits#monitoringlove hacksessions @inuits

• #monitorama#monitorama

Page 55: IT is happening now 2015: DevOps (Kris Buytaert)

Automation of Automation of #monitoring #monitoring brought back brought back

the the #love#love

Page 56: IT is happening now 2015: DevOps (Kris Buytaert)

Monitoring++Monitoring++

• Learn from LogsLearn from Logs

• Measure all the ThingsMeasure all the Things

• Lean from your dataLean from your data

• Predictive analysisPredictive analysis

Page 57: IT is happening now 2015: DevOps (Kris Buytaert)

Culture, Culture,

Automation, Automation,

Measurement,Measurement,

SharingSharing

Page 58: IT is happening now 2015: DevOps (Kris Buytaert)

DashboardsDashboards

Page 59: IT is happening now 2015: DevOps (Kris Buytaert)

Visualize Business MetricsVisualize Business Metrics● $revenue$revenue

● #sales#sales

● signups signups

● conversionsconversions

● Api callsApi calls

● Application useApplication use

Page 60: IT is happening now 2015: DevOps (Kris Buytaert)

Share ResponsabilityShare Responsability● Devs OnCallDevs OnCall

● Product Owners OnCallProduct Owners OnCall

● You build it , you run it. (Werner Vogels)You build it , you run it. (Werner Vogels)

Page 61: IT is happening now 2015: DevOps (Kris Buytaert)

SharingSharing● Open Space Open Space

● Open SourceOpen Source

● GithubGithub

● Talk about ExperiencesTalk about Experiences

● Publish the codePublish the code

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

Page 62: IT is happening now 2015: DevOps (Kris Buytaert)

FoodFood

Page 63: IT is happening now 2015: DevOps (Kris Buytaert)
Page 64: IT is happening now 2015: DevOps (Kris Buytaert)

Devops is like securityDevops is like security

It's not a product that you can buy It's not a product that you can buy

It's a lifestyle It's a lifestyle

It's a continuous improvement processIt's a continuous improvement process

Page 65: IT is happening now 2015: DevOps (Kris Buytaert)

ContactContactKris Buytaert kris. [email protected] Buytaert kris. [email protected]

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

InuitsInuits

Heidestraat 257 Heidestraat 257 2070 Zwijndrecht 2070 Zwijndrecht BelgiumBelgium891.514.231891.514.231

+32 475 961221+32 475 961221