SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
Replication
What is replication? ?& why replication?
• Replication is having multiple copies of
data and services in a distributed system
• Reasons:
– Reliability of the system
– Better protection against corrupted data
– Improved Performance and faster response time
– Facilitates scaling in numbers and geographical
area.
Key Issues:
• Where, when and by whom replicas should be
placed.
• Mechanisms to keep them consistent.
• Two main sub-problems:
– Replica-server Placement
» Finding best location or placed where a server can be
placed.
– Content Placement
» Finding out which server is best for storing a particular
content.
Content Replication and Placement
• Permanent Replicas
– Geographically distributed - Mirroring
– Same location – Round Robin
• Server Initiated Replicas
• Client Initiated Replicas
Server Initiated Replicas
• Initiative of owner of data store
• Enhance performance
P
C1
C2
Server
without copy
of F
Server with
copy of F
Q
Client Initiated Replicas
• Client caches
• Managing is entirely by client
• Improve access time
• Placement
– Same machine
– LAN
– WAN
Content Distribution
• Propagation of Updated content
– Propagate only notification of an update
» Invalidation Protocols
– Transfer data from one copy to another
– Propagate the update operation to other copies
Push Vs Pull Protocols
• Push
– Server based
– Read to update ratio is high
– High degree of consistency
– Multicasting
• Pull
– Client based
– Read to update ratio is low
– Unicasting
• Lease
Why Use Replication
 Enhances a service (object/data/service)
 Increased Availability
 Of service. When servers fail or when the network is
partitioned, service still available at at least once server.
Fault Tolerance
 Under the fail-stop model, if up to f of f+1 servers crash, at
least one is alive.
Load Balancing
 One approach: Multiple server IPs can be assigned to the
same name in DNS, which returns answers/IPs round-robin.
P: probability that one server fails= 1 – P= availability of
service. e.g. P = 5% => service is available 95% of the time.
Pn: probability that n servers fail= 1 – Pn= availability of
replicated service. e.g. P = 5%, n = 3 => service available
99.875% of the time
Goals of Replication
 Replication Transparency
User/client need not know that multiple physical copies of
data exist.
 Replication Consistency
Data is consistent on all of the replicas of an object (or is
converging towards becoming consistent).
Client Front End
(FE) RM
RM
RM
Client Front End
(FE)
Client Front End
(FE)
Service
server
server
server
Replica Manager
Types of data replication
• 1. Synchronous Replication:
In synchronous replication, the replica will be
modified immediately after some changes are
made in the relation table. So there is no
difference between original data and replica.
2. Asynchronous replication:
In asynchronous replication, the replica will be
modified after commit is fired on to the database.
Replication Schemes
Full Replication
• In full replication scheme, the database is available to almost every
location or user in communication network.
Advantages of full replication
• High availability of data, as database is available to almost every
location.
• Faster execution of queries.
Disadvantages of full replication
• Concurrency control is difficult to achieve in full replication.
• Update operation is slower.
Replication Schemes
No Replication
• No replication means, each fragment is stored exactly at one location.
Advantages of no replication
• Concurrency can be minimized.
• Easy recovery of data.
Disadvantages of no replication
• Poor availability of data.
• Slows down the query execution process, as multiple clients are
accessing the same server
.
Replication Schemes
Partial replication
• Partial replication means only some fragments are replicated from
the database.
Advantages of partial replication
• The number of replicas created for fragments depend upon
the importance of data in that fragment.
Disadvantages of partial replication
• Identification of critical & non critical data

More Related Content

PDF
Az 104 session 3 azure compute
PPT
Storage Managment
PDF
Docker by Example - Basics
PPTX
Overview on Azure Machine Learning
PPTX
Introduction to the Microsoft Azure Cloud.pptx
PDF
Jfrog artifactory as private docker registry
PPTX
Ahmedabad- Global Azure bootcamp- Azure Storage Services- Global Azure Bootca...
Az 104 session 3 azure compute
Storage Managment
Docker by Example - Basics
Overview on Azure Machine Learning
Introduction to the Microsoft Azure Cloud.pptx
Jfrog artifactory as private docker registry
Ahmedabad- Global Azure bootcamp- Azure Storage Services- Global Azure Bootca...

What's hot (20)

PPTX
Intro to Helm for Kubernetes
PPTX
Container Orchestration with Docker Swarm
PDF
Hpe Data Protector Disaster Recovery Guide
PPTX
Cloud security
PPTX
Top 10 cloud service providers
PPTX
Understanding das-nas-san
PDF
Microsoft cloud migration and modernization playbook 031819 (1) (2)
PPT
DBMS an Example
PPTX
Cloud Access Security Brokers - CASB
PDF
Kubernetes Networking | Kubernetes Services, Pods & Ingress Networks | Kubern...
PDF
Introduction to Cloud Computing
PDF
Azure Arc Overview from Microsoft
PPTX
Database security
PPTX
AAA Implementation
PPTX
NIST Cloud Computing Reference Architecture
PDF
NIST Cloud Computing Standards
PPT
Cloud Computing Security Challenges
PDF
What is Docker Architecture | Edureka
PPTX
Database replication
PPTX
Oracle Database 23c Security New Features.pptx
Intro to Helm for Kubernetes
Container Orchestration with Docker Swarm
Hpe Data Protector Disaster Recovery Guide
Cloud security
Top 10 cloud service providers
Understanding das-nas-san
Microsoft cloud migration and modernization playbook 031819 (1) (2)
DBMS an Example
Cloud Access Security Brokers - CASB
Kubernetes Networking | Kubernetes Services, Pods & Ingress Networks | Kubern...
Introduction to Cloud Computing
Azure Arc Overview from Microsoft
Database security
AAA Implementation
NIST Cloud Computing Reference Architecture
NIST Cloud Computing Standards
Cloud Computing Security Challenges
What is Docker Architecture | Edureka
Database replication
Oracle Database 23c Security New Features.pptx
Ad

Similar to Replication.ppt (20)

PPTX
Replication in Distributed Systems
PDF
11 Distributrd Systems and parallel systems_Chapter 18
PPTX
Replication Techniques for Distributed Database Design
PDF
Thoughts on Transaction and Consistency Models
PPT
18 philbe replication stanford99
PDF
Scale from zero to millions of users.pdf
PDF
System Design Basics by Pratyush Majumdar
PPTX
Fault tolerant presentation
PPTX
Sql server 2012 ha and dr sql saturday dc
PPTX
Replication in Distributed Database
PPTX
Sql server 2012 ha and dr sql saturday tampa
PPTX
Megastore by Google
PPTX
Sql Server 2012 HA and DR -- SQL Saturday Richmond
PDF
Consistency Models in New Generation Databases
PDF
Consistency-New-Generation-Databases
PPT
Chapter 14 replication
KEY
Replication, Durability, and Disaster Recovery
PDF
10 replication
PDF
Patterns for large scale search
PPTX
Storing the real world data
Replication in Distributed Systems
11 Distributrd Systems and parallel systems_Chapter 18
Replication Techniques for Distributed Database Design
Thoughts on Transaction and Consistency Models
18 philbe replication stanford99
Scale from zero to millions of users.pdf
System Design Basics by Pratyush Majumdar
Fault tolerant presentation
Sql server 2012 ha and dr sql saturday dc
Replication in Distributed Database
Sql server 2012 ha and dr sql saturday tampa
Megastore by Google
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Consistency Models in New Generation Databases
Consistency-New-Generation-Databases
Chapter 14 replication
Replication, Durability, and Disaster Recovery
10 replication
Patterns for large scale search
Storing the real world data
Ad

Recently uploaded (20)

PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPT
Mechanical Engineering MATERIALS Selection
PPTX
UNIT 4 Total Quality Management .pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Sustainable Sites - Green Building Construction
R24 SURVEYING LAB MANUAL for civil enggi
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Model Code of Practice - Construction Work - 21102022 .pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
additive manufacturing of ss316l using mig welding
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CYBER-CRIMES AND SECURITY A guide to understanding
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
bas. eng. economics group 4 presentation 1.pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Mechanical Engineering MATERIALS Selection
UNIT 4 Total Quality Management .pptx

Replication.ppt

  • 2. What is replication? ?& why replication? • Replication is having multiple copies of data and services in a distributed system • Reasons: – Reliability of the system – Better protection against corrupted data – Improved Performance and faster response time – Facilitates scaling in numbers and geographical area.
  • 3. Key Issues: • Where, when and by whom replicas should be placed. • Mechanisms to keep them consistent. • Two main sub-problems: – Replica-server Placement » Finding best location or placed where a server can be placed. – Content Placement » Finding out which server is best for storing a particular content.
  • 4. Content Replication and Placement • Permanent Replicas – Geographically distributed - Mirroring – Same location – Round Robin • Server Initiated Replicas • Client Initiated Replicas
  • 5. Server Initiated Replicas • Initiative of owner of data store • Enhance performance P C1 C2 Server without copy of F Server with copy of F Q
  • 6. Client Initiated Replicas • Client caches • Managing is entirely by client • Improve access time • Placement – Same machine – LAN – WAN
  • 7. Content Distribution • Propagation of Updated content – Propagate only notification of an update » Invalidation Protocols – Transfer data from one copy to another – Propagate the update operation to other copies
  • 8. Push Vs Pull Protocols • Push – Server based – Read to update ratio is high – High degree of consistency – Multicasting • Pull – Client based – Read to update ratio is low – Unicasting • Lease
  • 9. Why Use Replication  Enhances a service (object/data/service)  Increased Availability  Of service. When servers fail or when the network is partitioned, service still available at at least once server. Fault Tolerance  Under the fail-stop model, if up to f of f+1 servers crash, at least one is alive. Load Balancing  One approach: Multiple server IPs can be assigned to the same name in DNS, which returns answers/IPs round-robin. P: probability that one server fails= 1 – P= availability of service. e.g. P = 5% => service is available 95% of the time. Pn: probability that n servers fail= 1 – Pn= availability of replicated service. e.g. P = 5%, n = 3 => service available 99.875% of the time
  • 10. Goals of Replication  Replication Transparency User/client need not know that multiple physical copies of data exist.  Replication Consistency Data is consistent on all of the replicas of an object (or is converging towards becoming consistent). Client Front End (FE) RM RM RM Client Front End (FE) Client Front End (FE) Service server server server Replica Manager
  • 11. Types of data replication • 1. Synchronous Replication: In synchronous replication, the replica will be modified immediately after some changes are made in the relation table. So there is no difference between original data and replica. 2. Asynchronous replication: In asynchronous replication, the replica will be modified after commit is fired on to the database.
  • 12. Replication Schemes Full Replication • In full replication scheme, the database is available to almost every location or user in communication network. Advantages of full replication • High availability of data, as database is available to almost every location. • Faster execution of queries. Disadvantages of full replication • Concurrency control is difficult to achieve in full replication. • Update operation is slower.
  • 13. Replication Schemes No Replication • No replication means, each fragment is stored exactly at one location. Advantages of no replication • Concurrency can be minimized. • Easy recovery of data. Disadvantages of no replication • Poor availability of data. • Slows down the query execution process, as multiple clients are accessing the same server .
  • 14. Replication Schemes Partial replication • Partial replication means only some fragments are replicated from the database. Advantages of partial replication • The number of replicas created for fragments depend upon the importance of data in that fragment. Disadvantages of partial replication • Identification of critical & non critical data