Abstract
Real-time data stream applications require both high-throughput processing and strict adherence to temporal constraints. Traditional Data Stream Management Systems (DSMS) often fail to provide deterministic behavior under volatile workloads. This paper introduces a formal framework based on MEDAL, an enhanced Petri net specification language, to unify query logic and quality-of-service (QoS) control. By employing a periodic query model and prediction-based load shedding, the proposed system, RT-STREAM, ensures bounded latencies and prioritizes critical tasks. Experimental evaluations show that RT-STREAM maintains a 0% deadline miss ratio for high-priority queries even during 160% CPU load spikes.
Introduction
Real-time data stream applications, such as air traffic control or emergency response systems, operate under a "double whammy" of complexity: they must process continuous, unbounded data streams while meeting strict deadlines. A late result in these contexts is often as useless as an incorrect one. Traditional DSMS are typically designed for average-case throughput and struggle with the unpredictability of data arrival rates and changing operator selectivity. There is a critical need for a formal language that can simultaneously model query logic and the control mechanisms required to handle system overloads.
Methodology: The MEDAL Framework
The authors address these challenges using MEDAL, a formal specification language that incorporates Stochastic, Timed, and Colored Petri net features. This allows for the creation of a comprehensive system model that integrates the query plan with a Data Admission Controller.
Query Logic and Periodic Execution
Unlike standard continuous query models where every incoming tuple triggers a calculation, the authors propose a Periodic Query Model (PQuery). PQuery executes at fixed intervals, making workloads more predictable and simplifying the analysis of real-time guarantees.
Formal Modeling with Petri Nets
By representing the system as a Petri net, designers can perform "what-if" analyses to verify safety requirements. For instance, one can formally prove whether a specific configuration will detect a critical event within a required time window. This "observability" is a prerequisite for applying effective control theory to data streams.
Prediction-Based QoS Control
To maintain stability during bursts, the system utilizes a Proportional-Integral (PI) controller for load shedding. This controller relies on just-in-time sampling to dynamically estimate operator selectivity and execution costs, allowing the system to shed lower-priority data to protect critical services.
Experimental Evaluation
The framework was tested using a synthetic workload of 12 data streams and 48 queries, simulating CPU utilization spikes up to 160%. The prototype, RT-STREAM, was compared against the Stanford STREAM system.
- Latency Stability: While the continuous model in STREAM saw latencies grow to 23 seconds during bursts, RT-STREAM kept latencies bounded within query deadlines.
- Differentiated Services: By using multiple admission controllers (RT-STREAM-DACM), the system achieved a 0% miss ratio for high-priority "Class 0" queries, even under extreme load, by selectively shedding load from lower-priority classes.
- Recovery Speed: The PI controller enabled the system to reduce the overall deadline miss ratio to below 5% within 10 seconds of a massive workload burst.
Conclusion
The integration of formal Petri net-based modeling with periodic query execution provides a robust foundation for real-time data stream management. The ability to observe the correlation between input volume and query results within a unified MEDAL model allows for precise QoS control. Future work will focus on developing preemptive, context-aware controllers to further enhance system resilience against irregular workloads.
Summary updated