SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

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
 

Tendances (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
 

En vedette

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
 

En vedette (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
 

Similaire à [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
 

Similaire à [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
 

Plus 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
 

Plus 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
 

Dernier

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Dernier (20)

Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%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
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%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
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 

[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