SlideShare a Scribd company logo
Continuous Delivery &
Machine Learning – SEA Edition
Ravi Lachhman
Harness.io
@ravilach
Who am I? <3 SRE
Machine Learning for Continuous Delivery
5
Dozens of Flavors
People in need of SUGAR
Eaten
No Negative Yelp Reviews
More are bought
What is Winning Doughnuts?
Doughnut Deployment Pipeline
Idea You
VerifyTestBuild
Manual
RollbackDeploy
Yum
New
Treat Hours MinsDays Mins
Ask co-workers
about taste
Blast on Social
Media
Gather Raw
Material
Prepare New
Doughnut Flavor
Eat / Instagram
Doughnut
Yelp / Google
Map Krispy
Kreme
Subjective Look Here Ouch
Wait we are in Software…
Software Deployment Pipeline
Code
Customer
Verify
Manual
Test
Kinda-
Automated
Build
Automated
Rollback
Manual
#WTF
Deploy
Manual
Custom
Scripts
Custom
Scripts
Custom
Scripts
HoursMins Hours/DaysChange
One BIG Difference
Copyright © Harness 2018 Confidential 11
Deploying & Verifying Apps Is A Little Different
Press
Monthly
Deployment Console
Confidential
Traditional Verification
“Application is up
so everything is
fine”
“Homepage
Works”
“Not seeing an
alerts”
“No-one has
complained yet”
Continuous Delivery = Automate Everything
Dev
Stage 1
Static Code Analysis
Unit Tests
Integration Tests
Depend/license Tests
Deployment Pipeline
CustomerCode
QA
Stage 2
Smoke Tests
Regression Tests
Security Tests
Browser Tests
Load/Perf Tests
On
Success
Production
Stage 3
Availability Tests
Performance Tests
Quality Tests
Security Tests
Canary Verification
On
Success
On
Commit
Enter Machine Learning
Disclaimer: Machine Learning Is Not A Silver Bullet
(But its better at doing some things better than humans)
Unsupervised Machine Learning
Algorithms identify meaning and context of data on its own
E.g. Natural Language Processing (NLP), Neural Nets
Supervised Machine Learning
Algorithms require human assistance
Neural Feedback (Ignore, Dismiss, Ratings, Yes, No)
NOT….Rules
Regex, Thresholds, Configuration or Standard Deviation!
Machine Learning 101
Applying Machine Learning
Performance
Quality
Security
Availability
Deploy
Rollback
Continuous
Verification
Performance
Quality
Business
Availability
Unsupervised
Machine Learning
Automate Deployment Test/Verify/Rollback
$ Revenue / Throughput
Context
Application
Artifact (Service)
Infrastructure
Deployment
Context, Control and Test Data
Control Data (Baseline)
Previous Tests
Previous Deployments
Previous Canary Phases
Test Data (New)
New Tests
New Deployments
New Canary Phases
Verify your Metrics
+ Custom Metrics
Confidential 20
Performance Good
Confidential 21
Performance Regression
Revenue Regression
Metric = Timestamp + Name + Value
E.g. “1/1/19 10:01:34, CPU, 99.9%”
This is what Dynatrace, AppDynamics, New Relic,
Datadog and Prometheus Provides
Analyze Time-Series Metrics from APM/Monitoring
Symbolic aggregate representation (SAX)
Machine Learning Algorithms Used (time-series)
https://jmotif.github.io/sax-vsm_site/morea/algorithm/SAX.html
Machine Learning Algorithms Used (time-series)
Hidden Markov Models
https://en.wikipedia.org/wiki/Hidden_Markov_model
Predict when data is incomplete
Verify your Logs
Confidential 27
Stack Trace
Error
Regressions
Quality Regression
Copyright © Harness 2018 Confidential 28
KMeans Clustering
Group Events
By
Natural Language
Similarity
Automate Verification (Unstructured Events)
Usual crap AnomaliesUsual crapAnomalies
Entropy (Frequency of Attributes)
0 1
High EntropyLow Entropy
Application Log File has 100 Events
10 of those are DoughnutNotFound Exceptions (Cluster)
DNF are thrown in 10 different places of the application
(different positions relative to each other)
Com.app.package.classA
Com.app.package.classB
Com.app.package.classC
Simple Example
Jaccard & Cosine Distance
Simple Example
DoughnutNotFoundException
ArraryOutOfBoundsException
BusinessException
ClassNotFoundException
KMeans Clustering isn’t Perfect
Event Data can contain noise
(guids, urls, ip addresses, cookies, …)
Use Trained Neural Nets to Reduce False Positives
Non-Neural Net
This is why Engineers
Don’t Trust Machine Learning
Trained Neural Net
Rollback in 32 Seconds
Build confidence, let machines help
Fold early, fold often
Doughnuts are amazing
What did we learn?
Copyright © Harness 2019 Confidential 38
Questions?
Free 15-Day Trial at www.harness.io
Grab the slides!
Free 15-Day Trial
at www.harness.io
Ravi.Lachhman@harness.io

More Related Content

PDF
The Key to DevOps? Testing Early in the Pipeline
PDF
Building a Secure DevOps Pipeline - for your AppSec Program
PDF
OWASP DefectDojo - Open Source Security Sanity
PPTX
AppSec++ Take the best of Agile, DevOps and CI/CD into your AppSec Program
ODP
Building an Open Source AppSec Pipeline - 2015 Texas Linux Fest
PPTX
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
PPTX
OOP 2016 - Building Software That Eats The World
PDF
Managers, Future Proof Your Automation
The Key to DevOps? Testing Early in the Pipeline
Building a Secure DevOps Pipeline - for your AppSec Program
OWASP DefectDojo - Open Source Security Sanity
AppSec++ Take the best of Agile, DevOps and CI/CD into your AppSec Program
Building an Open Source AppSec Pipeline - 2015 Texas Linux Fest
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
OOP 2016 - Building Software That Eats The World
Managers, Future Proof Your Automation

What's hot (19)

PDF
Measuring your way_to_successful_automation_webinar
PPTX
Top Java Performance Problems and Metrics To Check in Your Pipeline
PPTX
DevOps Pipelines and Metrics Driven Feedback Loops
PPTX
Deploy Faster Without Failing Faster - Metrics-Driven - Dynatrace User Groups...
PDF
OSMC 2015: Monitoring at Spotify-When things go ping in the night by Martin Parm
PPTX
How to explain DevOps to your mom
PPTX
Making the Transition from Manual to Automated Testing
PPTX
Using ai and automation to build resiliency into azure dev ops
PPTX
Four Practices to Fix Your Top .NET Performance Problems
PPTX
Metrics Driven DevOps - Automate Scalability and Performance Into your Pipeline
PDF
Security as Code: DOES15
PPTX
Whitebox Testing for Blackbox Testers: Simplifying API Testing
PPTX
Simulating Different-Network Speeds using JMETER
PPTX
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
PDF
Metrics-driven Continuous Delivery
PPTX
Release Readiness Validation with Keptn for Austrian Online Banking Software
PPTX
ATAGTR2017 The way to recover the issue faced in IoT regression Testing
PPTX
ATAGTR2017 Batch Workload Modelling and Performance Optimization
PPTX
Performance Metrics Driven CI/CD - Introduction to Continuous Innovation and ...
Measuring your way_to_successful_automation_webinar
Top Java Performance Problems and Metrics To Check in Your Pipeline
DevOps Pipelines and Metrics Driven Feedback Loops
Deploy Faster Without Failing Faster - Metrics-Driven - Dynatrace User Groups...
OSMC 2015: Monitoring at Spotify-When things go ping in the night by Martin Parm
How to explain DevOps to your mom
Making the Transition from Manual to Automated Testing
Using ai and automation to build resiliency into azure dev ops
Four Practices to Fix Your Top .NET Performance Problems
Metrics Driven DevOps - Automate Scalability and Performance Into your Pipeline
Security as Code: DOES15
Whitebox Testing for Blackbox Testers: Simplifying API Testing
Simulating Different-Network Speeds using JMETER
DevOps Days Toronto: From 6 Months Waterfall to 1 hour Code Deploys
Metrics-driven Continuous Delivery
Release Readiness Validation with Keptn for Austrian Online Banking Software
ATAGTR2017 The way to recover the issue faced in IoT regression Testing
ATAGTR2017 Batch Workload Modelling and Performance Optimization
Performance Metrics Driven CI/CD - Introduction to Continuous Innovation and ...
Ad

Similar to Machine Learning for Continuous Delivery (20)

PDF
Compliance as Code Everywhere
PDF
Extreme Automation Enables DirecTV to ”Shift Left” API Testing
PPT
Getting Started with Apache Jmeter
PDF
The Automation Firehose: Be Strategic and Tactical by Thomas Haver
PPTX
Continuous testing
PPTX
Continuous Delivery and Continuous Agile by Andy Singleton - Agile Maine Day...
PDF
Software Quality and Test Strategies for Ruby and Rails Applications
PDF
Andy singleton continuous delivery-fcb - nov 2014
PPT
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
PDF
Continuous Deployment Pipeline for Systems at Cascadia IT Conference - 2017-0...
PDF
Continuous testing & devops with @petemar5hall
PPTX
Releasing fast code - The DevOps approach
PPTX
Agile Engineering Sparker GLASScon 2015
PPS
Performance Test Slideshow R E C E N T
PPS
Performance Test Slideshow Recent
PDF
5 Steps to Jump Start Your Test Automation
PDF
CWIN17 New-York / Drive continuous delivery with continous testing
PDF
Neotys PAC 2018 - Ramya Ramalinga Moorthy
ODP
PDF
How the Big Data of APM can Supercharge DevOps
Compliance as Code Everywhere
Extreme Automation Enables DirecTV to ”Shift Left” API Testing
Getting Started with Apache Jmeter
The Automation Firehose: Be Strategic and Tactical by Thomas Haver
Continuous testing
Continuous Delivery and Continuous Agile by Andy Singleton - Agile Maine Day...
Software Quality and Test Strategies for Ruby and Rails Applications
Andy singleton continuous delivery-fcb - nov 2014
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Continuous Deployment Pipeline for Systems at Cascadia IT Conference - 2017-0...
Continuous testing & devops with @petemar5hall
Releasing fast code - The DevOps approach
Agile Engineering Sparker GLASScon 2015
Performance Test Slideshow R E C E N T
Performance Test Slideshow Recent
5 Steps to Jump Start Your Test Automation
CWIN17 New-York / Drive continuous delivery with continous testing
Neotys PAC 2018 - Ramya Ramalinga Moorthy
How the Big Data of APM can Supercharge DevOps
Ad

More from Ravi Lachhman (12)

PPTX
DevOps Days ATL 2022 - Ravi Lachhman
PPTX
DevOps vs SRE - CI/CD Pipelines Bridging the Gap
PPTX
What Can We Learn about KBBQ and Kubernetes
PPTX
Doughnut Dilemma - SRECon
PPTX
AWS re:Invent - AIOps - What do you say you do here
PPTX
CloudNativeCon Stability in an Unstable World
PPTX
Caribbean Developers Conference - 201K8s
PDF
Twelve Factor App vs Twelve Layer Burrito
PPTX
Js Conf 2018 - Confessions of a JEE Addict
PDF
Someone Call the Operator - ATL K8's Meetup
PDF
Sonatype Software Supply Chain 2017 - JAVA Users Group
PDF
CloudBees and Sonatype - MeetUp
DevOps Days ATL 2022 - Ravi Lachhman
DevOps vs SRE - CI/CD Pipelines Bridging the Gap
What Can We Learn about KBBQ and Kubernetes
Doughnut Dilemma - SRECon
AWS re:Invent - AIOps - What do you say you do here
CloudNativeCon Stability in an Unstable World
Caribbean Developers Conference - 201K8s
Twelve Factor App vs Twelve Layer Burrito
Js Conf 2018 - Confessions of a JEE Addict
Someone Call the Operator - ATL K8's Meetup
Sonatype Software Supply Chain 2017 - JAVA Users Group
CloudBees and Sonatype - MeetUp

Recently uploaded (20)

PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
L1 - Introduction to python Backend.pptx
PDF
Nekopoi APK 2025 free lastest update
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Odoo Companies in India – Driving Business Transformation.pdf
Softaken Excel to vCard Converter Software.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Odoo POS Development Services by CandidRoot Solutions
L1 - Introduction to python Backend.pptx
Nekopoi APK 2025 free lastest update
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Wondershare Filmora 15 Crack With Activation Key [2025
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Computer Software and OS of computer science of grade 11.pptx
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Navsoft: AI-Powered Business Solutions & Custom Software Development
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Reimagine Home Health with the Power of Agentic AI​
Odoo Companies in India – Driving Business Transformation.pdf

Machine Learning for Continuous Delivery