SlideShare a Scribd company logo
1 of 41
Feedback Control for System
Tuning
Cody Rioux - @codyrioux
Real-Time Analytics - Insight Engineering
Overview
● Feedback Control
○ Definition
○ Conceptual Model
● Concepts
○ Math
○ Rules of Thumb
● Case Study
○ Controlling Chris’ Effective Hours
● Recap
Controlling dynamic systems through continuous feedback.
Feedback Control
What is Feedback Control?
A form of Process Control for
controlling the behavior of black
box systems.
Example:
Driving a Car
Photo Credit @dinkyhim
Cody Engine
Accelerator Speed
Whats a
setpoint?
If you drive like me...
No regard for the speed limit, you’re just a feed-forward automaton.
You (Driver) Engine (V8)
Accelerator Speed
Speedometer
Speed Limit
Driving A Car
Cruise Control Engine (V8)
Accelerator Speed
Speed Reading
Speed Limit
What if we got a machine to do it?
System
Input Output
A Conceptual Model
Controller System
Input OutputSetpoint
A Conceptual Model
This happens to be a feed-forward system.
Controller System
Input Output
Feedback / Error
Setpoint
A Conceptual Model
Controller System
Input Output
Feedback / Error
Setpoint
A Conceptual Model
Controller System
Input Output
Feedback / Error
Setpoint
A Conceptual Model
Controller System
Input Output
Feedback / Error
Setpoint
A Conceptual Model
Controller System
Input Output
Feedback / Error
Setpoint
A Conceptual Model
Controller System
Input Output
Feedback / Error
Setpoint
A Conceptual Model
Feedback Principle
Continuously compare the actual
output to its desired reference value;
then apply a change to the system
inputs that counteracts any deviation of
the actual output from the reference.
You’ll need an advanced math degree for these...
Concepts
Controller System
Input Output
Feedback / Error
Setpoint
A Conceptual Model
error = setpoint - output
input = gain * error
Things to keep in mind...
Gain controls the
magnitude of our
adjustments. This is
important.
Univariate feedback is
inherently simple,
multivariate feedback
inherently complex.
Prefer small and
frequent adjustments to
large infrequent
adjustments.
Oscillation creates
instability. We don’t like
that.
End-to-end control system for maximum analytics productivity.
Case Study: Controlling Chris’
Caffeine Intake
What if this were...
● … a timeout value?
● … a queue size?
● … a server cluster size?
We can keep Chris rolling at 8 hours a day 365 if we wanted to.
Recap
Benefits of Feedback Control
● Automatic - No Need for Analytical Model
● Dynamic - System responds to change
● Real Time - Change Happens Fast
● Self-Correcting - Mistakes are Quickly Corrected
Feedback control is a viable
solution for configuring
systems under dynamic
conditions.
Only Scratching the Surface
● Integral Controllers
● Derivative Controllers
● PID Controllers
● Statistical Process Control
Literature
Feedback Control for Computer
Systems (Janert, 2013)
Questions and Discussion
crioux@netflix.com
@codyrioux
linkedin.com/in/codyrioux

More Related Content

What's hot

Detecting Anomalous Behavior with Surveillance​ Analytics​
Detecting Anomalous Behavior with Surveillance​ Analytics​Detecting Anomalous Behavior with Surveillance​ Analytics​
Detecting Anomalous Behavior with Surveillance​ Analytics​Databricks
 
Migrating Monitoring to Observability – How to Transform DevOps from being Re...
Migrating Monitoring to Observability – How to Transform DevOps from being Re...Migrating Monitoring to Observability – How to Transform DevOps from being Re...
Migrating Monitoring to Observability – How to Transform DevOps from being Re...Liz Masters Lovelace
 
Data Warehouse Automation Conference - Tom Breur: Cycle time & Automation 201...
Data Warehouse Automation Conference - Tom Breur: Cycle time & Automation 201...Data Warehouse Automation Conference - Tom Breur: Cycle time & Automation 201...
Data Warehouse Automation Conference - Tom Breur: Cycle time & Automation 201...Tom Breur
 
Do My MATLAB Assignment Research Guidance
Do My MATLAB Assignment Research GuidanceDo My MATLAB Assignment Research Guidance
Do My MATLAB Assignment Research GuidanceMatlab Simulation
 
Monitoring Models in Production
Monitoring Models in ProductionMonitoring Models in Production
Monitoring Models in ProductionJannes Klaas
 
Open Data Science Conference Agile Data
Open Data Science Conference Agile DataOpen Data Science Conference Agile Data
Open Data Science Conference Agile DataDataKitchen
 
Tom Breur - Agile Business Intelligence - accounting for progress - keynote d...
Tom Breur - Agile Business Intelligence - accounting for progress - keynote d...Tom Breur - Agile Business Intelligence - accounting for progress - keynote d...
Tom Breur - Agile Business Intelligence - accounting for progress - keynote d...Tom Breur
 
Planning a data solution - "By Failing to prepare, you are preparing to fail"
Planning a data solution - "By Failing to prepare, you are preparing to fail"Planning a data solution - "By Failing to prepare, you are preparing to fail"
Planning a data solution - "By Failing to prepare, you are preparing to fail"Itai Yaffe
 
Claw | data centric expert system
Claw | data centric expert systemClaw | data centric expert system
Claw | data centric expert systemMichal Karm Babacek
 
H2O World - Self Guiding Applications with Venkatesh Yadav
H2O World - Self Guiding Applications with Venkatesh YadavH2O World - Self Guiding Applications with Venkatesh Yadav
H2O World - Self Guiding Applications with Venkatesh YadavSri Ambati
 
Using druid for interactive count distinct queries at scale @ nmc
Using druid  for interactive count distinct queries at scale @ nmcUsing druid  for interactive count distinct queries at scale @ nmc
Using druid for interactive count distinct queries at scale @ nmcIdo Shilon
 
Video Processing Projects Research Guidance
Video Processing Projects Research GuidanceVideo Processing Projects Research Guidance
Video Processing Projects Research GuidanceMatlab Simulation
 
Au cœur du Machine Learning
Au cœur du Machine LearningAu cœur du Machine Learning
Au cœur du Machine LearningElasticsearch
 
Quality engineering in a world with AI and IoT
Quality engineering in a world with AI and IoTQuality engineering in a world with AI and IoT
Quality engineering in a world with AI and IoTSTePINForum
 

What's hot (17)

Detecting Anomalous Behavior with Surveillance​ Analytics​
Detecting Anomalous Behavior with Surveillance​ Analytics​Detecting Anomalous Behavior with Surveillance​ Analytics​
Detecting Anomalous Behavior with Surveillance​ Analytics​
 
Migrating Monitoring to Observability – How to Transform DevOps from being Re...
Migrating Monitoring to Observability – How to Transform DevOps from being Re...Migrating Monitoring to Observability – How to Transform DevOps from being Re...
Migrating Monitoring to Observability – How to Transform DevOps from being Re...
 
Data Warehouse Automation Conference - Tom Breur: Cycle time & Automation 201...
Data Warehouse Automation Conference - Tom Breur: Cycle time & Automation 201...Data Warehouse Automation Conference - Tom Breur: Cycle time & Automation 201...
Data Warehouse Automation Conference - Tom Breur: Cycle time & Automation 201...
 
Do My MATLAB Assignment Research Guidance
Do My MATLAB Assignment Research GuidanceDo My MATLAB Assignment Research Guidance
Do My MATLAB Assignment Research Guidance
 
Monitoring Models in Production
Monitoring Models in ProductionMonitoring Models in Production
Monitoring Models in Production
 
Open Data Science Conference Agile Data
Open Data Science Conference Agile DataOpen Data Science Conference Agile Data
Open Data Science Conference Agile Data
 
Tom Breur - Agile Business Intelligence - accounting for progress - keynote d...
Tom Breur - Agile Business Intelligence - accounting for progress - keynote d...Tom Breur - Agile Business Intelligence - accounting for progress - keynote d...
Tom Breur - Agile Business Intelligence - accounting for progress - keynote d...
 
Debugging AI
Debugging AIDebugging AI
Debugging AI
 
Planning a data solution - "By Failing to prepare, you are preparing to fail"
Planning a data solution - "By Failing to prepare, you are preparing to fail"Planning a data solution - "By Failing to prepare, you are preparing to fail"
Planning a data solution - "By Failing to prepare, you are preparing to fail"
 
Claw | data centric expert system
Claw | data centric expert systemClaw | data centric expert system
Claw | data centric expert system
 
partsSourceFinal_edit
partsSourceFinal_editpartsSourceFinal_edit
partsSourceFinal_edit
 
H2O World - Self Guiding Applications with Venkatesh Yadav
H2O World - Self Guiding Applications with Venkatesh YadavH2O World - Self Guiding Applications with Venkatesh Yadav
H2O World - Self Guiding Applications with Venkatesh Yadav
 
Sea of Data
Sea of DataSea of Data
Sea of Data
 
Using druid for interactive count distinct queries at scale @ nmc
Using druid  for interactive count distinct queries at scale @ nmcUsing druid  for interactive count distinct queries at scale @ nmc
Using druid for interactive count distinct queries at scale @ nmc
 
Video Processing Projects Research Guidance
Video Processing Projects Research GuidanceVideo Processing Projects Research Guidance
Video Processing Projects Research Guidance
 
Au cœur du Machine Learning
Au cœur du Machine LearningAu cœur du Machine Learning
Au cœur du Machine Learning
 
Quality engineering in a world with AI and IoT
Quality engineering in a world with AI and IoTQuality engineering in a world with AI and IoT
Quality engineering in a world with AI and IoT
 

Similar to Feedback control for system tuning

Week 14 pid may 24 2016 pe 3032
Week  14 pid  may 24 2016 pe 3032Week  14 pid  may 24 2016 pe 3032
Week 14 pid may 24 2016 pe 3032Charlton Inao
 
Developing Web-scale Machine Learning at LinkedIn - From Soup to Nuts
Developing Web-scale Machine Learning at LinkedIn - From Soup to NutsDeveloping Web-scale Machine Learning at LinkedIn - From Soup to Nuts
Developing Web-scale Machine Learning at LinkedIn - From Soup to NutsKun Liu
 
Lect-1-Introduction1.pptx
Lect-1-Introduction1.pptxLect-1-Introduction1.pptx
Lect-1-Introduction1.pptxportia67
 
Smart solutions for productivity gain IQA conference 2017
Smart solutions for productivity gain   IQA conference 2017Smart solutions for productivity gain   IQA conference 2017
Smart solutions for productivity gain IQA conference 2017Steve Franklin
 
Techniques for building robust machine learning systems
Techniques for building robust machine learning systemsTechniques for building robust machine learning systems
Techniques for building robust machine learning systemsStephen Whitworth
 
Monitoring Complex Systems - Chicago Erlang, 2014
Monitoring Complex Systems - Chicago Erlang, 2014Monitoring Complex Systems - Chicago Erlang, 2014
Monitoring Complex Systems - Chicago Erlang, 2014Brian Troutwine
 
Rules Programming tutorial
Rules Programming tutorialRules Programming tutorial
Rules Programming tutorialSrinath Perera
 
(DVO205) Monitoring Evolution: Flying Blind to Flying by Instrument
(DVO205) Monitoring Evolution: Flying Blind to Flying by Instrument(DVO205) Monitoring Evolution: Flying Blind to Flying by Instrument
(DVO205) Monitoring Evolution: Flying Blind to Flying by InstrumentAmazon Web Services
 
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxIntro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxDeepakJangid87
 
Forecasting at Scale with Marcello Tomasini
Forecasting at Scale with Marcello TomasiniForecasting at Scale with Marcello Tomasini
Forecasting at Scale with Marcello TomasiniInfluxData
 
Screenshot 2021-02-23 at 2.46.02 PM.pdf
Screenshot 2021-02-23 at 2.46.02 PM.pdfScreenshot 2021-02-23 at 2.46.02 PM.pdf
Screenshot 2021-02-23 at 2.46.02 PM.pdfmuhammadsubhan626458
 
Get Answers to Your ServiceNow CIS-ITSM Exam Today
Get Answers to Your ServiceNow CIS-ITSM Exam TodayGet Answers to Your ServiceNow CIS-ITSM Exam Today
Get Answers to Your ServiceNow CIS-ITSM Exam TodayMeghna Arora
 

Similar to Feedback control for system tuning (20)

Icse2018 autonomic
Icse2018 autonomicIcse2018 autonomic
Icse2018 autonomic
 
Week 14 pid may 24 2016 pe 3032
Week  14 pid  may 24 2016 pe 3032Week  14 pid  may 24 2016 pe 3032
Week 14 pid may 24 2016 pe 3032
 
Six Sigma Overview
Six Sigma OverviewSix Sigma Overview
Six Sigma Overview
 
CS ppt.pptx
CS ppt.pptxCS ppt.pptx
CS ppt.pptx
 
Developing Web-scale Machine Learning at LinkedIn - From Soup to Nuts
Developing Web-scale Machine Learning at LinkedIn - From Soup to NutsDeveloping Web-scale Machine Learning at LinkedIn - From Soup to Nuts
Developing Web-scale Machine Learning at LinkedIn - From Soup to Nuts
 
Lect-1-Introduction1.pptx
Lect-1-Introduction1.pptxLect-1-Introduction1.pptx
Lect-1-Introduction1.pptx
 
Smart solutions for productivity gain IQA conference 2017
Smart solutions for productivity gain   IQA conference 2017Smart solutions for productivity gain   IQA conference 2017
Smart solutions for productivity gain IQA conference 2017
 
A2IoT OBDII Case Study
A2IoT OBDII Case StudyA2IoT OBDII Case Study
A2IoT OBDII Case Study
 
Techniques for building robust machine learning systems
Techniques for building robust machine learning systemsTechniques for building robust machine learning systems
Techniques for building robust machine learning systems
 
Monitoring Complex Systems - Chicago Erlang, 2014
Monitoring Complex Systems - Chicago Erlang, 2014Monitoring Complex Systems - Chicago Erlang, 2014
Monitoring Complex Systems - Chicago Erlang, 2014
 
Rules Programming tutorial
Rules Programming tutorialRules Programming tutorial
Rules Programming tutorial
 
(DVO205) Monitoring Evolution: Flying Blind to Flying by Instrument
(DVO205) Monitoring Evolution: Flying Blind to Flying by Instrument(DVO205) Monitoring Evolution: Flying Blind to Flying by Instrument
(DVO205) Monitoring Evolution: Flying Blind to Flying by Instrument
 
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxIntro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
 
Mathworks CAE simulation suite – case in point from automotive and aerospace.
Mathworks CAE simulation suite – case in point from automotive and aerospace.Mathworks CAE simulation suite – case in point from automotive and aerospace.
Mathworks CAE simulation suite – case in point from automotive and aerospace.
 
Forecasting at Scale with Marcello Tomasini
Forecasting at Scale with Marcello TomasiniForecasting at Scale with Marcello Tomasini
Forecasting at Scale with Marcello Tomasini
 
Ep 5512 lecture-03
Ep 5512 lecture-03Ep 5512 lecture-03
Ep 5512 lecture-03
 
Screenshot 2021-02-23 at 2.46.02 PM.pdf
Screenshot 2021-02-23 at 2.46.02 PM.pdfScreenshot 2021-02-23 at 2.46.02 PM.pdf
Screenshot 2021-02-23 at 2.46.02 PM.pdf
 
pid controller
 pid controller pid controller
pid controller
 
Get Answers to Your ServiceNow CIS-ITSM Exam Today
Get Answers to Your ServiceNow CIS-ITSM Exam TodayGet Answers to Your ServiceNow CIS-ITSM Exam Today
Get Answers to Your ServiceNow CIS-ITSM Exam Today
 
Sure Controls
Sure ControlsSure Controls
Sure Controls
 

Feedback control for system tuning

Editor's Notes

  1. We don’t have to know anything about the behaviour of the system.