SlideShare a Scribd company logo
Using Machine Learning to Optimize
DevOps Practices
Building Learning into Monitoring and Feedback
Peter Varhol
About me
• International speaker and writer
• Degrees in Math, CS, Psychology
• Technology communicator
• Former university professor, tech journalist
• Cat owner and distance runner
• peter@petervarhol.com
Agenda
• What is machine learning?
• How is machine learning applied to DevOps?
• Challenges in training these systems
• What constitutes an issue?
• Summary and conclusions
What is Machine Learning?
• Layered algorithms that change parameters based on feedback
from know data
• Can be linear or nonlinear
• Algorithms can be fixed in production or adaptive
• Fixed – algorithms do not adjust once deployed
• Adaptive – algorithms continually adjust to new data
• Usually part of a larger system
Adaptive Systems
• Airline pricing
• Ticket prices change three times a day based on demand
• It can cost less to go farther
• It can cost less later
• Ecommerce systems
• Recommendations try to discern what else you might want
• Can I incentivize you to fill up the plane?
Why Use Adaptive?
• The “right” result will vary over time
• Trying to optimize a particular result
• Revenue
• The problem domain is not static
Confidential, Dynatrace LLC
How Are Fixed Systems Used?
• Transportation
• Self-driving cars
• Aircraft/Drones
• Ecommerce
• Recommendation engines
• Medical
• Diagnosis systems
Why Use Fixed Machine Learning Systems
• The problem domain is static
• The expectations remain constant
• The right answer is known under most conditions
• The original algorithms remain valid over a long period of time
DevOps Practices Generate Data
• During development
• Agile metrics, JIRA issues, test case metrics
• During continuous integration
• System test metrics
• During continuous deployment
• Quality metrics for deployments
• After deployment and into production
• Application availability and performance
• Usage log files
Focus on Monitoring
• Ongoing data on availability and performance
• RUM
• Synthetic tests
• Application monitoring
• Monitoring tackles the back end of DevOps
• Identifying unhealthy trends
• Diagnoses failures and poor performance
• Recommends action
• Fixed or adaptive depends on your goals
Where Do Predictive Analytics Come In?
• Big data makes possible predictions of future events
• Are we going to fail?
• How will we perform with traffic surges?
• As well as past events
• What went wrong and how do we fix it
• We can rely on past data
• Adaptive systems may not perform as well
• Clear goals needed
What Technologies Are Involved?
• Neural networks
• Genetic algorithms
• Rules engines
Neural Networks
• Set of layered algorithms whose variables can be
adjusted via a learning process
• The learning process involves training with
known inputs and outputs
• The algorithms adjust coefficients to converge on
the correct answer (or not)
• You freeze the algorithms and coefficients, and
deploy
• Or you optimize on a particular set of characteristics
A Sample Neural Network
Genetic Algorithms
• Use the principle of natural selection
• Create a range of possible solutions
• Try out each of them
• Choose and combine two of the better
alternatives
• Rinse and repeat as necessary
Bringing in DevOps
• DevOps has data that can be used to train neural networks
• Health of the application
• Trends in application traffic and responsiveness
• Application failure
Machine Learning Helps DevOps
• Decisions are complex
• Why is the CPU maxed?
• What is causing disk thrashing?
• Why did the network slow?
• Why did the application fail?
• Data is massive
• Potentially thousands of data points a day
How Good Are Decisions?
• Expert versus machine
• Given the same data
• In many domains they tie
• With additional data, the human can be better
• But machine learning will get better
• But only as good as the data
We Want to Do Two Things
• Identify trends that may indicate future problems
• Increasing response times
• More page errors
• Diagnose faults once they have happened
• Why did the application fail?
• How can we fix it as quickly as possible?
Fixed Algorithms Work for Some Problems
• Immediate performance and failure identification
• Diagnosis of failures and performance issues
• These are readily identifiable from known data
Adaptive Systems Supplement These Tools
• Predictions of future events
• Performance
• Availability
• The target is moving
• So we need current data to adjust the algorithms
The Machine Helps the DevOps Expert
• The machine learning app provides:
• Early warning on possible performance issues and failures
• Immediate notification of failure or impending failure
• Trend analysis of data to predict unhealthy outcomes
• The machine learning is an assistant
• It can’t fix anything
• It can’t necessarily identify the root cause
What is the Goal?
• We have many ways of monitoring
• Many of them are represented at this conference
• Each measures something a little different
• Latency, response time, availability, network, DNS . . .
• Too much data can be no better than no data at all
• Machine learning can correlate across
measurements
• Focus to eliminate false positives
Intelligent Systems Are Sometimes Wrong
• The problem domain is ambiguous
• There is no single “right” answer
• “Close enough” is good
• We don’t know quite why the software
responds as it does
• We can’t easily trace code paths
Testing Machine Learning Systems
• Have objective acceptance criteria
• Test with new data
• Don’t count on all results being accurate
• Understand the architecture of the network as a part of
the testing process
• Communicate the level of confidence you have in the
results to management and users
A Cautionary Tale
• All events are not created equal
• AI systems treat events equally
• A failure of a system during busy season is the same as any other
• DevOps pros know otherwise
• And can exert additional effort in response
• And actually fix the problem
• We can’t automate what we don’t understand
• You need the human in the loop
Confidential, Dynatrace LLC
Conclusions
• DevOps is a natural environment for machine learning
systems
• Any activity that generates data and requires a decision is fair game
• Monitoring is low-hanging fruit
• Fixed systems for failure and diagnosis, adaptive for trend
analysis
Confidential, Dynatrace LLC
References
• https://qz.com/989137/when-a-robot-ai-doctor-misdiagnoses-you-
whos-to-blame/
• https://pvarhol.wordpress.com/2017/07/22/what-brought-about-
our-ai-revolution/
• https://pvarhol.wordpress.com/2017/06/21/analytics-dont-apply-in-
the-clutch/
Confidential, Dynatrace LLC
Thank You
Peter Varhol
peter@petervarhol.com

More Related Content

PDF
SREcon 2017 From Firefighting to Proactive Work: the Journey of a Small Infra...
PDF
Take the Pain (and Weekends) Out of Test Case Management
PPTX
Observability - the good, the bad, and the ugly
PDF
Software Defects and SW Reliability Assessment
PPTX
#speakgeek - Support Processes for iconnect360
PDF
Using Time Series for Full Observability of a SaaS Platform
PPTX
PPTX
Devops - Accelerating the Pace and Securing Along the Way - Thaddeus Walsh
SREcon 2017 From Firefighting to Proactive Work: the Journey of a Small Infra...
Take the Pain (and Weekends) Out of Test Case Management
Observability - the good, the bad, and the ugly
Software Defects and SW Reliability Assessment
#speakgeek - Support Processes for iconnect360
Using Time Series for Full Observability of a SaaS Platform
Devops - Accelerating the Pace and Securing Along the Way - Thaddeus Walsh

What's hot (20)

PPTX
Optimizing Java
PPTX
TransPort Workshop
PPTX
Monitoring Distributed Systems
PDF
Software Testing
PPTX
Grab a coffee and take 5 mins out
PDF
What Do We Automate First
PDF
Automated testing san francisco oct 2013
PDF
Your Data Scientist Hates You
PPTX
SharePoint Troubleshooting
KEY
Make Life Suck Less (Building Scalable Systems)
PPTX
New technology new approaches - tmf - july 2016
PPTX
Software engineering
PPTX
Wix Automation - Automation Manager
PPTX
Performing Oracle Health Checks Using APEX
PPTX
PPTX
Solano Labs presented at MassTLC's automated testing
PPTX
Grab a coffee and take 5 mins out
PPTX
Becoma an Ace in Analytics
PDF
SHEKHAR VERMA
PPTX
Digital Testing Approach
Optimizing Java
TransPort Workshop
Monitoring Distributed Systems
Software Testing
Grab a coffee and take 5 mins out
What Do We Automate First
Automated testing san francisco oct 2013
Your Data Scientist Hates You
SharePoint Troubleshooting
Make Life Suck Less (Building Scalable Systems)
New technology new approaches - tmf - july 2016
Software engineering
Wix Automation - Automation Manager
Performing Oracle Health Checks Using APEX
Solano Labs presented at MassTLC's automated testing
Grab a coffee and take 5 mins out
Becoma an Ace in Analytics
SHEKHAR VERMA
Digital Testing Approach
Ad

Viewers also liked (9)

PPTX
Using Infrastructure as an Accelerator of DevOps Maturity
PDF
The API Side of Monitoring
PPTX
VMUG Melbourne - DevOps - Not Just for Open Source and Unicorns
PPTX
Managing the Infrastructure Stack with PowerShell
PPTX
DevOps and Groupthink An Oxymoron?
PDF
Philipp Krenn - NoSQL Means No Security?
PPTX
Work + Family +Self + Fast Paced Industry = ¯\_(ツ)_/¯
PDF
Josh Atwell - Infrastructure Extensibility at Home and in DevOps
PPTX
Devopsdays Edinburgh 2017 - Ignite talk - Swarming
Using Infrastructure as an Accelerator of DevOps Maturity
The API Side of Monitoring
VMUG Melbourne - DevOps - Not Just for Open Source and Unicorns
Managing the Infrastructure Stack with PowerShell
DevOps and Groupthink An Oxymoron?
Philipp Krenn - NoSQL Means No Security?
Work + Family +Self + Fast Paced Industry = ¯\_(ツ)_/¯
Josh Atwell - Infrastructure Extensibility at Home and in DevOps
Devopsdays Edinburgh 2017 - Ignite talk - Swarming
Ad

Similar to Using Machine Learning to Optimize DevOps Practices (20)

PDF
How to benefit from artificial intelligence machine learning in dev ops
PPTX
Testing a movingtarget_quest_dynatrace
PDF
AIIA - Charting the Path to Intelligent Operations with Machine Learning - At...
PPTX
DevOpsDaysRiga 2018: Antonio Pigna - Put the brAIn into your DevOps workflow
PDF
Integrating cognitive services in to your devops strategy
PDF
integrating-cognitive-services-into-your-devops-strategy
PPTX
DevOps Online Training | DevOps Certification Training in Hyderabad
PDF
Agile Mumbai 2019 Conference | Intelligent DevOps enabling Enterprise Agilit...
PPTX
Canada DevOps Summit 2020 Presentation Nov_03_2020
PPTX
An Agile Approach to Machine Learning
PDF
Devops Automation and modern tools you can adapt
PDF
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
PPTX
Correlation does not mean causation
PDF
Agile Mumbai 27-28th Sep 2024 | AI Revolution: Transforming the Future of Dev...
PPTX
Robert Risch - AI ML and Serverless in DevOps
PDF
Cloud Service Management: Why Machine Learning is Now Essential
PPTX
How to apply machine learning into your CI/CD pipeline
PDF
Opportunities for data analytics in power generation affelt 2016
PDF
DevTestOps
PDF
Managing machine learning
How to benefit from artificial intelligence machine learning in dev ops
Testing a movingtarget_quest_dynatrace
AIIA - Charting the Path to Intelligent Operations with Machine Learning - At...
DevOpsDaysRiga 2018: Antonio Pigna - Put the brAIn into your DevOps workflow
Integrating cognitive services in to your devops strategy
integrating-cognitive-services-into-your-devops-strategy
DevOps Online Training | DevOps Certification Training in Hyderabad
Agile Mumbai 2019 Conference | Intelligent DevOps enabling Enterprise Agilit...
Canada DevOps Summit 2020 Presentation Nov_03_2020
An Agile Approach to Machine Learning
Devops Automation and modern tools you can adapt
لموعد الإثنين 03 يناير 2022 143 مبادرة #تواصل_تطوير المحاضرة ال 143 من المباد...
Correlation does not mean causation
Agile Mumbai 27-28th Sep 2024 | AI Revolution: Transforming the Future of Dev...
Robert Risch - AI ML and Serverless in DevOps
Cloud Service Management: Why Machine Learning is Now Essential
How to apply machine learning into your CI/CD pipeline
Opportunities for data analytics in power generation affelt 2016
DevTestOps
Managing machine learning

More from Peter Varhol (16)

PPTX
Not fair! testing AI bias and organizational values
PPTX
DevOps and the Impostor Syndrome
PPTX
Not fair! testing ai bias and organizational values
PPTX
162 the technologist of the future
PPTX
Digital transformation through devops dod indianapolis
PPTX
Testing for cognitive bias in ai systems
PPTX
Making disaster routine
PPTX
What Aircrews Can Teach Testing Teams
PPTX
Identifying and measuring testing debt
PPTX
What aircrews can teach devops teams ignite
PPTX
Talking to people lightning
PPTX
Varhol oracle database_firewall_oct2011
PPTX
Qa test managed_code_varhol
PDF
Talking to people: the forgotten DevOps tool
PPTX
How do we fix testing
PPTX
Moneyball peter varhol_starwest2012
Not fair! testing AI bias and organizational values
DevOps and the Impostor Syndrome
Not fair! testing ai bias and organizational values
162 the technologist of the future
Digital transformation through devops dod indianapolis
Testing for cognitive bias in ai systems
Making disaster routine
What Aircrews Can Teach Testing Teams
Identifying and measuring testing debt
What aircrews can teach devops teams ignite
Talking to people lightning
Varhol oracle database_firewall_oct2011
Qa test managed_code_varhol
Talking to people: the forgotten DevOps tool
How do we fix testing
Moneyball peter varhol_starwest2012

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Transforming Manufacturing operations through Intelligent Integrations
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
MYSQL Presentation for SQL database connectivity
PPT
Teaching material agriculture food technology
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
cuic standard and advanced reporting.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
Cloud computing and distributed systems.
PDF
Modernizing your data center with Dell and AMD
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
KodekX | Application Modernization Development
Per capita expenditure prediction using model stacking based on satellite ima...
20250228 LYD VKU AI Blended-Learning.pptx
Sensors and Actuators in IoT Systems using pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
“AI and Expert System Decision Support & Business Intelligence Systems”
Transforming Manufacturing operations through Intelligent Integrations
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
MYSQL Presentation for SQL database connectivity
Teaching material agriculture food technology
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
cuic standard and advanced reporting.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Understanding_Digital_Forensics_Presentation.pptx
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Cloud computing and distributed systems.
Modernizing your data center with Dell and AMD
Diabetes mellitus diagnosis method based random forest with bat algorithm
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KodekX | Application Modernization Development

Using Machine Learning to Optimize DevOps Practices

  • 1. Using Machine Learning to Optimize DevOps Practices Building Learning into Monitoring and Feedback Peter Varhol
  • 2. About me • International speaker and writer • Degrees in Math, CS, Psychology • Technology communicator • Former university professor, tech journalist • Cat owner and distance runner • [email protected]
  • 3. Agenda • What is machine learning? • How is machine learning applied to DevOps? • Challenges in training these systems • What constitutes an issue? • Summary and conclusions
  • 4. What is Machine Learning? • Layered algorithms that change parameters based on feedback from know data • Can be linear or nonlinear • Algorithms can be fixed in production or adaptive • Fixed – algorithms do not adjust once deployed • Adaptive – algorithms continually adjust to new data • Usually part of a larger system
  • 5. Adaptive Systems • Airline pricing • Ticket prices change three times a day based on demand • It can cost less to go farther • It can cost less later • Ecommerce systems • Recommendations try to discern what else you might want • Can I incentivize you to fill up the plane?
  • 6. Why Use Adaptive? • The “right” result will vary over time • Trying to optimize a particular result • Revenue • The problem domain is not static Confidential, Dynatrace LLC
  • 7. How Are Fixed Systems Used? • Transportation • Self-driving cars • Aircraft/Drones • Ecommerce • Recommendation engines • Medical • Diagnosis systems
  • 8. Why Use Fixed Machine Learning Systems • The problem domain is static • The expectations remain constant • The right answer is known under most conditions • The original algorithms remain valid over a long period of time
  • 9. DevOps Practices Generate Data • During development • Agile metrics, JIRA issues, test case metrics • During continuous integration • System test metrics • During continuous deployment • Quality metrics for deployments • After deployment and into production • Application availability and performance • Usage log files
  • 10. Focus on Monitoring • Ongoing data on availability and performance • RUM • Synthetic tests • Application monitoring • Monitoring tackles the back end of DevOps • Identifying unhealthy trends • Diagnoses failures and poor performance • Recommends action • Fixed or adaptive depends on your goals
  • 11. Where Do Predictive Analytics Come In? • Big data makes possible predictions of future events • Are we going to fail? • How will we perform with traffic surges? • As well as past events • What went wrong and how do we fix it • We can rely on past data • Adaptive systems may not perform as well • Clear goals needed
  • 12. What Technologies Are Involved? • Neural networks • Genetic algorithms • Rules engines
  • 13. Neural Networks • Set of layered algorithms whose variables can be adjusted via a learning process • The learning process involves training with known inputs and outputs • The algorithms adjust coefficients to converge on the correct answer (or not) • You freeze the algorithms and coefficients, and deploy • Or you optimize on a particular set of characteristics
  • 14. A Sample Neural Network
  • 15. Genetic Algorithms • Use the principle of natural selection • Create a range of possible solutions • Try out each of them • Choose and combine two of the better alternatives • Rinse and repeat as necessary
  • 16. Bringing in DevOps • DevOps has data that can be used to train neural networks • Health of the application • Trends in application traffic and responsiveness • Application failure
  • 17. Machine Learning Helps DevOps • Decisions are complex • Why is the CPU maxed? • What is causing disk thrashing? • Why did the network slow? • Why did the application fail? • Data is massive • Potentially thousands of data points a day
  • 18. How Good Are Decisions? • Expert versus machine • Given the same data • In many domains they tie • With additional data, the human can be better • But machine learning will get better • But only as good as the data
  • 19. We Want to Do Two Things • Identify trends that may indicate future problems • Increasing response times • More page errors • Diagnose faults once they have happened • Why did the application fail? • How can we fix it as quickly as possible?
  • 20. Fixed Algorithms Work for Some Problems • Immediate performance and failure identification • Diagnosis of failures and performance issues • These are readily identifiable from known data
  • 21. Adaptive Systems Supplement These Tools • Predictions of future events • Performance • Availability • The target is moving • So we need current data to adjust the algorithms
  • 22. The Machine Helps the DevOps Expert • The machine learning app provides: • Early warning on possible performance issues and failures • Immediate notification of failure or impending failure • Trend analysis of data to predict unhealthy outcomes • The machine learning is an assistant • It can’t fix anything • It can’t necessarily identify the root cause
  • 23. What is the Goal? • We have many ways of monitoring • Many of them are represented at this conference • Each measures something a little different • Latency, response time, availability, network, DNS . . . • Too much data can be no better than no data at all • Machine learning can correlate across measurements • Focus to eliminate false positives
  • 24. Intelligent Systems Are Sometimes Wrong • The problem domain is ambiguous • There is no single “right” answer • “Close enough” is good • We don’t know quite why the software responds as it does • We can’t easily trace code paths
  • 25. Testing Machine Learning Systems • Have objective acceptance criteria • Test with new data • Don’t count on all results being accurate • Understand the architecture of the network as a part of the testing process • Communicate the level of confidence you have in the results to management and users
  • 26. A Cautionary Tale • All events are not created equal • AI systems treat events equally • A failure of a system during busy season is the same as any other • DevOps pros know otherwise • And can exert additional effort in response • And actually fix the problem • We can’t automate what we don’t understand • You need the human in the loop Confidential, Dynatrace LLC
  • 27. Conclusions • DevOps is a natural environment for machine learning systems • Any activity that generates data and requires a decision is fair game • Monitoring is low-hanging fruit • Fixed systems for failure and diagnosis, adaptive for trend analysis Confidential, Dynatrace LLC

Editor's Notes

  • #8: These types of software are becoming increasingly common, in areas such as ecommerce, public transportation, automotive, finance, and computer networks. They have the potential to make decisions given sufficiently well-defined inputs and goals. In some instances, they are characterized as artificial intelligence, in that they seemingly make decisions that were once the purview of a human user or operator.
  • #14: Most machine learning systems are based on neural networks. A neural network is a set of layered algorithms whose variables can be adjusted via a learning process. The learning process involves using known data inputs to create outputs that are then compared with known results. When the algorithms reflect the known results with the desired degree of accuracy, the algebraic coefficients are frozen and production code is generated. Today, this comprises much of what we understand as artificial intelligence.
  • #21: But there is a type of software where having a defined output is no longer the case. Actually, two types. One is machine learning systems. The second is predictive analytics, or adaptive systems.
  • #27: Have objective acceptance criteria. Know the amount of error you and your users are willing to accept. Test with new data. Once you’ve trained the network and frozen the architecture and coefficients, use fresh inputs and outputs to verify its accuracy. Don’t count on all results being accurate. That’s just the nature of the beast. And you may have to recommend throwing out the entire network architecture and starting over. Understand the architecture of the network as a part of the testing process. Few if any will be able to actually follow a set of inputs through the network of algorithms, but understanding how the network is constructed will help testers determine if another architecture might produce better results. Communicate the level of confidence you have in the results to management and users. Machine learning systems offer you the unique opportunity to describe confidence in statistical terms, so use them. One important thing to note is that the training data itself could well contain inaccuracies. In this case, because of measurement error, the recorded wind speed and direction could be off or ambiguous. In other cases, the cooling of the filament likely has some error in its measurement.