39
@nicolefv What I Learned from Four Years of Sciencing the Crap Out of DevOps Nicole Forsgren, PhD Director, Organizational Performance and Analytics

Sciencing the Crap Out of DevOps

Embed Size (px)

Citation preview

Page 1: Sciencing the Crap Out of DevOps

@nicolefv

WhatILearnedfromFourYearsof Sciencing theCrapOutof

DevOps

NicoleForsgren,PhDDirector,OrganizationalPerformanceandAnalytics

Page 2: Sciencing the Crap Out of DevOps

@nicolefv

Outline

Howtomakeyourdatasuckless• Writinggoodsurveyquestions• Makingsurethesurveyquestionsaregood-withSCIENCE

• (Thesemethodsapplytoyoursystemandlogdata)

Whatwefound…thatwedid(ANDdidn’t)expectThingsaboutContinuousDeliveryThingsaboutManagement

Page 3: Sciencing the Crap Out of DevOps

@nicolefv

Notalldataiscreatedequal

Whoherethinkssurveysaresh*t?

Page 4: Sciencing the Crap Out of DevOps

@nicolefv

Notalldataiscreatedequal

Whoherethinkssurveysaresh*t?

WhohereLOVESthedatafromtheirlogfiles?

Page 5: Sciencing the Crap Out of DevOps

@nicolefv

WhatisaLatentConstruct?

Page 6: Sciencing the Crap Out of DevOps

@nicolefv

Weuse

PSYCHOMETRICS

tomakeoursurveydatagood*

*orgiveusareasonableassurancethatit’stellinguswhatwethinkit’stellingus(&someofthiscanalsoapplytoyourlogdata)

Page 7: Sciencing the Crap Out of DevOps

@nicolefv

Psychometricsincludes:

Constructcreation(manual)• Whenpossible:usepreviouslyvalidatedconstructs• Basedondefinitionsandtheory,carefullyandpreciselyworded,cardsortingtask,pilottested

Constructevaluation(statistics)• EstablishingValidity:discriminantandconvergent• EstablishingReliability

Page 8: Sciencing the Crap Out of DevOps

@nicolefv

PsychometricsWritingExample:Culture

• Doesitmattertoourstudy?• Morethanjustintuition?

• WhatKINDofculture?• National identityandnorms• Adaptiveculture• Value learning(2014study)• Value informationflowandtrust(2014and2015

studies -- Westrumculture)

Page 9: Sciencing the Crap Out of DevOps

@nicolefv

PsychometricsWritingExample:Culture

• Doesitmattertoourstudy?• Morethanjustintuition?

• WhatKINDofculture?• National identityandnorms• Adaptiveculture• Value learning(2014study)• Valueinformationflowandtrust(2014and2015

studies-- Westrumculture)

Page 10: Sciencing the Crap Out of DevOps

@nicolefv

WestrumtypologyPathologicalPower-oriented

BureaucraticRule-oriented

GenerativePerformance-oriented

Low cooperation Modest cooperation High cooperation

Messengers shot Messengers neglected Messengers trained

Responsibilities shirked Narrow responsibilities Risks are shared

Bridging discouraged Bridging tolerated Bridging encouraged

Failure leads to scapegoating

Failure leads to justice Failure leads to inquiry

Novelty crushed Novelty leads to problems Novelty implemented

Try writing items

yourself!

Use strong statements with clear language.

Westrum, R. (2004). A typology of organisational cultures. Quality and safety in health care, 13(suppl 2), ii22-ii27.

Page 11: Sciencing the Crap Out of DevOps

@nicolefv

WestrumCultureItems

• Onmyteam,informationisactivelysought.• Onmyteam,failuresarelearningopportunities,andmessengersofthemarenotpunished.

• Onmyteam,responsibilitiesareshared.• Onmyteam,cross-functionalcollaborationisencouragedandrewarded.

• Onmyteam,failurecausesinquiry.• Onmyteam,newideasarewelcomed.

Found to be valid & reliable

Predictive of IT Performance & Organizational Performance

Page 12: Sciencing the Crap Out of DevOps

@nicolefv

PsychometricsAnalysisExample:NotificationofFailureAtmyorganization…

• Weareprimarilynotifiedoffailuresbyreportsfromcustomers.

• WeareprimarilynotifiedoffailuresbytheNOC.• Wegetfailurealertsfromloggingandmonitoring systems.• Wemonitorsystemhealthbasedonthresholdwarnings(ex.

CPUexceeds 100%).• Wemonitorsystemhealthbasedonrate-of-changewarnings

(ex.CPUusagehas increasedby25%overthelast10minutes).

Original in 2014, but there was a surprise.

Can you spot it?

Page 13: Sciencing the Crap Out of DevOps

@nicolefv

PsychometricsAnalysisExample:NotificationofFailureAtmyorganization…

• Weareprimarilynotifiedoffailuresbyreportsfromcustomers.

• WeareprimarilynotifiedoffailuresbytheNOC.• Wegetfailurealertsfromloggingandmonitoring systems.• Wemonitorsystemhealthbasedonthresholdwarnings(ex.

CPUexceeds 100%).• Wemonitorsystemhealthbasedonrate-of-changewarnings

(ex.CPUusagehas increasedby25%overthelast10minutes).

Notification from

NEAR

Notification from FAR

Page 14: Sciencing the Crap Out of DevOps

@nicolefv

Moredatatests!

Plus,wetesttomakesurethesurveydoesn’thaveotherproblems.• Commonmethodvariance(CMV)(akaCMBforBias)• Earlyvs.lateresponders• Surveydrop-offratesandbias

Page 15: Sciencing the Crap Out of DevOps

@nicolefv

OkayNOW wecanlookatthedataandhowitrelatestoeachother

Page 16: Sciencing the Crap Out of DevOps

@nicolefv

Anoteaboutanalysismethods

Oneofthreeconditionsmustbemet:

1. Longitudinal(no,thisiscross-sectional)

2. Randomized,experimentaldesign(no,thisisanon-experimental)

3. Theory-baseddesign

Whenthisconditionwasnotmet,onlycorrelationsweretestedandreported

Page 17: Sciencing the Crap Out of DevOps

@nicolefv

KEYFINDING:ITPerformance anditsbehavior

Acombinationofthroughput andstability

leadtimeforchangesreleasefrequency

timetorestoreservicechangefailrate

Forsgren, N., J. Humble (2016). "DevOps: Profiles in ITSM Performance and Contributing Factors." In the Proceedings of the Western Decision Sciences Institute (WDSI) 2016, Las Vegas, NV.

Page 18: Sciencing the Crap Out of DevOps

@nicolefv

KEYFINDING:ITperformancematters!“Firmswithhigh-performingITorganizationsweretwiceaslikelytoexceedtheirprofitability,marketshareandproductivitygoals.”

ITPerformanceispredictiveoforganizationalperformance.http://bit.ly/2014-devops-report/

http://bit.ly/2015-devops-report/

Forsgren, N., J. Humble (2016). “The Role of Continuous Delivery in IT and Organizational Performance.” In the Proceedings of the Western Decision Sciences Institute (WDSI) 2016, Las Vegas, NV.

Page 19: Sciencing the Crap Out of DevOps

@nicolefv

Continuousdelivery

OkayNOWwecanlookatthedata.

Page 20: Sciencing the Crap Out of DevOps

@nicolefv

Andnowwithaddedmath

https://devops-research.comForsgren, N., J. Humble (2016). "The Role of Continuous Delivery in IT and Organizational Performance." In the Proceedings of the Western Decision Sciences Institute (WDSI) 2016, Las Vegas, NV. Available at SSRN: http://ssrn.com/abstract=2681909

Page 21: Sciencing the Crap Out of DevOps

@nicolefv

Page 22: Sciencing the Crap Out of DevOps

@nicolefv

somesurprises

Page 23: Sciencing the Crap Out of DevOps

@nicolefv

What’snot stronglycorrelatedw/ITPerf?

Third-partyscriptsHomegrownscriptsCommercialconfigurationmanagementtoolsOpensourceGoldenimagesManualconfigurationmanagement

Page 24: Sciencing the Crap Out of DevOps

@nicolefv

What’snot stronglycorrelatedw/ITPerf?

Third-partyscriptsHomegrownscriptsCommercialconfigurationmanagementtoolsOpensourceGoldenimagesManualconfigurationmanagement

Page 25: Sciencing the Crap Out of DevOps

@nicolefv

Whichofthesemeasureeffective testpractices?

Developersprimarilycreate&maintainacceptancetests

QAprimarilycreate&maintainacceptance tests

Primarilycreated&maintainedbyoutsourcedparty

Whenautomatedtestspass,I’mconfidentthesoftwareisreleasable

Testfailuresarelikelytoindicatearealdefect

It’seasyfordeveloperstofixacceptance tests

Developersshareacommonpooloftestserverstoreproducefailures

Developerscreateondemandtestenvironments

Developersusetheirowndev environmentstoreproducefailures

Page 26: Sciencing the Crap Out of DevOps

@nicolefv

Whichofthesemeasureeffective testpractices?

Developersprimarilycreate&maintainacceptancetests

QAprimarilycreate&maintainacceptance tests

Primarilycreated&maintainedbyoutsourcedparty

Whenautomatedtestspass,I’mconfidentthesoftwareisreleasable

Testfailuresarelikelytoindicatearealdefect

It’seasyfordeveloperstofixacceptance tests

Developersshareacommonpooloftestserverstoreproducefailures

Developerscreateondemandtestenvironments

Developersusetheirowndevenvironmentstoreproducefailures

Page 27: Sciencing the Crap Out of DevOps

@nicolefv

Changemanagement

Allproductionchangesmustbeapprovedbyanexternalbody(e.g.changeapprovalboard,manager,etc.)beforedeploymentorimplementation(R)

Onlyhigh-riskchanges,suchasdatabasechanges,requireapproval

WehavenochangeapprovalprocessWerelyonpeerreviewtomanagechanges

Page 28: Sciencing the Crap Out of DevOps

@nicolefv

Changemanagement

Allproductionchangesmustbeapprovedbyanexternalbody(e.g.changeapprovalboard,manager,etc.)beforedeploymentorimplementation(R)

Onlyhigh-riskchanges,suchasdatabasechanges,requireapproval

WehavenochangeapprovalprocessWerelyonpeerreviewtomanagechanges

Page 29: Sciencing the Crap Out of DevOps

@nicolefv

SurpriseswithCulture

•Wewantedtoaddadditionalmeasuresofculture

• Googlestudy• Identity• RetainWestrum culture

Page 30: Sciencing the Crap Out of DevOps

@nicolefv

IdentityandGoogleitems• Iamglad Ichosetoworkforthisorganizationratherthananothercompany.

• Italkofthisorganizationtomyfriendsasagreatcompanytoworkfor.

• Iamwillingtoputinagreatdealofeffortbeyondwhatisnormallyexpected tohelpmyorganizationtobesuccessful.

• Ifindthatmyvaluesandmyorganization'svaluesareverysimilar.

• Ingeneral, thepeopleemployedbymyorganizationareworkingtowardthesamegoal.

• Ifeelthatmyorganizationcaresaboutme.AdaptedfromadaptedfromAtreyi Kankanhalli,BernardC.Y.Tan,andKwok-Kee Wei(2005),“ContributingKnowledgetoElectronicKnowledgeRepositories:AnEmpiricalInvestigation,“MISQuarterly,29,113-143.

Page 31: Sciencing the Crap Out of DevOps

@nicolefv

IdentityandGoogleitems• Iamglad Ichosetoworkforthisorganizationratherthananothercompany.

• Italkofthisorganizationtomyfriendsasagreatcompanytoworkfor.

• Iamwillingtoputinagreatdealofeffortbeyondwhatisnormallyexpected tohelpmyorganizationtobesuccessful.

• Ifindthatmyvaluesandmyorganization'svaluesareverysimilar.

• Ingeneral, thepeopleemployedbymyorganizationareworkingtowardthesamegoal.

• Ifeelthatmyorganizationcaresaboutme.AdaptedfromadaptedfromAtreyi Kankanhalli,BernardC.Y.Tan,andKwok-KeeWei (2005),“ContributingKnowledgetoElectronic KnowledgeRepositories:AnEmpiricalInvestigation,“MISQuarterly,29,113-143.

Westrum items

Page 32: Sciencing the Crap Out of DevOps

@nicolefv

Nowformanagementstuff

WeallknowmanagingWIPisimportant,right?

Page 33: Sciencing the Crap Out of DevOps

@nicolefv

Nowformanagementstuff

WeallknowmanagingWIPisimportant,right?CorrelationbetweenWIPandITPerfisnegligible

Page 34: Sciencing the Crap Out of DevOps

@nicolefv

Nowformanagementstuff

WeallknowmanagingWIPisimportant,right?CorrelationbetweenWIPandITPerfisnegligibleWhat’sgoingon?

Page 35: Sciencing the Crap Out of DevOps

@nicolefv

LeanmanagementSEM

Page 36: Sciencing the Crap Out of DevOps

@nicolefv

Alsoleanproductmanagement

Page 37: Sciencing the Crap Out of DevOps

@nicolefv

Conclusions

• Evenifyouthinkit’sobvious,TESTWITHDATA.• (iftheresults don’tsurpriseyou,you’redoingitwrong)• (ifyoudon’talsoconfirmsomethingsyouexpected, you’redoingitwrong)

•WeCANhaveitall,oratleastthroughputANDstability.

• ITmatters(butyouhavetodoitright)• DevOpsculture&practiceshaveameasurableimpactonIT&orgperf

Page 38: Sciencing the Crap Out of DevOps

@nicolefv

SignupforourROIwhitepaper&getpeer-reviewedresearchdevops-research.com

Formorescience-ing…

Page 39: Sciencing the Crap Out of DevOps

@nicolefv

Thankyounicolefv.com