Docsity

Database System Architectures - Data Base Management System - Lecture Slides, Slides of Database Management Systems (DBMS)

Partial preview of the text

Download Database System Architectures - Data Base Management System - Lecture Slides and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Database System Architectures

• Client-server Database System

• Parallel Database System

• Distributed Database System

Centralized Systems

CPU

Disk Controller

Printer Controller

Tape-drive Controller

Memory Controller

Memory

System bus

Client-Server Systems

General structure of a client-server System

Client Client Client Client

Server

Front-end and back-end functionality

SQL uer- interface

Forms interface

Report writer

Graphical interface

SQL engine

Front-end

Interface (SQL +API)

Back-end

Server System Architectures

  • Transaction-server

Systems

Provide an interface to which client can send requests to perform an action, in response to which they execute the action and send back results to the client. Requests may be specified by using SQL, or through a specialized application program interface

  • Data-server Systems Allow clients to interact with the servers by making requests to read or update data, in units such as files or pages. For example, file servers provide a file-system interface where clients can create, update,read and delete files.

Data Servers

  • Prefetching page shipping: when an item (both tables and tuples) is requested, it also sends back other items that are likely to be used in near future
  • De-escalation Locking: if the client does not need a prefetched item, it can transfer locks on the items back to the server, and the lock can be allocated to other clients
  • Data Caching Coherency: even if a transaction finds cached data, it must make sure that those data are up to date. A message must still be exchanged with the server to check validity of the data, and acquire a lock on data.
  • Call back lock caching: If a client requests a lock from the server, the server must call back all conflicting locks on the data item from any other client that have cached the locks.

Parallel Systems

  • Purpose: improve processing and I/O speeds
  • Two kinds: 1)a coarse-grain parallel machine

2)a massively parallel machine

  • Measures of performance:

1)throughput: the number of tasks that can be completed in a time interval 2)response time: the amount of time it takes to complete a single task from the time it is submitted

  • Two important issues: speedup and scaleup

Scaleup

  • Def: the ability to process

larger tasks in the same amount of time by providing more resources.

  • Calculation: Ts / Ta (Ts-execution time of tasks Q on machine with size Ms; Ta-execution time of tasks NQ on machine with size NMs)

Type: 1)linear scaleup: Ts = Ta

2)sublinear scaleup: Ta > Ts

Linear scaleup

Sublinear scaleup

Problem size

Ts/Ta

Scaleup Continue

Two kinds of scaleup

 Batch scaleup: The large jobs whose runtime depends on the size of database.

 Transaction scaleup: The rate at which transactions are submitted to the database depends on the size of the database.

The factors work against efficient parallel operation

 Startup costs:the startup time overshadow the actual processing time, affecting speedup adversely

 Interference: it competes with existing processes for commonly held resources

 Skew: it is often difficult to divide a task into exactly equal- sized parts

Parallel Database Architectures

Shared Memory:

--Def: The processors and disks have access to a common memory via a bus or through an interconnection network.

--strength: extremely efficient communications between processes

--weakness: Maintaining cache increasing overhead

Shared Disk:

--Def: all processors can access all disks directly, but the processors have private memory.

--strength: 1) each processor has its own memory, the memory bus is not a bottleneck.

2)if a processor fails, the other processors can take over its tasks.

--weakness: The interconnection to the disk subsystem is now a bottleneck. Docsity.com

Parallel Database continued

Shared Nothing:

--Def: each node of machine consists of a processor,

memory, and one or more disks.

--strength: more scalable and easily support a large number

of processors.

--weakness: cost high

Hierarchical:

--Def: combines the above three