SlideShare una empresa de Scribd logo
1 de 11
Descargar para leer sin conexión
Replication types
♦ Lazy – Fast replication that does not affect the master transaction
♦ Eager – Similar to 2PC(2 Phase commit)
Formation types
♦ Active-Active
• Activates ‘Sender’ from every nodes
♦ Active-Standby
• System that uses fail-over: Activates all the ‘Senders’ such as Active-Active
• System for backup only: Sender is activated only from Active server
Two different methods depending on the synchronization point
♦ Lazy(Asynchronous) – The Master transaction and the replication
transaction operates separately. The replication is delayed but
performance of processing transaction is fast
♦ Eager(Synchronous) – The Master transaction and the Replication
transaction operates as one. The performance is slow but there is no
replication delay
Main Feature
♦ There is a trade-off between replication delay or gap and performance
Active
Standby
time
Active
Standby
time
tt' t
delay(Gap)
[Fig1. lazy ] [ Fig2. eager ]
Storage Manager
Query Processor
Remote ServerLocal Server
Lazy
Eager
redo
logfile #n
receiver
INSERT UPDATE DELETE
1
5
sender
4 6
meta data
redo
logfile #1
redo
logfile #n
2
redo
logfile #1
3
Xlog
redo log
XSN
redo log
thread
file
Network
page
process
Storage Manager
Query Processor
meta data
XSN
7
module
MOVE
 Master Transaction= 1 + 2
 Replication Transaction= 3 + 4 + 5 + 6 + 7
 Transaction = 1 + 2 + 3 + 4 + 5 + 6 + 7
 The Master Transaction(2) is confirmed when it’s fully applied to Replication
transaction(7)
Replication Gap
♦ The replication gap can be checked at a performance view table called
v$repgap shown by number
• Calculated with SN(Sequence Number) the redo log number and Restart SN
• Replication Gap = [Recent Local Server SN] - [Recent Local Server Restart SN]
Unsent redo-logSent redo log
Replication Gap
Restart SN
Time
SN
Replication Gap
♦ Different formation depending on the number of DML nodes
• Active-Active Modification is available from every nodes but there is a
possibility of conflicts
• Active-Standby Modification is available from a particular node but there are no
conflicts
Main Features
♦ Trade-off between modification conflicts and Load-Balancing
♦ Consideration for application depending on the formation
• Active-Active : Lock might be occurred
• Active-Standby : Maintaining application depending on the nodes role
Active Active Active Standby
Active Active StandbyStandby
[Fig 1. Active-Active] [ Fig 2. Active-Standby ]
How to configure replication system
♦ Active-Active, Active-Standby(fail-over)
• Create [Number of entire servers - 1] number of replication objects for each server
• Sender is activated from all of servers
♦ Active-Standby(backup)
• In active server, create replication object as [Number of entire servers - 1]
• For standby server, create one replication object that corresponds to one active
server
• Sender is activated only from active server
Active Active
Active Active
Active Standby
StandbyStandby
[Fig 1. Active-Active, Active-Standby(fail-over) ] [Fig 2. Active-Standby(backup) ]
Consideration depends on the formation types and replication types
Procedure ofAdopting Replication
♦ Choosing formation types and Replication types that satisfies system
• Generally Lazy replication type is chosen for fast performance
• Most ideal architecture of system is a combination of Active-Active & Lazy with no
Replication conflicts
♦ Establishing plan for possible errors depending on the types of formation and
Replication
• When there is a Network problem*, the recovery plan has to be established
even though the replication type is eager
Categories
Active-Active Active-Standby
lazy eager lazy eager
Replication
Performance
Fast Slow Fast Slow
Replication Delay* Yes No Yes No
Load Balancing
Every DML is available
(INSERT,UPATE,DELETE)
Unavailable (Only SELECT)
Application Program Lock competes Lock do not competes
Replication Conflicts* Yes No
Data Inconsistency Possible Never Possible Never
 Assigning server that does DML only
♦ Design server1 for DML only and server2 for SELECT only
 Feature
♦ Load-balancing is only allowed in SELECT
INSERT
UPDATE
DELETE
Active 1 SELECTActive 2replication
 Divide a number of PKs same as number of nodes
♦ Design server1 for odd number only and server2 for even number only
 Main feature
♦ Load-balancing of all the DML operations is possible but caution is advised
when setting up the application program
INSERT
UPDATE
DELETE
SELECT
Active 1
INSERT
UPDATE
DELETE
SELECT
replication
P
K
TABLE
ODD
EVEN
Active 2
P
K
TABLE
ODD
EVEN
 Dividing table according to its tasks
♦ Server 1 is responsible for table A’s DML only and server 2 is responsible
for table B’s DML only
 Main feature
♦ There may be a processing of complex tasks even though the load-
balancing of DML operation is possible
INSERT
UPDATE
DELETE
SELECT
INSERT
UPDATE
DELETE
SELECT
replication
Active 2
P
K
TABLE B
P
K
TABLEA
Active 1
P
K
TABLE B
P
K
TABLEA
 Example of system design that assigns the server for DML only
using L4
♦ Connecting to server by identifying application program with IP from L4
APP
APP
APP
APP
APP
APP
APP
APP
APP
APP
Active Standby
Business A
Active Standby
Business B
Active Standby
Business C
Active Standby
Business D
Active Standby
Business F
Active Standby
Business E
L4

Más contenido relacionado

La actualidad más candente

Galvin-operating System(Ch9)
Galvin-operating System(Ch9)Galvin-operating System(Ch9)
Galvin-operating System(Ch9)
dsuyal1
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4
Pranav Prakash
 

La actualidad más candente (20)

Tuning Slow Running SQLs in PostgreSQL
Tuning Slow Running SQLs in PostgreSQLTuning Slow Running SQLs in PostgreSQL
Tuning Slow Running SQLs in PostgreSQL
 
Database recovery techniques
Database recovery techniquesDatabase recovery techniques
Database recovery techniques
 
Stored procedures in Firebird
Stored procedures in FirebirdStored procedures in Firebird
Stored procedures in Firebird
 
Galvin-operating System(Ch9)
Galvin-operating System(Ch9)Galvin-operating System(Ch9)
Galvin-operating System(Ch9)
 
Extracting twitter data using apache flume
Extracting twitter data using apache flumeExtracting twitter data using apache flume
Extracting twitter data using apache flume
 
Cl210
Cl210Cl210
Cl210
 
Reliable Message Delivery with Apache Kafka
Reliable Message Delivery with Apache Kafka Reliable Message Delivery with Apache Kafka
Reliable Message Delivery with Apache Kafka
 
ALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARMALL ABOUT DB2 DSNZPARM
ALL ABOUT DB2 DSNZPARM
 
Collaborate 2012 - RMAN Eliminate the mystery
Collaborate 2012 - RMAN Eliminate the mysteryCollaborate 2012 - RMAN Eliminate the mystery
Collaborate 2012 - RMAN Eliminate the mystery
 
DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4DB2UDB_the_Basics Day 4
DB2UDB_the_Basics Day 4
 
Anatomy of classic map reduce in hadoop
Anatomy of classic map reduce in hadoop Anatomy of classic map reduce in hadoop
Anatomy of classic map reduce in hadoop
 
Collaborate2
Collaborate2Collaborate2
Collaborate2
 
DB2 utilities
DB2 utilitiesDB2 utilities
DB2 utilities
 
SAP LVM Custom Instances
SAP LVM Custom InstancesSAP LVM Custom Instances
SAP LVM Custom Instances
 
Pnuts yahoo!’s hosted data serving platform
Pnuts  yahoo!’s hosted data serving platformPnuts  yahoo!’s hosted data serving platform
Pnuts yahoo!’s hosted data serving platform
 
Major features postgres 11
Major features postgres 11Major features postgres 11
Major features postgres 11
 
Db2 V12 incompatibilities_&_improvements_over_V11
Db2 V12 incompatibilities_&_improvements_over_V11Db2 V12 incompatibilities_&_improvements_over_V11
Db2 V12 incompatibilities_&_improvements_over_V11
 
FlumeBase Study
FlumeBase StudyFlumeBase Study
FlumeBase Study
 
EDBT2015: Transactional Replication in Hybrid Data Store Architectures
EDBT2015: Transactional Replication in Hybrid Data Store ArchitecturesEDBT2015: Transactional Replication in Hybrid Data Store Architectures
EDBT2015: Transactional Replication in Hybrid Data Store Architectures
 
Training Slides: 104 - Basics - Working With Command Line Tools
Training Slides: 104 - Basics - Working With Command Line ToolsTraining Slides: 104 - Basics - Working With Command Line Tools
Training Slides: 104 - Basics - Working With Command Line Tools
 

Destacado

Chapter 14 replication
Chapter 14 replicationChapter 14 replication
Chapter 14 replication
AbDul ThaYyal
 
Replication in Distributed Real Time Database
Replication in Distributed Real Time DatabaseReplication in Distributed Real Time Database
Replication in Distributed Real Time Database
Ghanshyam Yadav
 
Database , 13 Replication
Database , 13 ReplicationDatabase , 13 Replication
Database , 13 Replication
Ali Usman
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
AbDul ThaYyal
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
Sulemang
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
sumitjain2013
 

Destacado (14)

SQL Server Replication Transactional Replication from MSSQL 200x to MYSQL 5.x
SQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.xSQL Server Replication Transactional Replication  from MSSQL 200x to MYSQL 5.x
SQL Server Replication Transactional Replication from MSSQL 200x to MYSQL 5.x
 
Chapter 14 replication
Chapter 14 replicationChapter 14 replication
Chapter 14 replication
 
Database Replication
Database ReplicationDatabase Replication
Database Replication
 
Replication in Distributed Real Time Database
Replication in Distributed Real Time DatabaseReplication in Distributed Real Time Database
Replication in Distributed Real Time Database
 
Database , 13 Replication
Database , 13 ReplicationDatabase , 13 Replication
Database , 13 Replication
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
 
Replication in Distributed Database
Replication in Distributed DatabaseReplication in Distributed Database
Replication in Distributed Database
 
message passing
 message passing message passing
message passing
 
Database fragmentation
Database fragmentationDatabase fragmentation
Database fragmentation
 
Distributed Database System
Distributed Database SystemDistributed Database System
Distributed Database System
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
Data Replication in Distributed System
Data Replication in  Distributed SystemData Replication in  Distributed System
Data Replication in Distributed System
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
Fragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed DatabaseFragmentation and types of fragmentation in Distributed Database
Fragmentation and types of fragmentation in Distributed Database
 

Similar a [Altibase] 10 replication part3 (system design)

Migrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Migrating from Oracle Enterprise Manager 10g to 12c Cloud ControlMigrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Migrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Leighton Nelson
 
Alibaba patches in MariaDB
Alibaba patches in MariaDBAlibaba patches in MariaDB
Alibaba patches in MariaDB
Lixun Peng
 
Synchronous Log Shipping Replication
Synchronous Log Shipping ReplicationSynchronous Log Shipping Replication
Synchronous Log Shipping Replication
elliando dias
 
Buytaert kris my_sql-pacemaker
Buytaert kris my_sql-pacemakerBuytaert kris my_sql-pacemaker
Buytaert kris my_sql-pacemaker
kuchinskaya
 
[Altibase] 9 replication part2 (methods and controls)
[Altibase] 9 replication part2 (methods and controls)[Altibase] 9 replication part2 (methods and controls)
[Altibase] 9 replication part2 (methods and controls)
altistory
 

Similar a [Altibase] 10 replication part3 (system design) (20)

Sql server logshipping
Sql server logshippingSql server logshipping
Sql server logshipping
 
Migrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Migrating from Oracle Enterprise Manager 10g to 12c Cloud ControlMigrating from Oracle Enterprise Manager 10g to 12c Cloud Control
Migrating from Oracle Enterprise Manager 10g to 12c Cloud Control
 
Alibaba patches in MariaDB
Alibaba patches in MariaDBAlibaba patches in MariaDB
Alibaba patches in MariaDB
 
6.3 Mload.pdf
6.3 Mload.pdf6.3 Mload.pdf
6.3 Mload.pdf
 
Synchronous Log Shipping Replication
Synchronous Log Shipping ReplicationSynchronous Log Shipping Replication
Synchronous Log Shipping Replication
 
z/OS Workload Management Update for z/OS V1.11 and V1.12
z/OS Workload Management Update for z/OS V1.11 and V1.12z/OS Workload Management Update for z/OS V1.11 and V1.12
z/OS Workload Management Update for z/OS V1.11 and V1.12
 
Weblogic 101 for dba
Weblogic  101 for dbaWeblogic  101 for dba
Weblogic 101 for dba
 
RubyKaigi 2014: ServerEngine
RubyKaigi 2014: ServerEngineRubyKaigi 2014: ServerEngine
RubyKaigi 2014: ServerEngine
 
Architecture for building scalable and highly available Postgres Cluster
Architecture for building scalable and highly available Postgres ClusterArchitecture for building scalable and highly available Postgres Cluster
Architecture for building scalable and highly available Postgres Cluster
 
Scaling and Distributing
Scaling and DistributingScaling and Distributing
Scaling and Distributing
 
Buytaert kris my_sql-pacemaker
Buytaert kris my_sql-pacemakerBuytaert kris my_sql-pacemaker
Buytaert kris my_sql-pacemaker
 
MongoDb scalability and high availability with Replica-Set
MongoDb scalability and high availability with Replica-SetMongoDb scalability and high availability with Replica-Set
MongoDb scalability and high availability with Replica-Set
 
[Altibase] 9 replication part2 (methods and controls)
[Altibase] 9 replication part2 (methods and controls)[Altibase] 9 replication part2 (methods and controls)
[Altibase] 9 replication part2 (methods and controls)
 
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
Training Slides: Advanced 304: Upgrading From Native MySQL Replication To Tun...
 
Time Machine
Time MachineTime Machine
Time Machine
 
Using The Right Tool For The Job
Using The Right Tool For The JobUsing The Right Tool For The Job
Using The Right Tool For The Job
 
Editioning use in ebs
Editioning use in  ebsEditioning use in  ebs
Editioning use in ebs
 
Editioning use in ebs
Editioning use in  ebsEditioning use in  ebs
Editioning use in ebs
 
Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?
 
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackAutomated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
 

Más de altistory

[Altibase] 11 replication part4 (conflict resolution)
[Altibase] 11 replication part4 (conflict resolution)[Altibase] 11 replication part4 (conflict resolution)
[Altibase] 11 replication part4 (conflict resolution)
altistory
 
[Altibase] 8 replication part1 (overview)
[Altibase] 8 replication part1 (overview)[Altibase] 8 replication part1 (overview)
[Altibase] 8 replication part1 (overview)
altistory
 

Más de altistory (20)

[Altibase] 4-5 summary of tablespace management
[Altibase] 4-5 summary of tablespace management[Altibase] 4-5 summary of tablespace management
[Altibase] 4-5 summary of tablespace management
 
[Altibase] 11 replication part4 (conflict resolution)
[Altibase] 11 replication part4 (conflict resolution)[Altibase] 11 replication part4 (conflict resolution)
[Altibase] 11 replication part4 (conflict resolution)
 
[Altibase] 8 replication part1 (overview)
[Altibase] 8 replication part1 (overview)[Altibase] 8 replication part1 (overview)
[Altibase] 8 replication part1 (overview)
 
[Altibase] 7 how the buffer is managed in altibase
[Altibase] 7 how the buffer is managed in altibase[Altibase] 7 how the buffer is managed in altibase
[Altibase] 7 how the buffer is managed in altibase
 
[Altibase] 6 what is the mvcc
[Altibase] 6 what is the mvcc[Altibase] 6 what is the mvcc
[Altibase] 6 what is the mvcc
 
[Altibase] 5 durability
[Altibase] 5 durability[Altibase] 5 durability
[Altibase] 5 durability
 
[Altibase] 4-4 disk tablespace
[Altibase] 4-4 disk tablespace[Altibase] 4-4 disk tablespace
[Altibase] 4-4 disk tablespace
 
[Altibase] 4-3 volatile tablespace
[Altibase] 4-3 volatile tablespace[Altibase] 4-3 volatile tablespace
[Altibase] 4-3 volatile tablespace
 
[Altibase] 4-2 memory tablespace
[Altibase] 4-2 memory tablespace[Altibase] 4-2 memory tablespace
[Altibase] 4-2 memory tablespace
 
[Altibase] 4-1 tablespace concept
[Altibase] 4-1 tablespace concept[Altibase] 4-1 tablespace concept
[Altibase] 4-1 tablespace concept
 
[Altibase] 3-3 directory contents
[Altibase] 3-3 directory contents[Altibase] 3-3 directory contents
[Altibase] 3-3 directory contents
 
[Altibase] 3-1 architecture
[Altibase] 3-1 architecture[Altibase] 3-1 architecture
[Altibase] 3-1 architecture
 
[Altibase] 2-4 sql functions
[Altibase] 2-4 sql functions[Altibase] 2-4 sql functions
[Altibase] 2-4 sql functions
 
[Altibase] 2-3 general functions
[Altibase] 2-3 general functions[Altibase] 2-3 general functions
[Altibase] 2-3 general functions
 
[Altibase] 2-2 Altibase storage
[Altibase] 2-2 Altibase storage[Altibase] 2-2 Altibase storage
[Altibase] 2-2 Altibase storage
 
[Altibase] 2-1 features
[Altibase] 2-1 features[Altibase] 2-1 features
[Altibase] 2-1 features
 
[Altibase] 1-5 hybrid dbms
[Altibase] 1-5 hybrid dbms[Altibase] 1-5 hybrid dbms
[Altibase] 1-5 hybrid dbms
 
[Altibase] 1-4 data differentiation
[Altibase] 1-4 data differentiation[Altibase] 1-4 data differentiation
[Altibase] 1-4 data differentiation
 
[Altibase] 1-3 history of the hybrid dbms
[Altibase] 1-3 history of the hybrid dbms[Altibase] 1-3 history of the hybrid dbms
[Altibase] 1-3 history of the hybrid dbms
 
[Altibase] 1-2 disk dbms
[Altibase] 1-2 disk dbms[Altibase] 1-2 disk dbms
[Altibase] 1-2 disk dbms
 

Último

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Último (20)

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 

[Altibase] 10 replication part3 (system design)

  • 1. Replication types ♦ Lazy – Fast replication that does not affect the master transaction ♦ Eager – Similar to 2PC(2 Phase commit) Formation types ♦ Active-Active • Activates ‘Sender’ from every nodes ♦ Active-Standby • System that uses fail-over: Activates all the ‘Senders’ such as Active-Active • System for backup only: Sender is activated only from Active server
  • 2. Two different methods depending on the synchronization point ♦ Lazy(Asynchronous) – The Master transaction and the replication transaction operates separately. The replication is delayed but performance of processing transaction is fast ♦ Eager(Synchronous) – The Master transaction and the Replication transaction operates as one. The performance is slow but there is no replication delay Main Feature ♦ There is a trade-off between replication delay or gap and performance Active Standby time Active Standby time tt' t delay(Gap) [Fig1. lazy ] [ Fig2. eager ]
  • 3. Storage Manager Query Processor Remote ServerLocal Server Lazy Eager redo logfile #n receiver INSERT UPDATE DELETE 1 5 sender 4 6 meta data redo logfile #1 redo logfile #n 2 redo logfile #1 3 Xlog redo log XSN redo log thread file Network page process Storage Manager Query Processor meta data XSN 7 module MOVE  Master Transaction= 1 + 2  Replication Transaction= 3 + 4 + 5 + 6 + 7  Transaction = 1 + 2 + 3 + 4 + 5 + 6 + 7  The Master Transaction(2) is confirmed when it’s fully applied to Replication transaction(7)
  • 4. Replication Gap ♦ The replication gap can be checked at a performance view table called v$repgap shown by number • Calculated with SN(Sequence Number) the redo log number and Restart SN • Replication Gap = [Recent Local Server SN] - [Recent Local Server Restart SN] Unsent redo-logSent redo log Replication Gap Restart SN Time SN
  • 5. Replication Gap ♦ Different formation depending on the number of DML nodes • Active-Active Modification is available from every nodes but there is a possibility of conflicts • Active-Standby Modification is available from a particular node but there are no conflicts Main Features ♦ Trade-off between modification conflicts and Load-Balancing ♦ Consideration for application depending on the formation • Active-Active : Lock might be occurred • Active-Standby : Maintaining application depending on the nodes role Active Active Active Standby Active Active StandbyStandby [Fig 1. Active-Active] [ Fig 2. Active-Standby ]
  • 6. How to configure replication system ♦ Active-Active, Active-Standby(fail-over) • Create [Number of entire servers - 1] number of replication objects for each server • Sender is activated from all of servers ♦ Active-Standby(backup) • In active server, create replication object as [Number of entire servers - 1] • For standby server, create one replication object that corresponds to one active server • Sender is activated only from active server Active Active Active Active Active Standby StandbyStandby [Fig 1. Active-Active, Active-Standby(fail-over) ] [Fig 2. Active-Standby(backup) ]
  • 7. Consideration depends on the formation types and replication types Procedure ofAdopting Replication ♦ Choosing formation types and Replication types that satisfies system • Generally Lazy replication type is chosen for fast performance • Most ideal architecture of system is a combination of Active-Active & Lazy with no Replication conflicts ♦ Establishing plan for possible errors depending on the types of formation and Replication • When there is a Network problem*, the recovery plan has to be established even though the replication type is eager Categories Active-Active Active-Standby lazy eager lazy eager Replication Performance Fast Slow Fast Slow Replication Delay* Yes No Yes No Load Balancing Every DML is available (INSERT,UPATE,DELETE) Unavailable (Only SELECT) Application Program Lock competes Lock do not competes Replication Conflicts* Yes No Data Inconsistency Possible Never Possible Never
  • 8.  Assigning server that does DML only ♦ Design server1 for DML only and server2 for SELECT only  Feature ♦ Load-balancing is only allowed in SELECT INSERT UPDATE DELETE Active 1 SELECTActive 2replication
  • 9.  Divide a number of PKs same as number of nodes ♦ Design server1 for odd number only and server2 for even number only  Main feature ♦ Load-balancing of all the DML operations is possible but caution is advised when setting up the application program INSERT UPDATE DELETE SELECT Active 1 INSERT UPDATE DELETE SELECT replication P K TABLE ODD EVEN Active 2 P K TABLE ODD EVEN
  • 10.  Dividing table according to its tasks ♦ Server 1 is responsible for table A’s DML only and server 2 is responsible for table B’s DML only  Main feature ♦ There may be a processing of complex tasks even though the load- balancing of DML operation is possible INSERT UPDATE DELETE SELECT INSERT UPDATE DELETE SELECT replication Active 2 P K TABLE B P K TABLEA Active 1 P K TABLE B P K TABLEA
  • 11.  Example of system design that assigns the server for DML only using L4 ♦ Connecting to server by identifying application program with IP from L4 APP APP APP APP APP APP APP APP APP APP Active Standby Business A Active Standby Business B Active Standby Business C Active Standby Business D Active Standby Business F Active Standby Business E L4