Real-Time Databases and Data Services

Slides:



Advertisements
Similar presentations
Real Time Scheduling.
Advertisements

Priority INHERITANCE PROTOCOLS
Serializability in Multidatabases Ramon Lawrence Dept. of Computer Science
Concurrency Control III. General Overview Relational model - SQL Formal & commercial query languages Functional Dependencies Normalization Physical Design.
Optimistic Methods for Concurrency Control By : H.T. Kung & John T. Robinson Presenters: Munawer Saeed.
Unit 9 Concurrency Control. 9-2 Wei-Pang Yang, Information Management, NDHU Content  9.1 Introduction  9.2 Locking Technique  9.3 Optimistic Concurrency.
1 Concurrency Control Chapter Conflict Serializable Schedules  Two actions are in conflict if  they operate on the same DB item,  they belong.
Principles of Transaction Management. Outline Transaction concepts & protocols Performance impact of concurrency control Performance tuning.
CS5270 Lecture 31 Uppaal, and Scheduling, and Resource Access Protocols CS 5270 Lecture 3.
Lock-Based Concurrency Control
Temporal and Real-Time Databases: A Survey by Gultekin Ozsoyoglu and Richard T. Snodgrass Presentation by Didi Yao.
Lecture 11 Recoverability. 2 Serializability identifies schedules that maintain database consistency, assuming no transaction fails. Could also examine.
1 Deferrable Scheduling for Temporal Consistency: Schedulability Analysis and Overhead Reduction Ming Xiong : Lucent Bell Labs Song Han: City University.
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Database Systems, 8 th Edition Concurrency Control with Time Stamping Methods Assigns global unique time stamp to each transaction Produces explicit.
Distributed Systems 2006 Styles of Client/Server Computing.
Distributed DBMSPage © 1998 M. Tamer Özsu & Patrick Valduriez Outline Introduction Background Distributed DBMS Architecture Distributed Database.
CS 582 / CMPE 481 Distributed Systems
1 ICS 214B: Transaction Processing and Distributed Data Management Replication Techniques.
Real-Time Databases Krithi Ramamritham, “Real-Time Databases,” International Journal of Distributed and Parallel Databases, 1(2), pp , J.
Session - 14 CONCURRENCY CONTROL CONCURRENCY TECHNIQUES Matakuliah: M0184 / Pengolahan Data Distribusi Tahun: 2005 Versi:
Manajemen Basis Data Pertemuan 10 Matakuliah: M0264/Manajemen Basis Data Tahun: 2008.
1 Distributed Databases CS347 Lecture 16 June 6, 2001.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Concurrency Control In Dynamic Database Systems Laurel Jones.
TRANSACTIONS AND CONCURRENCY CONTROL Sadhna Kumari.
AN OPTIMISTIC CONCURRENCY CONTROL ALGORITHM FOR MOBILE AD-HOC NETWORK DATABASES Brendan Walker.
Concurrency Control in Distributed Databases. By :- Rishikesh Mandvikar rmandvik[at]engr.smu.edu May 1, 2004.
1 Maintaining Logical and Temporal Consistency in RT Embedded Database Systems Krithi Ramamritham.
Transaction Communications Yi Sun. Outline Transaction ACID Property Distributed transaction Two phase commit protocol Nested transaction.
Scheduling policies for real- time embedded systems.
Distributed Transactions
Concurrency Server accesses data on behalf of client – series of operations is a transaction – transactions are atomic Several clients may invoke transactions.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
Survey of Real Time Databases Telvis Calhoun CSc 6710.
A Deferrable Scheduling Algorithm for Real-Time Transactions Maintaining Data Freshness Ming Xiong Bell Labs Research, Lucent Technologies Song Han, Kam-yiu.
A Survey on Optimistic Concurrency Control CAI Yibo ZHENG Xin
Transactions and Concurrency Control. Concurrent Accesses to an Object Multiple threads Atomic operations Thread communication Fairness.
Page 1 Concurrency Control Paul Krzyzanowski Distributed Systems Except as otherwise noted, the content of this presentation.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Multidatabase Transaction Management COP5711. Multidatabase Transaction Management Outline Review - Transaction Processing Multidatabase Transaction Management.
Lecture 9- Concurrency Control (continued) Advanced Databases Masood Niazi Torshiz Islamic Azad University- Mashhad Branch
10 1 Chapter 10_B Concurrency Control Database Systems: Design, Implementation, and Management, Rob and Coronel.
Antidio Viguria Ann Krueger A Nonblocking Quorum Consensus Protocol for Replicated Data Divyakant Agrawal and Arthur J. Bernstein Paper Presentation: Dependable.
Relaxed Currency Serializability for Middle-Tier Caching and Replication Philip A. Bernstein, Alan Fekete, Hongfei Guo, Raghu Ramakrishnan, Pradeep Tamma.
Real-Time Databases and Data Services Krithi Ramamritham, Sang Son, Lissa Dipippo.
Distributed Databases – Advanced Concepts Chapter 25 in Textbook.
Embedded System Scheduling
Concurrency control.
Concurrency Control Techniques
Transaction Management and Concurrency Control
EEE 6494 Embedded Systems Design
6.4 Data and File Replication
Multiple Granularity Granularity is the size of data item  allowed to lock. Multiple Granularity is the hierarchically breaking up the database into portions.
Lecture 4 Schedulability and Tasks
Outline Introduction Background Distributed DBMS Architecture
Database Concurrency Control
Concurrency Control via Timestamps
Outline Announcements Fault Tolerance.
Chapter 10 Transaction Management and Concurrency Control
Concurrency Control and Reliable Commit Protocol in Distributed Database Systems Jian Jia Chen 2002/05/09 Real-time and Embedded System Lab., CSIE, National.
CSCI1600: Embedded and Real Time Software
Distributed Database Management Systems
Introduction of Week 13 Return assignment 11-1 and 3-1-5
CSCI1600: Embedded and Real Time Software
Processes and operating systems
Concurrency Control Techniques
Submitted to Dr. Badie Sartawi Submitted by Nizar Handal Course
Outline Introduction Background Distributed DBMS Architecture
Transactions, Properties of Transactions
Presentation transcript:

Real-Time Databases and Data Services Krithi Ramamritham, Sang Son, Lissa Dipippo

Outline Timing & Data Freshness Requirements Transaction Processing in RTDB QoS & QoD New Applications: Sensor networks, Mobile RTDB, Web Research challenges

Data Freshness Reminder: Half-half principle Update period Pi for data Xi = 0.5 avi(Xi) Guarantee freshness Double the utilization

More-Less Principle Minimize the CPU utilization of sensor transactions, while guaranteeing freshness Period Pi > 0.5avi(Xi): Decrease utilization Relaitve deadline Di < 0.5avi Pi + Di = avi(Xi) Farthest distance btwn two consecutive updates is Pi + Di Freshness is gauranteed if the deadline is met Prictorial explanation next

More-Less Principle avi Pi

More-Less Principle

But More-Less is not panecea Deadline is decreased as period increases More stringent timing constraints on sensor transactions Deadline Monotonic Scheduling should be used to schedule sensor transactions Dynamic priority scheuling cannot be used Refer to Ming Xiong’s RTSS ’05 paper for dynamic priority update scheduling

Scheduling & Concurrency Control Dealing with hard deadlines Sha et al. (1988) – periodic trasnsactions with known WCETs under RMS Period & WCET of a transaction shoud be known a priori Restrictions on transactions Difference btwn average caase exec time and WCET should be small; otherwise, poor resource utilization

Scheduling & Concurrency Control: Dealing with Soft Deadlines EDF Highest value first Highest value density (value/exec time) first Longest-executed transaction first

Concurrency Control 2PL variations Priority abort (called 2PL-PA or 2PL-HP) Immediately a lower priority transactoin upon a data conflict Performance varies depending on data contention Priority inheritance A low priority transaction blocking a high priority inherits the high priority Hybrid A low priority transaction close to finishing inherits the priority

Optimistic Concurrency Control An ongoing transaction optimistically assumes there’s no data contetion. After fishing all its read/write operations, it enters the validation stage to see whether or not it can commit Backward validation: A validating transaction either commits or aborts depending on whether it has conflicts with already committed transactions It does not allow to consider transaction characteristics for conflict resolution

Optimistic Concurrency Control Forward validation: A validating transaction aborts transactions conflicting with itself Wait-50: A validating transaction has to wait if more than 50% of the transactions that conflict with it have earlier deadlines; otherwise, it commits aborting the conflicting, on-going transactions

Optimistic Concurrency Control Timestamp orderging Multiversion CC Reduce data conflicts by allowing to read one version, while updating another version Absolute & relative consistence management can be more complicated if temporal consistency should be supported

Data deadlines Data dealine Earliest Data Deadline First Forced Wait Deadline assigned to a transaction due to data temporal consistency Transaction Ti’s deadline is time 10, but it has to read a data which becomes stale at time 7 -> Make Ti’s deadline be 7 Earliest Data Deadline First Forced Wait Delay further execution until a new version of sensor data becomes available

Data similarity Use old but similar data without affecting the result (within the specified bound) Similarity Stack Protocl: Kuo & Mok (1993) Weaker consistency requirement based on similarity concept: Kuo & Mok (2000) Combined with data deadline: Xiong et al. (2002b)

Distributed Databases & Commit Protocols Many RTDB applications are distributed, but little work has been done for distributed RTDB Intelligenet network service database, telecom database, mobile telecommunication systems, 1-800 telephone service, ... WWW & e-commerce database Performance, reliability & availability can be significantly improved by replicating data on multiple sites

Distributed Databases & Commit Protocols Multiversion technique in DRTDB: Son (1987) MIRROR: Xiong et al (2002b) Relax one-copy serializability Temporal consistency guarantees between primary and backup copies in distributed environment Distance-constrained scheduling

Distributed Databases & Commit Protocols Two-Phase Commit (2PC) protocol Voting phase: Each node votes whether or not a transaction can commit Commit phase: Commit if unanimous; otherwise, abort Expensive Make it real-time? Enter the 2nd phase, i.e., the commit phase, only if the vote is unamious and the transaction can commit within its deadline

Distributed Databases & Commit Protocols PROPMT: Haristsa et al. (2000) Allow transactions to borrow data updated by the transactions in their commit phase to reduce data inavailability & priority inversion

Satisfying QoS/QoD requirements To be discussed in the next class...