SlideShare uma empresa Scribd logo
1 de 17
Storing billions of images
in a hybrid relational and NoSQL database
using Oracle Active Data Guard and Oracle NoSQL
Aris Prassinos
Who I am
• Oracle ACE 2007, Oracle ACE Director 2009
• Oracle Magazine Content Management Architect of the Year (2005)
• http://www.ArisPrassinos.com

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 2

© Aris Prassinos 2013
Agenda
• Introduce a real world use case
• Quick recap of relevant Oracle NoSQL concepts
• Present a solution that straddles relational and Oracle NoSQL databases
• Discuss things to consider and lessons learned

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 3

© Aris Prassinos 2013
The use case
• Application storing large amounts of binary data
• images, documents, short videos
• High value data
• data consistency and minimal data loss
• Write Once Read Many / occasional updates, deletes
• Random reads throughout database regardless of age of record

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 4

© Aris Prassinos 2013
Assumptions / Constraints
• High transaction volume with low latency
• Reads dominate writes
• High Availability using Active Standby datacenter
• Low latency between Primary and Standby datacenters
• Clients can arbitrarily connect to any datacenter
• System can tolerate a temporary loss of availability to guarantee consistency

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 5

© Aris Prassinos 2013
Traditional RDBMS approach
• Oracle Active Data Guard / Synchronous replication to Standby(s)
• Reader farm of Standby's to scale Reads
• Real-time intelligent routing of calls between Primary and Standby(s)
based on transaction requirements (e.g. read own writes) and Standby lag
http://www.oracle.com/technetwork/database/features/availability/morphotrak-132603.pdf

• Oracle Global Data Services to load balance Reads on Standbys
• Oracle 12c feature
• Minimal loss of availability during failover
• Third Observer site needed when two datacenters are used

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 6

© Aris Prassinos 2013
Why a hybrid solution
• High licensing cost for traditional RDBMS solution
• Other lower cost RDBMS not well suited for large scale image handling
• Concerns with storing images as regular files on the filesystem:
• durability / recovery
• consistency / integrity
• performance / scalability
• high availability / replication
• security
• Store the binary data and minimal metadata in Oracle NoSQL
and everything else in Oracle database

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 7

© Aris Prassinos 2013
Consistency between RDBMS and Oracle NoSQL
• Lack of transactions in Oracle NoSQL
• possibility of orphaned records left in Oracle NoSQL
• RDBMS is the source of truth
• Only query Oracle NoSQL using unique id obtained from RDBMS
• avoid queries on metadata in Oracle NoSQL
• Make NoSQL inserts idempotent (upserts)
• Oracle NoSQL may be ahead of an Active Data Guard Standby
• create a new version for each NoSQL update and store version# in RDBMS
• don't immediately delete from NoSQL but flag as deleted instead

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 8

© Aris Prassinos 2013
Oracle NoSQL key-value store
• Major key
: id, version
• Minor keys (columns): binary_data, binary_data.lob,
mime_type, size, signature, delete_flag
• Internal representation
• id/version/binary_data
=> data
• id/version/binary_data.lob => data
• id/version/signature
=> data
etc
• Note that Oracle NoSQL offers native streaming of large LOBs
but different columns (binary_data, binary_data.lob) are needed
to store both non-streamed and streamed LOBs under the same major key
• ACID semantics only for data within same Major key

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 9

© Aris Prassinos 2013
Oracle NoSQL Scalability
• Reader farm approach to scale Reads
• single Master / multiple Replicas architecture
• run-time load balancing of Reads based on real-time latency stats
• Oracle NoSQL latency aware driver
• Sharding to scale NoSQL Writes
• Multiple Oracle NoSQL Replication Groups
• Each shard (Replication Group) has its own Master and Replicas
• Transparent to the client
• A physical node may host the Master of one shard and the Replicas of other shards
• replicas may later be moved to dedicated physical nodes for scaling out

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 10

© Aris Prassinos 2013
Oracle NoSQL Master election
• Master is elected using PAXOS algorithm
• Master election held when a group of nodes forming a majority
does not have a Master
• when less than half of the nodes remain alive
the number that constitutes a majority can be manually overridden
using je.rep.electableGroupSizeOverride
• possible to end up with two Masters if former Master is in group
that consists of a minority of nodes after a network disconnect
• multiple Master problem solved by always requiring quorum writes

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 11

© Aris Prassinos 2013
Two datacenter configuration
• Nodes split equally between the two sites
• A third lightweight arbiter site needed to allow automatic master election
otherwise Standby site nodes cannot form a majority when Primary site lost
• Arbiter is an upcoming feature
• Arbiter placed at same site as Data Guard Observer
• otherwise manually set je.rep.electableGroupSizeOverride for manual failover
• By default NoSQL Master may not be on the same site as Data Guard Primary
• overridden using je.rep.node.priority for the preferred Master site nodes

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 12

© Aris Prassinos 2013
NoSQL Writes
• 1. Attempt a quorum write
(Durability.ReplicaAckPolicy.SIMPLE_MAJORITY)
In terms of CAP favor Latency over Consistency.
Possible inconsistencies can be handled when reading
2. If quorum write fails retry a few times to allow for potential new master election
3. If quorum write still fails decision depends on number of nodes (RF)
In terms of CAP favor Consistency over Availability.
If RF=2 attempt to write only to Master (Durability.ReplicaAckPolicy.NONE).
If RF>2 an administrator needs to intervene
since there is a possibility of having two masters if network partitioned
and writing without quorum could cause divergent transactions.

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 13

© Aris Prassinos 2013
NoSQL Reads
• 1. Read from any replica using unique id and version.
Due to quorum writes some replicas may not yet have the requested data
2. If data not found then attempt to read from Master.
We expect the data to exist since we query based on information
in the RDBMS which is the source of truth.
3. If Master not reachable return error.
• This approach achieves strong consistency, minimal latency, high availability
• most Reads to proceed when Master is temporarily unavailable
• only Reads resulting in no data found return error

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 14

© Aris Prassinos 2013
NoSQL log structured storage and backups
• Data always appended to log files up to a configurable size
• inserts, updates, deletes go to the latest log file
• Durability.SyncPolicy controls how often data written / flushed to disk
• old log files are immutable and may contain deleted or overwritten data
• Compaction process may move data from old log files to new ones
• when user defined percentage of valid records remains in a log file
• this is one of the primary candidates for tuning in a production system
• Snapshots and RSYNC can be used to perform incremental NoSQL backups

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 15

© Aris Prassinos 2013
NoSQL backups using replication
• NoSQL data since time of last snapshot lost after a restore
when only a single node used i.e. ReplicationFactor = 1
• Imperative to use NoSQL replication for loss-less recovery
• Possible to setup a node as a dedicated backup server for one or more nodes
• define each backup Rep Node as non electable master (i.e. always be Replica)
plan change-parameters ... configProperties="je.rep.node.priority=0"

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 16

© Aris Prassinos 2013
Conclusion
• Hybrid approach superior to just keeping pointers to binary data
stored on the filesystem
• replication, sharding, adjustable consistency / durability
• Strong data consistency achieved with careful application coding
• keeping in mind the consistency / availability / latency tradeoffs
• Very good architectural fit with Active Data Guard
• master / replica architecture, observer / arbiter third site
• Better suited for a replicated NoSQL configuration rather than a single node
• minimum of two server nodes and if necessary a third arbiter

Oracle Open World 2006
MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office.
All other product or service names are the property of their respective owners. © Motorola, Inc. 2005

Slide 17

© Aris Prassinos 2013

Mais conteúdo relacionado

Mais procurados

PDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPeter Doolan
 
Sparc SuperCluster
Sparc SuperClusterSparc SuperCluster
Sparc SuperClusterFran Navarro
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOTN Systems Hub
 
Exadata x3 workshop
Exadata x3 workshopExadata x3 workshop
Exadata x3 workshopFran Navarro
 
Oracle RAC 12c Rel. 2 Under the Hood and Best Practices
Oracle RAC 12c Rel. 2 Under the Hood and Best PracticesOracle RAC 12c Rel. 2 Under the Hood and Best Practices
Oracle RAC 12c Rel. 2 Under the Hood and Best PracticesMarkus Michalewicz
 
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?Markus Michalewicz
 
Oracle Maximum Availability Architecture
Oracle Maximum Availability ArchitectureOracle Maximum Availability Architecture
Oracle Maximum Availability ArchitectureMarketingArrowECS_CZ
 
Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7MarketingArrowECS_CZ
 
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoOracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoMarkus Michalewicz
 
PDoolan Oracle Overview
PDoolan Oracle OverviewPDoolan Oracle Overview
PDoolan Oracle OverviewPeter Doolan
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionMarkus Michalewicz
 
Oracle RAC - A Safe Investment into the Future of Your IT
Oracle RAC - A Safe Investment into the Future of Your ITOracle RAC - A Safe Investment into the Future of Your IT
Oracle RAC - A Safe Investment into the Future of Your ITMarkus Michalewicz
 
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEAPřehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEAMarketingArrowECS_CZ
 
Systems oracle overview_hardware
Systems oracle overview_hardwareSystems oracle overview_hardware
Systems oracle overview_hardwareFran Navarro
 
MySQL Enterprise Backup apr 2016
MySQL Enterprise Backup apr 2016MySQL Enterprise Backup apr 2016
MySQL Enterprise Backup apr 2016Ted Wennmark
 
Standard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowStandard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowMarkus Michalewicz
 
Tendencias Storage
Tendencias StorageTendencias Storage
Tendencias StorageFran Navarro
 

Mais procurados (20)

PDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT Version
 
Sparc SuperCluster
Sparc SuperClusterSparc SuperCluster
Sparc SuperCluster
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suite
 
Exadata x3 workshop
Exadata x3 workshopExadata x3 workshop
Exadata x3 workshop
 
Oracle RAC 12c Rel. 2 Under the Hood and Best Practices
Oracle RAC 12c Rel. 2 Under the Hood and Best PracticesOracle RAC 12c Rel. 2 Under the Hood and Best Practices
Oracle RAC 12c Rel. 2 Under the Hood and Best Practices
 
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
AskTom: How to Make and Test Your Application "Oracle RAC Ready"?
 
Oracle Maximum Availability Architecture
Oracle Maximum Availability ArchitectureOracle Maximum Availability Architecture
Oracle Maximum Availability Architecture
 
Security a SPARC M7 CPU
Security a SPARC M7 CPUSecurity a SPARC M7 CPU
Security a SPARC M7 CPU
 
Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7
 
Oow Ppt 2
Oow Ppt 2Oow Ppt 2
Oow Ppt 2
 
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo PruscinoOracle RAC and Your Way to the Cloud by Angelo Pruscino
Oracle RAC and Your Way to the Cloud by Angelo Pruscino
 
PDoolan Oracle Overview
PDoolan Oracle OverviewPDoolan Oracle Overview
PDoolan Oracle Overview
 
NoSQL and MySQL
NoSQL and MySQLNoSQL and MySQL
NoSQL and MySQL
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
Oracle RAC - A Safe Investment into the Future of Your IT
Oracle RAC - A Safe Investment into the Future of Your ITOracle RAC - A Safe Investment into the Future of Your IT
Oracle RAC - A Safe Investment into the Future of Your IT
 
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEAPřehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
 
Systems oracle overview_hardware
Systems oracle overview_hardwareSystems oracle overview_hardware
Systems oracle overview_hardware
 
MySQL Enterprise Backup apr 2016
MySQL Enterprise Backup apr 2016MySQL Enterprise Backup apr 2016
MySQL Enterprise Backup apr 2016
 
Standard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowStandard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & How
 
Tendencias Storage
Tendencias StorageTendencias Storage
Tendencias Storage
 

Destaque

Le nouveau Small Business Act pour la Wallonie - Jean-Claude Marcourt
Le nouveau Small Business Act pour la Wallonie - Jean-Claude MarcourtLe nouveau Small Business Act pour la Wallonie - Jean-Claude Marcourt
Le nouveau Small Business Act pour la Wallonie - Jean-Claude MarcourtForums financiers de Wallonie
 
La mise en oeuvre du plan Juncker en Belgique - Pierre-Emmanuel Noël
La mise en oeuvre du plan Juncker en Belgique - Pierre-Emmanuel NoëlLa mise en oeuvre du plan Juncker en Belgique - Pierre-Emmanuel Noël
La mise en oeuvre du plan Juncker en Belgique - Pierre-Emmanuel NoëlForums financiers de Wallonie
 
Le leasing Islamique en Tunisie "IJARA"
Le leasing Islamique en Tunisie "IJARA" Le leasing Islamique en Tunisie "IJARA"
Le leasing Islamique en Tunisie "IJARA" chafiimaher
 
Il ruolo del web nella ricerca di informazioni sulla salute, Isabella Cecchin...
Il ruolo del web nella ricerca di informazioni sulla salute, Isabella Cecchin...Il ruolo del web nella ricerca di informazioni sulla salute, Isabella Cecchin...
Il ruolo del web nella ricerca di informazioni sulla salute, Isabella Cecchin...Eugenio Santoro
 
Le risque de liquidité des banques islamiques
Le risque de liquidité des banques islamiquesLe risque de liquidité des banques islamiques
Le risque de liquidité des banques islamiquesAde Med
 
Présentation el maataoui sfi- 08 12 2015 -
Présentation el maataoui   sfi- 08 12 2015 - Présentation el maataoui   sfi- 08 12 2015 -
Présentation el maataoui sfi- 08 12 2015 - FINALIANCE
 
6.Uretim Dagitim 16.40 17.10 Urun Gelistirmede
6.Uretim Dagitim 16.40 17.10 Urun Gelistirmede6.Uretim Dagitim 16.40 17.10 Urun Gelistirmede
6.Uretim Dagitim 16.40 17.10 Urun GelistirmedeErmando
 
4.Oracle Day Sigortacili Mali Isler
4.Oracle Day Sigortacili Mali Isler4.Oracle Day Sigortacili Mali Isler
4.Oracle Day Sigortacili Mali IslerErmando
 
2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision2.Oracle’S High Availability Vision
2.Oracle’S High Availability VisionErmando
 
MedFunds 2011: Panorama du capital-investissement en Méditerranée
MedFunds 2011: Panorama du capital-investissement en Méditerranée MedFunds 2011: Panorama du capital-investissement en Méditerranée
MedFunds 2011: Panorama du capital-investissement en Méditerranée Samir Abdelkrim
 
Atlas des investissements et partenariats en Méditerranée
Atlas des investissements et partenariats en MéditerranéeAtlas des investissements et partenariats en Méditerranée
Atlas des investissements et partenariats en MéditerranéeSamir Abdelkrim
 
Gestion de la liquidité des banques islamiques - Sommet de la Finance Islami...
 Gestion de la liquidité des banques islamiques - Sommet de la Finance Islami... Gestion de la liquidité des banques islamiques - Sommet de la Finance Islami...
Gestion de la liquidité des banques islamiques - Sommet de la Finance Islami...ABOUAYOUB
 

Destaque (13)

Le nouveau Small Business Act pour la Wallonie - Jean-Claude Marcourt
Le nouveau Small Business Act pour la Wallonie - Jean-Claude MarcourtLe nouveau Small Business Act pour la Wallonie - Jean-Claude Marcourt
Le nouveau Small Business Act pour la Wallonie - Jean-Claude Marcourt
 
La mise en oeuvre du plan Juncker en Belgique - Pierre-Emmanuel Noël
La mise en oeuvre du plan Juncker en Belgique - Pierre-Emmanuel NoëlLa mise en oeuvre du plan Juncker en Belgique - Pierre-Emmanuel Noël
La mise en oeuvre du plan Juncker en Belgique - Pierre-Emmanuel Noël
 
Je tutelle 39
Je tutelle 39Je tutelle 39
Je tutelle 39
 
Le leasing Islamique en Tunisie "IJARA"
Le leasing Islamique en Tunisie "IJARA" Le leasing Islamique en Tunisie "IJARA"
Le leasing Islamique en Tunisie "IJARA"
 
Il ruolo del web nella ricerca di informazioni sulla salute, Isabella Cecchin...
Il ruolo del web nella ricerca di informazioni sulla salute, Isabella Cecchin...Il ruolo del web nella ricerca di informazioni sulla salute, Isabella Cecchin...
Il ruolo del web nella ricerca di informazioni sulla salute, Isabella Cecchin...
 
Le risque de liquidité des banques islamiques
Le risque de liquidité des banques islamiquesLe risque de liquidité des banques islamiques
Le risque de liquidité des banques islamiques
 
Présentation el maataoui sfi- 08 12 2015 -
Présentation el maataoui   sfi- 08 12 2015 - Présentation el maataoui   sfi- 08 12 2015 -
Présentation el maataoui sfi- 08 12 2015 -
 
6.Uretim Dagitim 16.40 17.10 Urun Gelistirmede
6.Uretim Dagitim 16.40 17.10 Urun Gelistirmede6.Uretim Dagitim 16.40 17.10 Urun Gelistirmede
6.Uretim Dagitim 16.40 17.10 Urun Gelistirmede
 
4.Oracle Day Sigortacili Mali Isler
4.Oracle Day Sigortacili Mali Isler4.Oracle Day Sigortacili Mali Isler
4.Oracle Day Sigortacili Mali Isler
 
2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision2.Oracle’S High Availability Vision
2.Oracle’S High Availability Vision
 
MedFunds 2011: Panorama du capital-investissement en Méditerranée
MedFunds 2011: Panorama du capital-investissement en Méditerranée MedFunds 2011: Panorama du capital-investissement en Méditerranée
MedFunds 2011: Panorama du capital-investissement en Méditerranée
 
Atlas des investissements et partenariats en Méditerranée
Atlas des investissements et partenariats en MéditerranéeAtlas des investissements et partenariats en Méditerranée
Atlas des investissements et partenariats en Méditerranée
 
Gestion de la liquidité des banques islamiques - Sommet de la Finance Islami...
 Gestion de la liquidité des banques islamiques - Sommet de la Finance Islami... Gestion de la liquidité des banques islamiques - Sommet de la Finance Islami...
Gestion de la liquidité des banques islamiques - Sommet de la Finance Islami...
 

Semelhante a Storing billions of images in a hybrid relational and NoSQL database using Oracle Active Data Guard and Oracle NoSQL

[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...Insight Technology, Inc.
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQLTed Wennmark
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaSArush Jain
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014Dave Stokes
 
MySQL: From Single Instance to Big Data
MySQL: From Single Instance to Big DataMySQL: From Single Instance to Big Data
MySQL: From Single Instance to Big DataMorgan Tocker
 
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA -   UKOUGEmbracing Database Diversity: The New Oracle / MySQL DBA -   UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUGKeith Hollman
 
Oracle Autonomous Database - introducción técnica y hands on lab
Oracle Autonomous Database  - introducción técnica y hands on labOracle Autonomous Database  - introducción técnica y hands on lab
Oracle Autonomous Database - introducción técnica y hands on lab"Diego \"Perico\"" Sanchez
 
Long and winding road - 2014
Long and winding road  - 2014Long and winding road  - 2014
Long and winding road - 2014Connor McDonald
 
MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMark Swarbrick
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAsMario Beck
 
MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksMySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksDave Stokes
 
VMworld 2013: Virtualizing Databases: Doing IT Right
VMworld 2013: Virtualizing Databases: Doing IT Right VMworld 2013: Virtualizing Databases: Doing IT Right
VMworld 2013: Virtualizing Databases: Doing IT Right VMworld
 
Oracle Database in-Memory Overivew
Oracle Database in-Memory OverivewOracle Database in-Memory Overivew
Oracle Database in-Memory OverivewMaria Colgan
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseMarkus Michalewicz
 

Semelhante a Storing billions of images in a hybrid relational and NoSQL database using Oracle Active Data Guard and Oracle NoSQL (20)

[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
ZFS appliance
ZFS applianceZFS appliance
ZFS appliance
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
 
MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014MySQL 5.7 -- SCaLE Feb 2014
MySQL 5.7 -- SCaLE Feb 2014
 
MySQL: From Single Instance to Big Data
MySQL: From Single Instance to Big DataMySQL: From Single Instance to Big Data
MySQL: From Single Instance to Big Data
 
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA -   UKOUGEmbracing Database Diversity: The New Oracle / MySQL DBA -   UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
 
Oracle Autonomous Database - introducción técnica y hands on lab
Oracle Autonomous Database  - introducción técnica y hands on labOracle Autonomous Database  - introducción técnica y hands on lab
Oracle Autonomous Database - introducción técnica y hands on lab
 
PASS Summit 2020
PASS Summit 2020PASS Summit 2020
PASS Summit 2020
 
Eci sparc
Eci sparcEci sparc
Eci sparc
 
Ora 4 the_sqldba
Ora 4 the_sqldbaOra 4 the_sqldba
Ora 4 the_sqldba
 
Long and winding road - 2014
Long and winding road  - 2014Long and winding road  - 2014
Long and winding road - 2014
 
MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of Choice
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksMySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disks
 
VMworld 2013: Virtualizing Databases: Doing IT Right
VMworld 2013: Virtualizing Databases: Doing IT Right VMworld 2013: Virtualizing Databases: Doing IT Right
VMworld 2013: Virtualizing Databases: Doing IT Right
 
Oracle Database in-Memory Overivew
Oracle Database in-Memory OverivewOracle Database in-Memory Overivew
Oracle Database in-Memory Overivew
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous Database
 
The great 8 of ODA
The great 8 of ODAThe great 8 of ODA
The great 8 of ODA
 
Less03 db dbca
Less03 db dbcaLess03 db dbca
Less03 db dbca
 

Último

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 

Último (20)

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 

Storing billions of images in a hybrid relational and NoSQL database using Oracle Active Data Guard and Oracle NoSQL

  • 1. Storing billions of images in a hybrid relational and NoSQL database using Oracle Active Data Guard and Oracle NoSQL Aris Prassinos
  • 2. Who I am • Oracle ACE 2007, Oracle ACE Director 2009 • Oracle Magazine Content Management Architect of the Year (2005) • http://www.ArisPrassinos.com Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 2 © Aris Prassinos 2013
  • 3. Agenda • Introduce a real world use case • Quick recap of relevant Oracle NoSQL concepts • Present a solution that straddles relational and Oracle NoSQL databases • Discuss things to consider and lessons learned Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 3 © Aris Prassinos 2013
  • 4. The use case • Application storing large amounts of binary data • images, documents, short videos • High value data • data consistency and minimal data loss • Write Once Read Many / occasional updates, deletes • Random reads throughout database regardless of age of record Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 4 © Aris Prassinos 2013
  • 5. Assumptions / Constraints • High transaction volume with low latency • Reads dominate writes • High Availability using Active Standby datacenter • Low latency between Primary and Standby datacenters • Clients can arbitrarily connect to any datacenter • System can tolerate a temporary loss of availability to guarantee consistency Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 5 © Aris Prassinos 2013
  • 6. Traditional RDBMS approach • Oracle Active Data Guard / Synchronous replication to Standby(s) • Reader farm of Standby's to scale Reads • Real-time intelligent routing of calls between Primary and Standby(s) based on transaction requirements (e.g. read own writes) and Standby lag http://www.oracle.com/technetwork/database/features/availability/morphotrak-132603.pdf • Oracle Global Data Services to load balance Reads on Standbys • Oracle 12c feature • Minimal loss of availability during failover • Third Observer site needed when two datacenters are used Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 6 © Aris Prassinos 2013
  • 7. Why a hybrid solution • High licensing cost for traditional RDBMS solution • Other lower cost RDBMS not well suited for large scale image handling • Concerns with storing images as regular files on the filesystem: • durability / recovery • consistency / integrity • performance / scalability • high availability / replication • security • Store the binary data and minimal metadata in Oracle NoSQL and everything else in Oracle database Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 7 © Aris Prassinos 2013
  • 8. Consistency between RDBMS and Oracle NoSQL • Lack of transactions in Oracle NoSQL • possibility of orphaned records left in Oracle NoSQL • RDBMS is the source of truth • Only query Oracle NoSQL using unique id obtained from RDBMS • avoid queries on metadata in Oracle NoSQL • Make NoSQL inserts idempotent (upserts) • Oracle NoSQL may be ahead of an Active Data Guard Standby • create a new version for each NoSQL update and store version# in RDBMS • don't immediately delete from NoSQL but flag as deleted instead Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 8 © Aris Prassinos 2013
  • 9. Oracle NoSQL key-value store • Major key : id, version • Minor keys (columns): binary_data, binary_data.lob, mime_type, size, signature, delete_flag • Internal representation • id/version/binary_data => data • id/version/binary_data.lob => data • id/version/signature => data etc • Note that Oracle NoSQL offers native streaming of large LOBs but different columns (binary_data, binary_data.lob) are needed to store both non-streamed and streamed LOBs under the same major key • ACID semantics only for data within same Major key Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 9 © Aris Prassinos 2013
  • 10. Oracle NoSQL Scalability • Reader farm approach to scale Reads • single Master / multiple Replicas architecture • run-time load balancing of Reads based on real-time latency stats • Oracle NoSQL latency aware driver • Sharding to scale NoSQL Writes • Multiple Oracle NoSQL Replication Groups • Each shard (Replication Group) has its own Master and Replicas • Transparent to the client • A physical node may host the Master of one shard and the Replicas of other shards • replicas may later be moved to dedicated physical nodes for scaling out Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 10 © Aris Prassinos 2013
  • 11. Oracle NoSQL Master election • Master is elected using PAXOS algorithm • Master election held when a group of nodes forming a majority does not have a Master • when less than half of the nodes remain alive the number that constitutes a majority can be manually overridden using je.rep.electableGroupSizeOverride • possible to end up with two Masters if former Master is in group that consists of a minority of nodes after a network disconnect • multiple Master problem solved by always requiring quorum writes Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 11 © Aris Prassinos 2013
  • 12. Two datacenter configuration • Nodes split equally between the two sites • A third lightweight arbiter site needed to allow automatic master election otherwise Standby site nodes cannot form a majority when Primary site lost • Arbiter is an upcoming feature • Arbiter placed at same site as Data Guard Observer • otherwise manually set je.rep.electableGroupSizeOverride for manual failover • By default NoSQL Master may not be on the same site as Data Guard Primary • overridden using je.rep.node.priority for the preferred Master site nodes Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 12 © Aris Prassinos 2013
  • 13. NoSQL Writes • 1. Attempt a quorum write (Durability.ReplicaAckPolicy.SIMPLE_MAJORITY) In terms of CAP favor Latency over Consistency. Possible inconsistencies can be handled when reading 2. If quorum write fails retry a few times to allow for potential new master election 3. If quorum write still fails decision depends on number of nodes (RF) In terms of CAP favor Consistency over Availability. If RF=2 attempt to write only to Master (Durability.ReplicaAckPolicy.NONE). If RF>2 an administrator needs to intervene since there is a possibility of having two masters if network partitioned and writing without quorum could cause divergent transactions. Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 13 © Aris Prassinos 2013
  • 14. NoSQL Reads • 1. Read from any replica using unique id and version. Due to quorum writes some replicas may not yet have the requested data 2. If data not found then attempt to read from Master. We expect the data to exist since we query based on information in the RDBMS which is the source of truth. 3. If Master not reachable return error. • This approach achieves strong consistency, minimal latency, high availability • most Reads to proceed when Master is temporarily unavailable • only Reads resulting in no data found return error Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 14 © Aris Prassinos 2013
  • 15. NoSQL log structured storage and backups • Data always appended to log files up to a configurable size • inserts, updates, deletes go to the latest log file • Durability.SyncPolicy controls how often data written / flushed to disk • old log files are immutable and may contain deleted or overwritten data • Compaction process may move data from old log files to new ones • when user defined percentage of valid records remains in a log file • this is one of the primary candidates for tuning in a production system • Snapshots and RSYNC can be used to perform incremental NoSQL backups Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 15 © Aris Prassinos 2013
  • 16. NoSQL backups using replication • NoSQL data since time of last snapshot lost after a restore when only a single node used i.e. ReplicationFactor = 1 • Imperative to use NoSQL replication for loss-less recovery • Possible to setup a node as a dedicated backup server for one or more nodes • define each backup Rep Node as non electable master (i.e. always be Replica) plan change-parameters ... configProperties="je.rep.node.priority=0" Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 16 © Aris Prassinos 2013
  • 17. Conclusion • Hybrid approach superior to just keeping pointers to binary data stored on the filesystem • replication, sharding, adjustable consistency / durability • Strong data consistency achieved with careful application coding • keeping in mind the consistency / availability / latency tradeoffs • Very good architectural fit with Active Data Guard • master / replica architecture, observer / arbiter third site • Better suited for a replicated NoSQL configuration rather than a single node • minimum of two server nodes and if necessary a third arbiter Oracle Open World 2006 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other product or service names are the property of their respective owners. © Motorola, Inc. 2005 Slide 17 © Aris Prassinos 2013