Applying Control Theory to Stream Processing Systems Wei Xu Bill Kramer Joe Hellerstein.

Slides:



Advertisements
Similar presentations
Feedback Control Real- time Scheduling James Yang, Hehe Li, Xinguang Sheng CIS 642, Spring 2001 Professor Insup Lee.
Advertisements

Feedback Control Real-Time Scheduling: Framework, Modeling, and Algorithms Chenyang Lu, John A. Stankovic, Gang Tao, Sang H. Son Presented by Josh Carl.
On the Robust Capability of Feedback Scheduling in ORB Middleware Bing Du David.C. Levy School of Electrical and Information Engineering University of.
DEXA 2005 Control-based Quality Adaptation in Data Stream Management Systems (DSMS) Yicheng Tu†, Mohamed Hefeeda‡, Yuni Xia†, Sunil Prabhakar†, and Song.
Priority Scheduling and Buffer Management for ATM Traffic Shaping Authors: Todd Lizambri, Fernando Duran and Shukri Wakid Present: Hongming Wu.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 19 Scheduling IV.
“On Designing Improved Controllers for AQM Routers Supporting TCP Flows” The PI Controller Presented by Bob Kinicki.
A Grid Parallel Application Framework Jeremy Villalobos PhD student Department of Computer Science University of North Carolina Charlotte.
Fjording the Stream: An Architecture for Queries over Streaming Sensor Data Samuel Madden, Michael J. Franklin University of California, Berkeley Proceedings.
Internet Traffic Patterns Learning outcomes –Be aware of how information is transmitted on the Internet –Understand the concept of Internet traffic –Identify.
Adaptive Sampling for Sensor Networks Ankur Jain ٭ and Edward Y. Chang University of California, Santa Barbara DMSN 2004.
AQM for Congestion Control1 A Study of Active Queue Management for Congestion Control Victor Firoiu Marty Borden.
6/16/20151 On Designing Improved Controllers for AQM Routers Supporting TCP flows By C.V Hollot, Vishal Mishra, Don Towsley and Wei-Bo Gong Presented by.
Double buffer SDRAM Memory Controller Presented by: Yael Dresner Andre Steiner Instructed by: Michael Levilov Project Number: D0713.
A DSP-Based Ramp Test for On-Chip High-Resolution ADC Wei Jiang and Vishwani D. Agrawal Auburn university.
EE 122: Router Design Kevin Lai September 25, 2002.
1 Emulating AQM from End Hosts Presenters: Syed Zaidi Ivor Rodrigues.
Dynamic routing – QoS routing Load sensitive routing QoS routing.
Yaksha: A Self-Tuning Controller for Managing the Performance of 3-Tiered Web Sites Abhinav Kamra, Vishal Misra CS Department Columbia University Erich.
CH 1 Introduction Prof. Ming-Shaung Ju Dept. of Mechanical Engineering NCKU.
Feedback Control Systems (FCS)
SEDA: An Architecture for Well-Conditioned, Scalable Internet Services
Pipelined Two Step Iterative Matching Algorithms for CIOQ Crossbar Switches Deng Pan and Yuanyuan Yang State University of New York, Stony Brook.
Naixue GSU Slide 1 ICVCI’09 Oct. 22, 2009 A Multi-Cloud Computing Scheme for Sharing Computing Resources to Satisfy Local Cloud User Requirements.
OwlSimulation Energy Model. The four Mores of Citizens for Affordable Energy The Motivation.
Process Flowsheet Generation & Design Through a Group Contribution Approach Lo ï c d ’ Anterroches CAPEC Friday Morning Seminar, Spring 2005.
Book Adaptive control -astrom and witten mark
Integrating Neural Network and Genetic Algorithm to Solve Function Approximation Combined with Optimization Problem Term presentation for CSC7333 Machine.
Physical Layer Informed Adaptive Video Streaming Over LTE Xiufeng Xie, Xinyu Zhang Unviersity of Winscosin-Madison Swarun KumarLi Erran Li MIT Bell Labs.
ATM SWITCHING. SWITCHING A Switch is a network element that transfer packet from Input port to output port. A Switch is a network element that transfer.
Computers on Cruise Control Creating Adaptive Systems with Control Theory Ricardo Portillo The University of Texas at El Paso
Chapter 5 – CPU Scheduling (Pgs 183 – 218). CPU Scheduling  Goal: To get as much done as possible  How: By never letting the CPU sit "idle" and not.
Univ. of TehranAdv. topics in Computer Network1 Advanced topics in Computer Networks University of Tehran Dept. of EE and Computer Engineering By: Dr.
Brief Review of Control Theory
Budget-based Control for Interactive Services with Partial Execution 1 Yuxiong He, Zihao Ye, Qiang Fu, Sameh Elnikety Microsoft Research.
Load Shedding in Stream Databases – A Control-Based Approach Yicheng Tu, Song Liu, Sunil Prabhakar, and Bin Yao Department of Computer Science, Purdue.
Department of Computer Science MapReduce for the Cell B. E. Architecture Marc de Kruijf University of Wisconsin−Madison Advised by Professor Sankaralingam.
Lecture 25: Implementation Complicating factors Control design without a model Implementation of control algorithms ME 431, Lecture 25.
Matlab Tutorial for State Space Analysis and System Identification
Control-Based Load Shedding in Data Stream Management Systems Yicheng Tu and Sunil Prabhakar Department of Computer Sciences, Purdue University April 3,
Adaptive Inverse Multiplexing for Wide-Area Wireless Networks Alex C. Snoeren MIT Laboratory for Computer Science IEEE Globecom ’99 Rio de Janeiro, December.
Csci 418/618 Simulation Models Dr. Ken Nygard, IACC 262B
Control-Based Load Shedding in Data Stream Management Systems Yicheng Tu and Sunil Prabhakar Department of Computer Sciences, Purdue University April 3,
Presentation subtitle: 20pt Arial Regular, teal R045 | G182 | B179 Recommended maximum length: 2 lines Confidentiality/date line: 13pt Arial Regular, white.
Buffering Techniques Greg Stitt ECE Department University of Florida.
Network layer (addendum) Slides adapted from material by Nick McKeown and Kevin Lai.
Weighted Available Space Selection Fixing write pool selection Mattias Wadenstein Gerd Behrmann
Digital Control CSE 421.
Abhinav Kamra, Vishal Misra CS Department Columbia University
Office Room: H116 Lab. : H830-1 Telephone: 4100
Applying Control Theory to Stream Processing Systems
Self-Tuning Memory Management of A Database System
Feedback Control of Computing Systems M4: Analyzing Composed Systems
Regulating Data Flow in J2EE Application Server
Clustering DNS Problems
Load Shedding in Stream Databases – A Control-Based Approach
Clustering DNS Problems
Streaming Sensor Data Fjord / Sensor Proxy Multiquery Eddy
PI Control for Nonlinear System with Application to a Converter Module
Brief Review of Control Theory
A Simulator to Study Virtual Memory Manager Behavior
EE 122: Lecture 7 Ion Stoica September 18, 2001.
Control Controlling is determining what is being accomplished, that is , evaluating the performance and , if necessary , applying corrective measures so.
Control Theory in Log Processing Systems
Horizon: Balancing TCP over multiple paths in wireless mesh networks
Presentation transcript:

Applying Control Theory to Stream Processing Systems Wei Xu Bill Kramer Joe Hellerstein ( )

Description of the system TCQ Complex internal structure Input Buffer Data Source TCQ drops tuples silently if result queue is full

Why do we need control? Data source does not provide accurate data rate

Why do we need control? TCQ node drops tuples when result queue fill up Buffer Source TCQ Result Q

Control Problems Providing an accurate data source –Get the actual data rate Regulate queue length on TCQ node –Prevent dropping tuples –Maximize throughput (and adapts when disturbance happens)

System with Control Output Rate Controller Controlled Data Source Queue Length Monitor 2

The Control Architecture P Controller PI Controller

Result – An accurate data source P Controller with Pre-compensation PI Controller

Result – regulating queue length Buffer Source TCQ Result Q

Result – Under CPU Contention Buffer Source TCQ Result Q

Why theory is useful? One of my implementations.. What happened? Buffer Source TCQ Result Q

What is going on? Queue Length Controller Desired Queue length Actual Queue Length Data Rate to TCQ Controlled Output Thread (Code Reuse)

Theory meets reality Output Y from simulation Time Queue length

Tricky part of parameter estimation Model evaluation – Making the system operate in desired range Non-Linear range Easy for data source, but queue length.. Free Space Data rate vs free space

Settling Time and Overshoot matters P Controller A lot of small disturbance in a Java program Incremental garbage collection PI Controller

Conclusion Advantages of feedback control –Make system more robust under disturbance –Treat complex systems as black boxes Cope with the system characteristics instead of having to change it –Encourage reporting system statistics –Implementation is easy and has theoretical guarantees

Future Work Load balancer Smaller sample time to reduce disturbance caused by Java GC? Controller on scheduling of system shared by multiple streams

Backup Slides

Outline Problems and Motivation Controller design Result Discussion

Description of the System Revised Data Source Input Buffer TCQ Node Queue length Routing Logic Load Splitter TCQ Node Tuples Tuple Blocks Operation of Load Splitter 1.Arriving blocks wait in Input Buffer 2.Tuples are routed to balance TCQ queue lengths 3.Stop routing if queue length is too large to avoid tuple discards

Compare to Open Loop Control We know Y(k), and we know what we want y(k+1) to be.. Use transfer function to solve for u(k)… (Expected result – accuracy and disturbance ) -- do be done

Estimation of the transfer function y(k+1)=ay(k)+bu(k) Regression

Tricky part of parameter estimation Model evaluation – A data rate that make it operate in linear range