SlideShare una empresa de Scribd logo
1 de 34
Achieving Fault
tolerance in
databases by
replication
What is replication
 We all must be thinking how we can achieve fault
tolerance by the help of the replication
 Replication in databases is nothing but storing the
same information in synchronization at multiple
location so that in cases of the primary databases
failure a replicated can takeover.
Availability and reliability
• A system goes down 1ms/hr has an availability of more
than 99.99%, but is unreliable.
• A system that never crashes but is shut down for a week
once every year is 100% reliable but only 98% available
Replication strategies
There are two basic parameters to select when designing a
replication strategy: where and when.
Depending on when the updates are propagated:
• Synchronous (eager)
• Asynchronous (lazy)
Depending on Where the updates can take place:
• Primary Copy (master)
• Update Everywhere (group)
Trade –off’s
Why replication??
PERFORMANCE
Location transparency is difficult to achieve in a distributed
environment. Local accesses are fast, remote accesses are slow. If
everything is local, then all accesses should be fast.
FAULT TOLERANCE
Failure resilience is also difficult to achieve. If a site fails, the data
it contains becomes unavailable. By keeping several copies of the
data at different sites, single site failures should not affect the
overall availability.
When replication is
implemented in industry
When evaluating a commercial replication strategy, keep in
mind:
• The customer base (who is going to use it?).
• The underlying database (what can the system do?).
• What competitors are doing (market pressure).
• There is no such thing as a “better approach”.
• The complexity of the problem
Sybase architecture
sybase
• Loose consistency (= asynchronous).
• Primary copy.
• PUSH model: replication takes place by “subscription”.
A site subscribes to copies of data. Changes are
propagated from the primary as soon as they occur.
When the changes are made they are pushed to the
replicated sites.
• The goal is to minimize the time the copies are not
consistent but still within an asynchronous environment
there is some delay .
Sybase
• Persistent queues are used to store changes in case of
disconnection.
• The Log Transfer Manager monitors the log of Sybase
SQL Server and notifies any changes to the replication
server. It acts as a light weight process that examines the
log to detect committed transactions (a wrapper).
Usually runs in the same system as the source database.
• When a transaction is detected, its log records are sent to
the:
Syabse
• The Replication Server usually runs on a different
system than the database to minimize the load.
• It takes updates, looks who is subscribed to them and
send them to the corresponding replication servers at the
remote site.
ClustRa
• It was designed with a focus of scalability, high
performance and fault tolerance.
• The replicated databases is in hot standby mode.
• It makes use of the 2 phase commit Protocol as well.
• It can tolerate both types of fault -media failures as
well as disk failures.
• It makes use of heartbeat messages being sent by
each node in order to detect faults and a missing
hear beat signifies that there is a fault.
Evaluation of ClustRa
• Clustra has an availability of 99.999% and lies in the
class 5 and a downtime of no more than 5 minutes
in a year.
• When evaluating the effectiveness of ClustRa
against failures it was done in the experiment by
injecting faults in the data buffers which is the
primary component of the database.
Architecture of ClustRa
Strategies used in
ClustRA
• Makes use of mirror nodes
• Node recovery
• Node failure
• Take back stage
• Mirror node take over stage
ORACLE
Oracle
• Goals: Flexibility. It tries to provide a platform that
can be tailored to as many applications as possible.
It provides several approaches to replication and
the user must select the most appropriate to the
Application.
• There is no such thing as a “bad approach”, so all
of them must be supported (or as many as possible)
Design of oracle
• One of the earliest implementations: Snapshot. This was
a copy of the database. Refreshing was done by getting a
new copy.
• Symmetric replication: changes are forwarded at time
intervals (push) or on demand (pull).
• Asynchronous replication is the default but synchronous
is also possible.
Replication strategies
• Implements fast recovery strategy
• Makes use of the incremental check pointing
• Lazy roll back
• Makes use of the multi master replication.
In Microsoft SQL servers
• Transactional replication: Only the committed changes
made at the primary database are sent to the subscribing
replica’s
• Snapshot replication :Entire state of the primary
database is captured and applied to the replica. Can be
scheduled periodically or manually.
• Merge replication: Different sites can modify the
databases replica’s.
2 phase commit protocol
2 PHC PROBLEMS
• The most common problem is of blocking
• The second is that it is a costly one.
• Decreases the availability of the involved database
• Imposes high performance overhead
• Most commercials systems make use of this protocol in
order to support synchronization and consistency.
Proposed architecture for
military database systems
Working
• Each node in the cluster is assigned numbers.
• In case of any node failure node with the higher value
becomes the coordinator in the group.
• We implement fault injection in the design phase itself
and also apply it to different areas of the databases.
• Data is replicated among each node and therefore in case
of any node failure or particular unit others cluster node
can be used to recover from the failure.
Proposed design
• No Central point of failure
• No Blocking state because making use 1 phase commit
protocol
• We make use of the pull/push both approaches.
• Making use of merge replication
What we have used in the
model
• Checkpoints
• To make a choice between 2 phase protocol and 1
phase protocol
• To evaluate against failures we are going to inject faults
in the system at various points.
• To choose between synchronous and asynchronous
model.
• To choose between centralization and decentralization
References
• http://ieeexplore.ieee.org.ezproxy.library.uvic.ca/stamp/stamp.jsp?tp=&arnumb
er=781065
• http://users.encs.concordia.ca/~bcdesai/grads/steluta/references/Clustra_Conc
epts.pdf
• R.J. Ramsden, "Database synchronisation in military command and control
systems," IEEE International Conference Information-Decision-Action Systems in
Complex Organisations, pp. 115 - 117, 6-8 Apr 1992.
• D. Harel , H. Lachover , A. Naamad , A. Pnueli , M. Politi , R. Sherman and A. Shtul-
Trauring "STATEMENT: A working environment for the development of complex
reactive systems", IEEE Transactions on Software Engineering, vol. 16, no.
4, pp.403 -414 1990
• R. Chillarege and N. Bowen "Understanding Large System Failures - A Fault
Injection Experiment", Proc. 19th. Ann. Int†™l Symp. Fault Tolerant
Computing, pp.356 -363 1989 P. Bohannon , J. Parker , R. Rastogi , S. Seshadri , A.
Silberschatz and S. Sudarshan "Distributed Multi-Level Recovery in Main-Memory
Databases", Distributed and Parallel Database Systems Journal, vol. 6, no.
1, 1998
Fault tolerant presentation
Fault tolerant presentation
Fault tolerant presentation
Fault tolerant presentation
Fault tolerant presentation
Fault tolerant presentation
Fault tolerant presentation

Más contenido relacionado

La actualidad más candente

program flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architectureprogram flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architecturePankaj Kumar Jain
 
Foult Tolerence In Distributed System
Foult Tolerence In Distributed SystemFoult Tolerence In Distributed System
Foult Tolerence In Distributed SystemRajan Kumar
 
Database, 3 Distribution Design
Database, 3 Distribution DesignDatabase, 3 Distribution Design
Database, 3 Distribution DesignAli Usman
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)Dinesh Modak
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure callSunita Sahu
 
Distributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationDistributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationMNM Jain Engineering College
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactionsNilu Desai
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communicationAbDul ThaYyal
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Gyanmanjari Institute Of Technology
 
Distributed Query Processing
Distributed Query ProcessingDistributed Query Processing
Distributed Query ProcessingMythili Kannan
 
Distributed computing
Distributed computingDistributed computing
Distributed computingshivli0769
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systemsAbDul ThaYyal
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memoryAshish Kumar
 

La actualidad más candente (20)

Domain Modeling
Domain ModelingDomain Modeling
Domain Modeling
 
program flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architectureprogram flow mechanisms, advanced computer architecture
program flow mechanisms, advanced computer architecture
 
Foult Tolerence In Distributed System
Foult Tolerence In Distributed SystemFoult Tolerence In Distributed System
Foult Tolerence In Distributed System
 
HPC in the Cloud
HPC in the CloudHPC in the Cloud
HPC in the Cloud
 
Database, 3 Distribution Design
Database, 3 Distribution DesignDatabase, 3 Distribution Design
Database, 3 Distribution Design
 
Distributed operating system(os)
Distributed operating system(os)Distributed operating system(os)
Distributed operating system(os)
 
Cs6703 grid and cloud computing unit 3
Cs6703 grid and cloud computing unit 3Cs6703 grid and cloud computing unit 3
Cs6703 grid and cloud computing unit 3
 
RPC: Remote procedure call
RPC: Remote procedure callRPC: Remote procedure call
RPC: Remote procedure call
 
Distributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communicationDistributed System-Multicast & Indirect communication
Distributed System-Multicast & Indirect communication
 
Cluster Computing
Cluster ComputingCluster Computing
Cluster Computing
 
management of distributed transactions
management of distributed transactionsmanagement of distributed transactions
management of distributed transactions
 
Chapter 4 a interprocess communication
Chapter 4 a interprocess communicationChapter 4 a interprocess communication
Chapter 4 a interprocess communication
 
Pram model
Pram modelPram model
Pram model
 
Component level design
Component   level designComponent   level design
Component level design
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
 
Distributed Query Processing
Distributed Query ProcessingDistributed Query Processing
Distributed Query Processing
 
Replication in Distributed Systems
Replication in Distributed SystemsReplication in Distributed Systems
Replication in Distributed Systems
 
Distributed computing
Distributed computingDistributed computing
Distributed computing
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
 
distributed shared memory
 distributed shared memory distributed shared memory
distributed shared memory
 

Destacado

Fault Tolerance System
Fault Tolerance SystemFault Tolerance System
Fault Tolerance Systemprakashjjaya
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systemssumitjain2013
 
Fault Tolerance (Distributed computing)
Fault Tolerance (Distributed computing)Fault Tolerance (Distributed computing)
Fault Tolerance (Distributed computing)Sri Prasanna
 
Fault tolearant system
Fault tolearant systemFault tolearant system
Fault tolearant systemarvinthsaran
 
Fault tolerance techniques for real time operating system
Fault tolerance techniques for real time operating systemFault tolerance techniques for real time operating system
Fault tolerance techniques for real time operating systemanujos25
 
Fault Tolerant and Distributed System
Fault Tolerant and Distributed SystemFault Tolerant and Distributed System
Fault Tolerant and Distributed Systemsreenivas1591
 
N-version programming
N-version programmingN-version programming
N-version programmingshabnam0102
 
VMworld 2013: VMware vSphere Fault Tolerance for Multiprocessor Virtual Machi...
VMworld 2013: VMware vSphere Fault Tolerance for Multiprocessor Virtual Machi...VMworld 2013: VMware vSphere Fault Tolerance for Multiprocessor Virtual Machi...
VMworld 2013: VMware vSphere Fault Tolerance for Multiprocessor Virtual Machi...VMworld
 
Political Tolerance
Political TolerancePolitical Tolerance
Political ToleranceKacee Garner
 
Main MeMory Data Base
Main MeMory Data BaseMain MeMory Data Base
Main MeMory Data BaseSiva Rushi
 
Fault tolerance and computing
Fault tolerance  and computingFault tolerance  and computing
Fault tolerance and computingPalani murugan
 
Tolerance presentation22
Tolerance presentation22Tolerance presentation22
Tolerance presentation22kjarvies
 
Real time database (MDARTS)
Real time database (MDARTS)Real time database (MDARTS)
Real time database (MDARTS)Pradeep Kumar TS
 

Destacado (20)

Fault Tolerance System
Fault Tolerance SystemFault Tolerance System
Fault Tolerance System
 
Fault tolerance
Fault toleranceFault tolerance
Fault tolerance
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
Fault tolerance
Fault toleranceFault tolerance
Fault tolerance
 
Fault Tolerance (Distributed computing)
Fault Tolerance (Distributed computing)Fault Tolerance (Distributed computing)
Fault Tolerance (Distributed computing)
 
Fault tolearant system
Fault tolearant systemFault tolearant system
Fault tolearant system
 
Fault tolerance
Fault toleranceFault tolerance
Fault tolerance
 
Fault tolerance techniques for real time operating system
Fault tolerance techniques for real time operating systemFault tolerance techniques for real time operating system
Fault tolerance techniques for real time operating system
 
Fault Tolerant and Distributed System
Fault Tolerant and Distributed SystemFault Tolerant and Distributed System
Fault Tolerant and Distributed System
 
N-version programming
N-version programmingN-version programming
N-version programming
 
VMworld 2013: VMware vSphere Fault Tolerance for Multiprocessor Virtual Machi...
VMworld 2013: VMware vSphere Fault Tolerance for Multiprocessor Virtual Machi...VMworld 2013: VMware vSphere Fault Tolerance for Multiprocessor Virtual Machi...
VMworld 2013: VMware vSphere Fault Tolerance for Multiprocessor Virtual Machi...
 
Political Tolerance
Political TolerancePolitical Tolerance
Political Tolerance
 
Tolerance
ToleranceTolerance
Tolerance
 
Main MeMory Data Base
Main MeMory Data BaseMain MeMory Data Base
Main MeMory Data Base
 
Fault tolerance and computing
Fault tolerance  and computingFault tolerance  and computing
Fault tolerance and computing
 
Tolerance
Tolerance Tolerance
Tolerance
 
Tolerance presentation22
Tolerance presentation22Tolerance presentation22
Tolerance presentation22
 
Tolerance
ToleranceTolerance
Tolerance
 
Vxworks
VxworksVxworks
Vxworks
 
Real time database (MDARTS)
Real time database (MDARTS)Real time database (MDARTS)
Real time database (MDARTS)
 

Similar a Fault tolerant presentation

Best Practice for Achieving High Availability in MariaDB
Best Practice for Achieving High Availability in MariaDBBest Practice for Achieving High Availability in MariaDB
Best Practice for Achieving High Availability in MariaDBMariaDB plc
 
02 2017 emea_roadshow_milan_ha
02 2017 emea_roadshow_milan_ha02 2017 emea_roadshow_milan_ha
02 2017 emea_roadshow_milan_hamlraviol
 
MariaDB High Availability Webinar
MariaDB High Availability WebinarMariaDB High Availability Webinar
MariaDB High Availability WebinarMariaDB plc
 
Database replication
Database replicationDatabase replication
Database replicationArslan111
 
Tiger oracle
Tiger oracleTiger oracle
Tiger oracled0nn9n
 
Failover-Apachecon-Asia-2022.pptx
Failover-Apachecon-Asia-2022.pptxFailover-Apachecon-Asia-2022.pptx
Failover-Apachecon-Asia-2022.pptxDavidKjerrumgaard1
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recoverySqlperfomance
 
High availability and disaster recovery in IBM PureApplication System
High availability and disaster recovery in IBM PureApplication SystemHigh availability and disaster recovery in IBM PureApplication System
High availability and disaster recovery in IBM PureApplication SystemScott Moonen
 
Insider operating system
Insider   operating systemInsider   operating system
Insider operating systemAditi Saxena
 
Replication and replica sets
Replication and replica setsReplication and replica sets
Replication and replica setsChris Westin
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.pptshreesha16
 
Distributed systems and scalability rules
Distributed systems and scalability rulesDistributed systems and scalability rules
Distributed systems and scalability rulesOleg Tsal-Tsalko
 
Memory Management Strategies - II.pdf
Memory Management Strategies - II.pdfMemory Management Strategies - II.pdf
Memory Management Strategies - II.pdfHarika Pudugosula
 
Choosing the right high availability strategy
Choosing the right high availability strategyChoosing the right high availability strategy
Choosing the right high availability strategyMariaDB plc
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works. Fahad Farooq
 
Cloud computing Module 2 First Part
Cloud computing Module 2 First PartCloud computing Module 2 First Part
Cloud computing Module 2 First PartSoumee Maschatak
 
A Journey to Reactive Function Programming
A Journey to Reactive Function ProgrammingA Journey to Reactive Function Programming
A Journey to Reactive Function ProgrammingAhmed Soliman
 

Similar a Fault tolerant presentation (20)

Best Practice for Achieving High Availability in MariaDB
Best Practice for Achieving High Availability in MariaDBBest Practice for Achieving High Availability in MariaDB
Best Practice for Achieving High Availability in MariaDB
 
02 2017 emea_roadshow_milan_ha
02 2017 emea_roadshow_milan_ha02 2017 emea_roadshow_milan_ha
02 2017 emea_roadshow_milan_ha
 
MariaDB High Availability Webinar
MariaDB High Availability WebinarMariaDB High Availability Webinar
MariaDB High Availability Webinar
 
Database replication
Database replicationDatabase replication
Database replication
 
Tiger oracle
Tiger oracleTiger oracle
Tiger oracle
 
Failover-Apachecon-Asia-2022.pptx
Failover-Apachecon-Asia-2022.pptxFailover-Apachecon-Asia-2022.pptx
Failover-Apachecon-Asia-2022.pptx
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recovery
 
High availability and disaster recovery in IBM PureApplication System
High availability and disaster recovery in IBM PureApplication SystemHigh availability and disaster recovery in IBM PureApplication System
High availability and disaster recovery in IBM PureApplication System
 
Insider operating system
Insider   operating systemInsider   operating system
Insider operating system
 
Lecture 5 inter process communication
Lecture 5 inter process communicationLecture 5 inter process communication
Lecture 5 inter process communication
 
Replication.ppt
Replication.pptReplication.ppt
Replication.ppt
 
Replication and replica sets
Replication and replica setsReplication and replica sets
Replication and replica sets
 
Module2 MultiThreads.ppt
Module2 MultiThreads.pptModule2 MultiThreads.ppt
Module2 MultiThreads.ppt
 
Distributed systems and scalability rules
Distributed systems and scalability rulesDistributed systems and scalability rules
Distributed systems and scalability rules
 
Memory Management Strategies - II.pdf
Memory Management Strategies - II.pdfMemory Management Strategies - II.pdf
Memory Management Strategies - II.pdf
 
Choosing the right high availability strategy
Choosing the right high availability strategyChoosing the right high availability strategy
Choosing the right high availability strategy
 
How Operating system works.
How Operating system works. How Operating system works.
How Operating system works.
 
01 oracle architecture
01 oracle architecture01 oracle architecture
01 oracle architecture
 
Cloud computing Module 2 First Part
Cloud computing Module 2 First PartCloud computing Module 2 First Part
Cloud computing Module 2 First Part
 
A Journey to Reactive Function Programming
A Journey to Reactive Function ProgrammingA Journey to Reactive Function Programming
A Journey to Reactive Function Programming
 

Último

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Último (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Fault tolerant presentation

  • 2. What is replication  We all must be thinking how we can achieve fault tolerance by the help of the replication  Replication in databases is nothing but storing the same information in synchronization at multiple location so that in cases of the primary databases failure a replicated can takeover.
  • 3. Availability and reliability • A system goes down 1ms/hr has an availability of more than 99.99%, but is unreliable. • A system that never crashes but is shut down for a week once every year is 100% reliable but only 98% available
  • 4. Replication strategies There are two basic parameters to select when designing a replication strategy: where and when. Depending on when the updates are propagated: • Synchronous (eager) • Asynchronous (lazy) Depending on Where the updates can take place: • Primary Copy (master) • Update Everywhere (group)
  • 6. Why replication?? PERFORMANCE Location transparency is difficult to achieve in a distributed environment. Local accesses are fast, remote accesses are slow. If everything is local, then all accesses should be fast. FAULT TOLERANCE Failure resilience is also difficult to achieve. If a site fails, the data it contains becomes unavailable. By keeping several copies of the data at different sites, single site failures should not affect the overall availability.
  • 7. When replication is implemented in industry When evaluating a commercial replication strategy, keep in mind: • The customer base (who is going to use it?). • The underlying database (what can the system do?). • What competitors are doing (market pressure). • There is no such thing as a “better approach”. • The complexity of the problem
  • 9. sybase • Loose consistency (= asynchronous). • Primary copy. • PUSH model: replication takes place by “subscription”. A site subscribes to copies of data. Changes are propagated from the primary as soon as they occur. When the changes are made they are pushed to the replicated sites. • The goal is to minimize the time the copies are not consistent but still within an asynchronous environment there is some delay .
  • 10. Sybase • Persistent queues are used to store changes in case of disconnection. • The Log Transfer Manager monitors the log of Sybase SQL Server and notifies any changes to the replication server. It acts as a light weight process that examines the log to detect committed transactions (a wrapper). Usually runs in the same system as the source database. • When a transaction is detected, its log records are sent to the:
  • 11. Syabse • The Replication Server usually runs on a different system than the database to minimize the load. • It takes updates, looks who is subscribed to them and send them to the corresponding replication servers at the remote site.
  • 12. ClustRa • It was designed with a focus of scalability, high performance and fault tolerance. • The replicated databases is in hot standby mode. • It makes use of the 2 phase commit Protocol as well. • It can tolerate both types of fault -media failures as well as disk failures. • It makes use of heartbeat messages being sent by each node in order to detect faults and a missing hear beat signifies that there is a fault.
  • 13. Evaluation of ClustRa • Clustra has an availability of 99.999% and lies in the class 5 and a downtime of no more than 5 minutes in a year. • When evaluating the effectiveness of ClustRa against failures it was done in the experiment by injecting faults in the data buffers which is the primary component of the database.
  • 15. Strategies used in ClustRA • Makes use of mirror nodes • Node recovery • Node failure • Take back stage • Mirror node take over stage
  • 17. Oracle • Goals: Flexibility. It tries to provide a platform that can be tailored to as many applications as possible. It provides several approaches to replication and the user must select the most appropriate to the Application. • There is no such thing as a “bad approach”, so all of them must be supported (or as many as possible)
  • 18. Design of oracle • One of the earliest implementations: Snapshot. This was a copy of the database. Refreshing was done by getting a new copy. • Symmetric replication: changes are forwarded at time intervals (push) or on demand (pull). • Asynchronous replication is the default but synchronous is also possible.
  • 19. Replication strategies • Implements fast recovery strategy • Makes use of the incremental check pointing • Lazy roll back • Makes use of the multi master replication.
  • 20. In Microsoft SQL servers • Transactional replication: Only the committed changes made at the primary database are sent to the subscribing replica’s • Snapshot replication :Entire state of the primary database is captured and applied to the replica. Can be scheduled periodically or manually. • Merge replication: Different sites can modify the databases replica’s.
  • 21. 2 phase commit protocol
  • 22. 2 PHC PROBLEMS • The most common problem is of blocking • The second is that it is a costly one. • Decreases the availability of the involved database • Imposes high performance overhead • Most commercials systems make use of this protocol in order to support synchronization and consistency.
  • 24. Working • Each node in the cluster is assigned numbers. • In case of any node failure node with the higher value becomes the coordinator in the group. • We implement fault injection in the design phase itself and also apply it to different areas of the databases. • Data is replicated among each node and therefore in case of any node failure or particular unit others cluster node can be used to recover from the failure.
  • 25. Proposed design • No Central point of failure • No Blocking state because making use 1 phase commit protocol • We make use of the pull/push both approaches. • Making use of merge replication
  • 26. What we have used in the model • Checkpoints • To make a choice between 2 phase protocol and 1 phase protocol • To evaluate against failures we are going to inject faults in the system at various points. • To choose between synchronous and asynchronous model. • To choose between centralization and decentralization
  • 27. References • http://ieeexplore.ieee.org.ezproxy.library.uvic.ca/stamp/stamp.jsp?tp=&arnumb er=781065 • http://users.encs.concordia.ca/~bcdesai/grads/steluta/references/Clustra_Conc epts.pdf • R.J. Ramsden, "Database synchronisation in military command and control systems," IEEE International Conference Information-Decision-Action Systems in Complex Organisations, pp. 115 - 117, 6-8 Apr 1992. • D. Harel , H. Lachover , A. Naamad , A. Pnueli , M. Politi , R. Sherman and A. Shtul- Trauring "STATEMENT: A working environment for the development of complex reactive systems", IEEE Transactions on Software Engineering, vol. 16, no. 4, pp.403 -414 1990 • R. Chillarege and N. Bowen "Understanding Large System Failures - A Fault Injection Experiment", Proc. 19th. Ann. Int†™l Symp. Fault Tolerant Computing, pp.356 -363 1989 P. Bohannon , J. Parker , R. Rastogi , S. Seshadri , A. Silberschatz and S. Sudarshan "Distributed Multi-Level Recovery in Main-Memory Databases", Distributed and Parallel Database Systems Journal, vol. 6, no. 1, 1998