Docsity

Cloud Computing: Chapter 8 - Data Storage and File Systems, Essays (university) of Computer Science

Partial preview of the text

Download Cloud Computing: Chapter 8 - Data Storage and File Systems and more Essays (university) Computer Science in PDF only on Docsity!

Chapter 8 – Storage Systems

Contents

 Big data.

 Evolution of storage systems.

 Storage and data models.

 Database management systems.

 Network File System.

 General Parallel File System.

 Google File System.

 Apache Hadoop.

 Chubby.

 Online transaction processing.

 NoSQL databases.

 Bigtable.

 Megastore.

Dan C. Marinescu^ Cloud Computing: Theory and Practice. Chapter 8^2

Big data

 New concept  reflects the fact that many applications use data

sets that cannot be stored and processed using local resources.

 Applications in genomics, structural biology, high energy physics,

astronomy, meteorology, and the study of the environment carry

out complex analysis of data sets often of the order of TBs

(terabytes). Examples:

 In 2010, the four main detectors at the Large Hadron Collider (LHC) produced 13 PB of data.  The Sloan Digital Sky Survey (SDSS) collects about 200 GB of data per night.

 Three-dimensional phenomena.

 Increased volume of data.  Requires increased processing speed to process more data and produce more results.  Involves a diversity of data sources and data types.

Cloud Computing: Theory and Practice.

Evolution of storage technology

 The capacity to store information in units of 730-MB (1 CD-ROM)

 1986 - 2.6 EB  <1, CD-ROM /person.  1993 - 15.8 EB  4 CD-ROM/person.  2000 - 54.5 EB  12 CD-ROM/person.  2007 -295.0 EB 61 CD-ROM/person.

 Hard disk drives (HDD) - during the 1980-2003 period:

 Storage density of has increased by four orders of magnitude from about 0.01 Gb/in^2 to about 100 Gb/in^2  Prices have fallen by five orders of magnitude to about 1 cent/MB.  HDD densities are projected to climb to 1,800 Gb/in^2 by 2016, up from 744 Gb/in^2 in 2011.

 Dynamic Random Access Memory (DRAM) - during the period 1990-2003:

 The density increased from about 1 Gb/in^2 in 1990 to 100 Gb/in^2.  The cost has tumbled from about $80/MB to less than $1/MB.

Cloud Computing: Theory and Practice.

Read/write coherence and before-or-after atomicity are two highly desirable properties of any storage model and in particular of cell storage

Cloud Computing: Theory and Practice.

M

A

M

A

time Read/Write coherence: the result of a Read of memory cell M should be the same as the most recent Write to that cell

A A

Write item A to memory cell M

Read item A from memory cell M

Before-or-after atomicity: the result of every Read or Write is the same as if that Read or Write occurred either completely before or completely after any other Read or Write.

Current Read/Write

Previous Read/Write

Next Read/Write

time

Data Base Management System (DBMS)

 Database  a collection of logically-related records.

 Data Base Management System (DBMS)  the software that

controls the access to the database.

 Query language  a dedicated programming language used to

develop database applications.

 Most cloud application do not interact directly with the file systems,

but through a DBMS.

 Database models  reflect the limitations of the hardware available

at the time and the requirements of the most popular applications of

each period.

 navigational model of the 1960s.  relational model of the 1970s.  object-oriented model of the 1980s.  NoSQL model of the first decade of the 2000s.

Cloud Computing: Theory and Practice.

Logical and physical organization of a file

 File  a linear array of cells stored on a persistent storage device.

Viewed by an application as a collection of logical records; the file is

stored on a physical device as a set of physical records, or blocks,

of size dictated by the physical media.

 File pointer identifies a cell used as a starting point for a read or

write operation.

 The logical organization of a file  reflects the data model, the view

of the data from the perspective of the application.

 The physical organization of a file  reflects the storage model and

describes the manner the file is stored on a given storage media.

Cloud Computing: Theory and Practice.

File systems

 File system  collection of directories; each directory provides information

about a set of files.

 Traditional – Unix File System.  Distributed file systems.  Network File Systems (NFS) - very popular, have been used for some time, but do not scale well and have reliability problems; an NFS server could be a single point of failure.  Storage Area Networks (SAN) - allow cloud servers to deal with non-disruptive changes in the storage configuration. The storage in a SAN can be pooled and then allocated based on the needs of the servers. A SAN-based implementation of a file system can be expensive, as each node must have a Fibre Channel adapter to connect to the network.  Parallel File Systems (PFS) - scalable, capable of distributing files across a large number of nodes, with a global naming space. Several I/O nodes serve data to all computational nodes; it includes also a metadata server which contains information about the data stored in the I/O nodes. The interconnection network of a PFS could be a SAN. Cloud Computing: Theory and Practice.

UFS layering

Cloud Computing: Theory and Practice.

Logical file structure Logical record Physical file structure Block Block

File layer

Inode layer

Path name layer

Absolute path name layer

Symbolic path name layer

File name layer

Block layer

Network File System (NFS)

 Design objectives:

 Provide the same semantics as a local Unix File System (UFS) to ensure compatibility with existing applications.  Facilitate easy integration into existing UFS.  Ensure that the system will be widely used; thus, support clients running on different operating systems.  Accept a modest performance degradation due to remote access over a network with a bandwidth of several Mbps.

 NFS is based on the client-server paradigm. The client runs on the

local host while the server is at the site of the remote file system;

they interact by means of Remote Procedure Calls (RPC).

 A remote file is uniquely identified by a file handle (fh) rather than a

file descriptor. The file handle is a 32-byte internal name - a

combination of the file system identification, an inode number, and a

generation number.

Cloud Computing: Theory and Practice.

 The API of the UNIX file system and the corresponding RPC issued

by an NFS client to the NFS server.

 fd  file descriptor.  fh  for file handle.  fname  file name,  dname  directory name.  dfh the directory were the file handle can be found.  count  the number of bytes to be transferred.  buf the buffer to transfer the data to/from.  device  the device where the file system is located.

Cloud Computing: Theory and Practice.

Comparison of distributed file systems

Cloud Computing: Theory and Practice.

General Parallel File System (GPFS)

 Parallel I/O implies concurrent execution of multiple input/output

operations. Support for parallel I/O is essential for the performance of

many applications.

 Concurrency control is a critical issue for parallel file systems. Several

semantics for handling the shared access are possible. For example,

when the clients share the file pointer successive reads issued by

multiple clients advance the file pointer; another semantics is to allow

each client to have its own file pointer.

 GPFS.

 Developed at IBM in the early 2000s as a successor of the TigerShark multimedia file system.  Designed for optimal performance of large clusters; it can support a file system of up to 4 PB consisting of up to 4,096 disks of 1 TB each.  Maximum file size is (2^63 -1) bytes.  A file consists of blocks of equal size, ranging from 16 KB to 1 MB, stripped across several disks. Cloud Computing: Theory and Practice.

Cloud Computing: Theory and Practice.

SAN

disk disk disk disk

LAN 1

LAN 2

LAN 3

LAN 4

disk

disk

I/O servers