CS338Parallel and Distributed Databases11-1 Parallel and Distributed Databases Lecture Topics Multi-CPU and distributed systems Monolithic system Client–server.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management
Advertisements

Database Architectures and the Web
Distributed Databases John Ortiz. Lecture 24Distributed Databases2  Distributed Database (DDB) is a collection of interrelated databases interconnected.
Transaction.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 13 (Web): Distributed Databases
Distributed Databases Logical next step in geographically dispersed organisations goal is to provide location transparency starting point = a set of decentralised.
ABCSG - Distributed Database 1 Data Management Distributed Database Data Replication.
Distributed Database Management Systems
Chapter 9 : Distributed Database.
Overview Distributed vs. decentralized Why distributed databases
1 © Prentice Hall, 2002 Chapter 13: Distributed Databases Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden.
Chapter 12 Distributed Database Management Systems
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 17 Client-Server Processing, Parallel Database Processing,
©Silberschatz, Korth and Sudarshan18.1Database System Concepts Centralized Systems Run on a single computer system and do not interact with other computer.
Definition of terms Definition of terms Explain business conditions driving distributed databases Explain business conditions driving distributed databases.
Distributed Databases
Parallel and Distributed Databases CS263 Lecture 16.
DISTRIBUTED COMPUTING
DISTRIBUTED DATABASE MANAGEMENT SYSTEM CHAPTER 07.
Database System Architectures  Client-server Database System  Parallel Database System  Distributed Database System Wei Jiang.
DATABASE MANAGEMENT SYSTEMS 2 ANGELITO I. CUNANAN JR.
Distributed Databases
Parallel & Distributed databases Agenda –The problem domain of design parallel & distributed databases (chp 18-20) –The data allocation problem –The data.
Chapter 3 Database Architectures and the Web Pearson Education © 2009.
Database Architectures and the Web
PMIT-6102 Advanced Database Systems
1 Distributed and Parallel Databases. 2 Distributed Databases Distributed Systems goal: –to offer local DB autonomy at geographically distributed locations.
12 1 Chapter 12 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design – Lecture 16
Database Architecture Introduction to Databases. The Nature of Data Un-structured Semi-structured Structured.
Massively Distributed Database Systems - Distributed DBS Spring 2014 Ki-Joune Li Pusan National University.
Session-8 Data Management for Decision Support
10 1 Chapter 10 Distributed Database Management Systems Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 12 Distributed Database Management Systems.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 12 Distributed Database Management Systems.
Week 5 Lecture Distributed Database Management Systems Samuel ConnSamuel Conn, Asst Professor Suggestions for using the Lecture Slides.
Intro – Part 2 Introduction to Database Management: Ch 1 & 2.
DDBMS Distributed Database Management Systems Fragmentation
Distributed DBMSs- Concept and Design Jing Luo CS 157B Dr. Lee Fall, 2003.
Kjell Orsborn UU - DIS - UDBL DATABASE SYSTEMS - 10p Course No. 2AD235 Spring 2002 A second course on development of database systems Kjell.
Chapter 12 Distributed Database Management Systems.
1 Distributed Databases BUAD/American University Distributed Databases.
Databases Illuminated
1 Database Management Systems (DBMS). 2 Database Management Systems (DBMS) n Overview of: ä Database Management Components ä Database Systems Architecture.
Distributed database system
Topic Distributed DBMS Database Management Systems Fall 2012 Presented by: Osama Ben Omran.
MBA 664 Database Management Systems Dave Salisbury ( )
Chapter 12 Distributed Data Bases. Learning Objectives What a distributed database management system (DDBMS) is and what its components are How database.
Introduction to Distributed Databases Yiwei Wu. Introduction A distributed database is a database in which portions of the database are stored on multiple.
Distributed Database Management Systems. Reading Textbook: Ch. 1, Ch. 3 Textbook: Ch. 1, Ch. 3 For next class: Ch. 4 For next class: Ch. 4 FarkasCSCE.
 Distributed Database Concepts  Parallel Vs Distributed Technology  Advantages  Additional Functions  Distribution Database Design  Data Fragmentation.
Chapter 1 Database Access from Client Applications.
1 Information Retrieval and Use De-normalisation and Distributed database systems Geoff Leese September 2008, revised October 2009.
Em Spatiotemporal Database Laboratory Pusan National University File Processing : Database Management System Architecture 2004, Spring Pusan National University.
IT 5433 LM1. Learning Objectives Understand key terms in database Explain file processing systems List parts of a database environment Explain types of.
1 Chapter 22 Distributed DBMSs - Concepts and Design Simplified Transparencies © Pearson Education Limited 1995, 2005.
LM 9. Distributed Database Dr. Lei Li 1. Note: The content of the slides including figures are mainly based on a publicly available textbook chapter:
Database Architectures and the Web
6/25/2018.
Distributed Database Management Systems
Parallel and Distributed Databases
Database Architectures and the Web
Chapter 17: Database System Architectures
7.1. CONSISTENCY AND REPLICATION INTRODUCTION
Database System Architecture
Distributed Databases
Database System Architectures
Distributed Systems and Concurrency: Distributed Systems
Presentation transcript:

CS338Parallel and Distributed Databases11-1 Parallel and Distributed Databases Lecture Topics Multi-CPU and distributed systems Monolithic system Client–server system Parallel and distributed database servers Fragmentation Textbook Chapter 22

CS338Parallel and Distributed Databases11-2 Multi-CPU and distributed systems CPU “computing power” does not scale linearly: a 2n-MIPS (or MHz or GHz) CPU costs much more than twice an n-MIP (MHz/GHz) CPU To increase system throughput, increase number of CPUs, not speed of (single) CPU Two techniques: –parallel –distributed

CS338Parallel and Distributed Databases11-3 Parallel: single “chassis” with sharing many systems with high-speed LAN continued CPU CPU memory CPU memory CPU memory CPU memory

CS338Parallel and Distributed Databases continued Distributed: many systems loosely-coupled with WAN CPU memory CPU memory CPU memory

CS338Parallel and Distributed Databases11-5 Monolithic system Application DBMS File System Each component presents a well-defined interface to the component above

CS338Parallel and Distributed Databases11-6 Component functions applications –user interaction: input of queries and data, display of results –application-specific tasks DBMS –query optimization: selection of one of many possible procedures for executing a query –query processing: execution of selected query –buffer management: allocation and control of memory –transaction management: concurrency control, rollback, and failure recovery –security and integrity management: access control and consistency checking file system –storage and retrieval of unstructured data on disks

CS338Parallel and Distributed Databases11-7 Client–server system Application Database Client Database Server File System DBMS Application Database Client

CS338Parallel and Distributed Databases11-8 DBMS client: packs application requests into messages, sends messages to server, waits for and unpacks the response; manages user interface DBMS server: all database system functions, including query processing and optimization, transaction management, security and integrity management, buffer management Client–server separation allows user interaction and database management to be performed by different processors continued

CS338Parallel and Distributed Databases11-9 Parallel, distributed database server Application Database Client DB Server File System Parallel Database Server Application Database Client DB Server File System DB Server File System DBMS

CS338Parallel and Distributed Databases11-10 data is distributed across the sites relations may be fragmented relations (or fragments of relations) may be replicated at several sites clients perceive a single database with a single, common schema Transparency: distribution of data is transparent distribution of computation is transparent replication is transparent fragmentation is transparent continued

CS338Parallel and Distributed Databases11-11 Parallel vs distributed servers What multiprocessing architecture to use? parallel database server: –servers in physical proximity to each other –fast, high-bandwidth communication between servers, usually via a LAN –most queries processed cooperatively by all servers distributed database server: –servers may be widely separated –server-to-server communication may be slower, possibly via a WAN –queries often processed by a single server

CS338Parallel and Distributed Databases11-12 Parallel, distributed: why? reliability and availability: if one server fails, another can take its place faster query processing: several servers can cooperate to process a query data sharing with distributed control: individual sites can share data while retaining some autonomy incremental database growth But: –processing overhead –difficulties enforcing integrity constraints –software complexity (cost and reliability)

CS338Parallel and Distributed Databases11-13 Data distribution Relations R1R2 R1 R2 Site A Site B

CS338Parallel and Distributed Databases11-14 Horizontal fragmentation Complete relation: Horizontally fragmented relation (two sites): VnoVnameCityVbal Sears Kmart Eatons The Bay Toronto Ottawa Toronto Ottawa VnoVnameCityVbal 2424 Kmart The Bay Ottawa Site 1 (Ottawa site) VnoVnameCityVbal 1313 Sears Eatons Toronto Site 2 (Toronto site)

CS338Parallel and Distributed Databases11-15 continued... Horizontal fragmentation stores subsets of a relation at different sites If R is divided into n subsets, labelled R i (i=1..n), then: R = R 1  R 2  …  R n Typical application in organizations with distributed management (e.g. local branch autonomy and control of data)

CS338Parallel and Distributed Databases11-16 Vertical Fragmentation Complete relation: Vertically fragmented relation (two sites): Vertical fragmentation is a lossless decomposition –for decomposition R = {R 1,R 2, …, R n } R = R 1 join R 2 join … join R n Typical use in organizations where org. units only use partial information VnoVnameCityVbal Sears Kmart Eatons The Bay Toronto Ottawa Toronto Ottawa VnoVnameCity Sears Kmart Eatons The Bay Toronto Ottawa Toronto Ottawa Site 2 VnoVbal Site 1

CS338Parallel and Distributed Databases11-17 Data replication Relations (or fragments) R1R2 R1R2 Site ASite B R2R1

CS338Parallel and Distributed Databases11-18 continued... Relations are copied to many sites Pros: –much better availability –faster (local) access –redundancy gives increased reliability Cons: –update much more complex and time- consuming –redundancy gives potential integrity problems Applicable especially in read-only transactions and infrequent changes to database