SlideShare une entreprise Scribd logo
1  sur  21
Scaling Database
Infrastructure @PayPal
Agenda
©2020 PayPal Inc. Confidential and proprietary. 2
1. Introduction
2. PayPal’s Scale
3. Scaling challenges
4. Scaling Methodology
5. Horizontal Scaling
6. Vertical Scaling
7. Q & A
About me
• Database Engineer at PayPal for 8+ Years
• Working on ORACLE Technologies for more than a Decade and ORACLE Certified
professional
• www.linkedin.com/in/pramodkgarre
©2020 PayPal Inc. Confidential and proprietary. 3
We are a trusted part of people’s financial lives and a partner to merchants in
200+ markets around the world
Two decades ago, our founders invented payment technology to make buying and selling
faster, secure, and easier; and put economic power where it belongs: In the hands of people
About PayPal
Our 300+ Million consumers can accept payments in > 100
currencies and interact with 20M+ Merchants across 19K+
corridors
Almost 8000 PayPal team members provide
support to our customers in over 20 languages
750+
ORACLE Instances
Database Infrastructure & Storage Footprint
5M+
Execs/Sec
32% Y-o-Y
DB Storage Growth
93 PB
Total DB Storage
740 700
2000
308
154 67
Oracle
MySQL
Aerospike
Couchbase
Cassandra
Mongo
84
8
26
Block File
Object Das
9
Host Count by Database Type
Storage Footprint (PB) by Type
(Utilization)
Scaling challenges
• Hardware Limits
• CPU
• Memory
• IOPs
• Network
• Interconnect
• Software Limitations at Scale
• Concurrent waits- Enqueues
(Table/Index/Sequences/LOBs)
• REDO – LGWR contention
• SGA contention – latches/Mutex waits
We are only as strong as the slowest component of the system
©2020 PayPal Inc. Confidential and proprietary. 6
Global Cache
SGA SGA
Shared
Storage
SGA
CPUCPU CPU
Tuning .. Scaling Methodology
Replace Tune with Scale, While the business demands change rest of the approach
is still relevant.
• Data/Application Design
• Right Data Normalization, choosing the right Datastore
• Application layer caching , pagination and connection pooling etc.
• Logical Structure of the Database
• Address object-level Bottlenecks - Divide and Conquer
• System Tuning
• Scale up
• Add more Power ( CPU, Memory, Faster Disks, Storage Cache etc. )
• Scale out
• Add more instances – Replicas, Shards, split by Domains and A/A
©2020 PayPal Inc. Confidential and proprietary.
Snippet from ORACLE 7
Document
Data/Application Design to Scale
Application Layer Design considerations
• Application level caching
• Pagination of results
• Optimal SQLs
• Intelligent Mid-Tier
• Persistent connections and Multiplexing
• Slow SQL eviction
• SQL caching/routing
Data Layer design considerations
• Right level of normalization and Design
• Avoid “hot spots”
• Design considerations based on the type of Data.
Ex: Master Data Vs Transactional Data
©2020 PayPal Inc. Confidential and proprietary.
Best way to utilize resources is not to utilize them
DatabaseApplication CacheHit
Miss
Application Caching
Scaling Database logical structures
-Divide and Conquer with in the Database
• Table/LOB Contention
At ~20k inserts/sec, table/lob can get into contention – “enq :HW
contention “
• Out-of-line Lob writes with similar size go behind the same latch
resource and causes contention.
• Partition the table and creating multiple entry point helps
Ex: Range Hash sub partition
• Number of sub-partitions and sub partitioning key was based on
studying read patterns.
• Range sub partitioning along with appropriate local/Global Hash
indexes alleviate Table contention
• Use secure file+ cache LOBs
“In computer science, divide and conquer is an algorithm design paradigm based on multi-branched recursion. A divide-and-conquer algorithm works by recursively breaking
down a problem into two or more sub-problems of the same or related type, until these become simple enough to be solved directly. The solutions to the sub-problems are then
combined to give a solution to the original problem.”
©2020 PayPal Inc. Confidential and proprietary. 9
To convert the heap table to new design chosen -
create a new table with chosen design -> Redirect reads to UNION ALL view of current and new table and Redirect writes to New table with instead of trigger on old table
Scaling Database logical structures
-Divide and Conquer
Scaling Indexes
Right-hand index contention– ”enq: TX - index contention”
• Partition the table and index to create multiple entry points
ex: Range-Hash partitions, Global Hash Indexes.
• Scatter the Index Key – Reverse-Key, Timed IDs etc.
Scaling Sequences
• CACHE, NO-ORDER Sequences in RAC
• Intelligent Mid Tier with Read-Write Split option
©2020 PayPal Inc. Confidential and proprietary. 10
Scaling Database logical structures
-Divide and Conquer
Scaling IOTs @ ~20k inserts per second
IOTS accelerate Primary Key based access. Scaling IOT writes is critical
• Reduce Write contention for same Index Blocks
• Choose appropriate partition/sub partition structure ( Range, Range Hash etc )
• Create the index on mod(Key) to scatter the records across multiple segments and blocks
©2020 PayPal Inc. Confidential and proprietary. 11
Scaling/Tuning Instance components
Scaling Interconnect traffic
Scale the Interconnect for optimal RAC performance
• Database Service isolation to avoid interconnect overwhelming
• Better Data design to avoid Multi-table join queries overwhelming Interconnect Message Bandwidth
• RDS on InfiniBand (up to 40 Gbps speeds ) to achieve ultra-low latency and throughput
• Critical Instance Background processes supporting Cache fusion to run in RT priority.
Scaling LGWR
LGWR is a single threaded process and often single most contention point in ORACLE
• Place REDO log files on faster Disks – flash, RAID 10 Disks
• Following application best practices like proper commit/sleep intervals
©2020 PayPal Inc. Confidential and proprietary. 12
Scale up and Scale out
©2020 PayPal Inc. Confidential and proprietary. 13
Scale UP
Add more resources -uplift to new powerful hardware that leverages the
latest technology and add more such nodes. Cost is the main consideration
• CPU
8 socket machines with 2.9GHz processors and up to 192 cores
• Volatile Memory
Up to 6 TB per node
• Non-Volatile Memory
Nvme flash, Nvme-SSD etc-Bandwidths of 120GB/Sec &50K IOPs
• Storage –High storage cache . 7200 RPM HDDs ,All flash storage
• InfiniBand up to 40GBPs, RoCE network Fabric up to 100GBPs
Scale out Patterns
Read Replicas/Optimized ROs
©2020 PayPal Inc. Confidential and proprietary. 14
ADG/GG
SOR RO1 ROn
R/W RO
Applications
SH0 SH1 SHn
R/W
Applications
R/W
USER
Finance
USER Finance
Monolithic
App
User App
Services
Finance
App
Services
AZ1 AZ2
AZ1 AZ2
A/A
Sharding
Domain Isolation Active/Active
Scale up involves cost and Scale out
enables elastic scaling
• Multi-AZ Read Replicas
• Sharding
• Domain Isolation
• Active-Active
Horizontal Scaling – Read Replicas
©2020 PayPal Inc. Confidential and proprietary. 15
• Scale Read Workloads by adding more replicas
• Optimized Ros ( GG Replicas) can also provide
High Availability by assuming Primary Role
• Avoid Writes on replicas with DB services
• Full copy on each replica
Horizontal Scaling - Sharding
©2018 PayPal Inc. Confidential and proprietary. 16
Sharding Rules
• Each table must have a shard key
column
• Shard Key Must be Unique across
the shards
• No cross Shard joins
• No cross shard writes
• Each SQL should have a shard key
• Tables may need to be
denormalized to support above
rules
• Each shard has a subset of Data
Horizontal scaling – Domain isolation
©2020 PayPal Inc. Confidential and proprietary. 17
• Isolate self-contained domains to different
physical database
• Logical isolation of tables and application users
followed by Physical separation
Horizontal scaling – Active/Active
©2020 PayPal Inc. Confidential and proprietary. 18
• Active/Active is mainly for multi-region high
availability But can also help in linear scaling
• Each Database has full copy of data
• Avoid mutations and collisions across the
Databases – Use UUIDs for Keys , Even/Odd
Sequences ,GG conflict resolution configurations
and application stickiness.
Reporting/Analytic workload offloading
• Changes from FSL enabled SORs are replicated to
Centralized data platform
• Near Real time replication with OGG and
Kafka/Micro batch processing
• Replication Scaling using @RANGE replicats,
Parallel extracts and parallel replicats
©2016 PayPal Inc. Confidential and proprietary. 19
What Next .. Exadata & Oracle 19c
© 2020 PayPal Inc. Confidential and proprietary.
Focusing more on business impacting innovations
Security & ComplianceReliability and Performance
• Integrated Hardware and Software
designed for Scale
• Unique software optimizations
• Highly scalable & fault tolerant
hardware
• Effective Data protection by eliminating
Database sprawl
• Standard Encryption @ Rest (TDE) ,
Performance optimization for TDE
• Standard configuration
• Automated and fast patching of all
components
Efficiency
• DB consolidation and Multi-tenancy
• Less day-to-day management, more
business focusing activities
• Autonomous DB compatibility
• With an infrastructure that’s
engineered to work together with
your Oracle Databases, Oracle
Exadata delivers far more power
with less hardware.
Optimized for Oracle Database
Q & A

Contenu connexe

Tendances

A3 transforming data_management_in_the_cloud
A3 transforming data_management_in_the_cloudA3 transforming data_management_in_the_cloud
A3 transforming data_management_in_the_cloudDr. Wilfred Lin (Ph.D.)
 
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus Webinar
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus WebinarBuild and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus Webinar
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus WebinarImpetus Technologies
 
Integrated Data Warehouse with Hadoop and Oracle Database
Integrated Data Warehouse with Hadoop and Oracle DatabaseIntegrated Data Warehouse with Hadoop and Oracle Database
Integrated Data Warehouse with Hadoop and Oracle DatabaseGwen (Chen) Shapira
 
Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...
Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...
Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...Tammy Bednar
 
Leveraging NoSQL Database Technology to Implement Real-time Data Architecture...
Leveraging NoSQL Database Technology to Implement Real-time Data Architecture...Leveraging NoSQL Database Technology to Implement Real-time Data Architecture...
Leveraging NoSQL Database Technology to Implement Real-time Data Architecture...Impetus Technologies
 
Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2Connor McDonald
 
Modern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform SystemModern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform SystemJames Serra
 
Database@Home - Maps and Spatial Analyses: How to use them
Database@Home - Maps and Spatial Analyses: How to use themDatabase@Home - Maps and Spatial Analyses: How to use them
Database@Home - Maps and Spatial Analyses: How to use themTammy Bednar
 
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAA
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAATemporal Tables, Transparent Archiving in DB2 for z/OS and IDAA
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAACuneyt Goksu
 
Things Every Oracle DBA Needs to Know About the Hadoop Ecosystem 20170527
Things Every Oracle DBA Needs to Know About the Hadoop Ecosystem 20170527Things Every Oracle DBA Needs to Know About the Hadoop Ecosystem 20170527
Things Every Oracle DBA Needs to Know About the Hadoop Ecosystem 20170527Zohar Elkayam
 
Machine Learning for z/OS
Machine Learning for z/OSMachine Learning for z/OS
Machine Learning for z/OSCuneyt Goksu
 
Deploying Full Oracle BI Platforms to Oracle Cloud - OOW2015
Deploying Full Oracle BI Platforms to Oracle Cloud - OOW2015Deploying Full Oracle BI Platforms to Oracle Cloud - OOW2015
Deploying Full Oracle BI Platforms to Oracle Cloud - OOW2015Mark Rittman
 
Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)
Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)
Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)avanttic Consultoría Tecnológica
 
Choosing the Right Big Data Tools for the Job - A Polyglot Approach
Choosing the Right Big Data Tools for the Job - A Polyglot ApproachChoosing the Right Big Data Tools for the Job - A Polyglot Approach
Choosing the Right Big Data Tools for the Job - A Polyglot ApproachDATAVERSITY
 
MOUG17 Keynote: Oracle OpenWorld Major Announcements
MOUG17 Keynote: Oracle OpenWorld Major AnnouncementsMOUG17 Keynote: Oracle OpenWorld Major Announcements
MOUG17 Keynote: Oracle OpenWorld Major AnnouncementsMonica Li
 
Deploying OBIEE in the Cloud - Oracle Openworld 2014
Deploying OBIEE in the Cloud - Oracle Openworld 2014Deploying OBIEE in the Cloud - Oracle Openworld 2014
Deploying OBIEE in the Cloud - Oracle Openworld 2014Mark Rittman
 
SQL Server on Linux - march 2017
SQL Server on Linux - march 2017SQL Server on Linux - march 2017
SQL Server on Linux - march 2017Sorin Peste
 
Introducing Kudu, Big Data Warehousing Meetup
Introducing Kudu, Big Data Warehousing MeetupIntroducing Kudu, Big Data Warehousing Meetup
Introducing Kudu, Big Data Warehousing MeetupCaserta
 
Db2 analytics accelerator on ibm integrated analytics system technical over...
Db2 analytics accelerator on ibm integrated analytics system   technical over...Db2 analytics accelerator on ibm integrated analytics system   technical over...
Db2 analytics accelerator on ibm integrated analytics system technical over...Daniel Martin
 
Database Cloud Services Office Hours : Oracle sharding hyperscale globally d...
Database Cloud Services Office Hours : Oracle sharding  hyperscale globally d...Database Cloud Services Office Hours : Oracle sharding  hyperscale globally d...
Database Cloud Services Office Hours : Oracle sharding hyperscale globally d...Tammy Bednar
 

Tendances (20)

A3 transforming data_management_in_the_cloud
A3 transforming data_management_in_the_cloudA3 transforming data_management_in_the_cloud
A3 transforming data_management_in_the_cloud
 
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus Webinar
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus WebinarBuild and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus Webinar
Build and Manage Hadoop & Oracle NoSQL DB Solutions- Impetus Webinar
 
Integrated Data Warehouse with Hadoop and Oracle Database
Integrated Data Warehouse with Hadoop and Oracle DatabaseIntegrated Data Warehouse with Hadoop and Oracle Database
Integrated Data Warehouse with Hadoop and Oracle Database
 
Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...
Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...
Database@Home - Data Driven : Loading, Indexing, and Searching with Text and ...
 
Leveraging NoSQL Database Technology to Implement Real-time Data Architecture...
Leveraging NoSQL Database Technology to Implement Real-time Data Architecture...Leveraging NoSQL Database Technology to Implement Real-time Data Architecture...
Leveraging NoSQL Database Technology to Implement Real-time Data Architecture...
 
Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2
 
Modern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform SystemModern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform System
 
Database@Home - Maps and Spatial Analyses: How to use them
Database@Home - Maps and Spatial Analyses: How to use themDatabase@Home - Maps and Spatial Analyses: How to use them
Database@Home - Maps and Spatial Analyses: How to use them
 
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAA
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAATemporal Tables, Transparent Archiving in DB2 for z/OS and IDAA
Temporal Tables, Transparent Archiving in DB2 for z/OS and IDAA
 
Things Every Oracle DBA Needs to Know About the Hadoop Ecosystem 20170527
Things Every Oracle DBA Needs to Know About the Hadoop Ecosystem 20170527Things Every Oracle DBA Needs to Know About the Hadoop Ecosystem 20170527
Things Every Oracle DBA Needs to Know About the Hadoop Ecosystem 20170527
 
Machine Learning for z/OS
Machine Learning for z/OSMachine Learning for z/OS
Machine Learning for z/OS
 
Deploying Full Oracle BI Platforms to Oracle Cloud - OOW2015
Deploying Full Oracle BI Platforms to Oracle Cloud - OOW2015Deploying Full Oracle BI Platforms to Oracle Cloud - OOW2015
Deploying Full Oracle BI Platforms to Oracle Cloud - OOW2015
 
Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)
Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)
Meetup Oracle Database MAD_BCN: 1.2 Oracle Database 18c (autonomous database)
 
Choosing the Right Big Data Tools for the Job - A Polyglot Approach
Choosing the Right Big Data Tools for the Job - A Polyglot ApproachChoosing the Right Big Data Tools for the Job - A Polyglot Approach
Choosing the Right Big Data Tools for the Job - A Polyglot Approach
 
MOUG17 Keynote: Oracle OpenWorld Major Announcements
MOUG17 Keynote: Oracle OpenWorld Major AnnouncementsMOUG17 Keynote: Oracle OpenWorld Major Announcements
MOUG17 Keynote: Oracle OpenWorld Major Announcements
 
Deploying OBIEE in the Cloud - Oracle Openworld 2014
Deploying OBIEE in the Cloud - Oracle Openworld 2014Deploying OBIEE in the Cloud - Oracle Openworld 2014
Deploying OBIEE in the Cloud - Oracle Openworld 2014
 
SQL Server on Linux - march 2017
SQL Server on Linux - march 2017SQL Server on Linux - march 2017
SQL Server on Linux - march 2017
 
Introducing Kudu, Big Data Warehousing Meetup
Introducing Kudu, Big Data Warehousing MeetupIntroducing Kudu, Big Data Warehousing Meetup
Introducing Kudu, Big Data Warehousing Meetup
 
Db2 analytics accelerator on ibm integrated analytics system technical over...
Db2 analytics accelerator on ibm integrated analytics system   technical over...Db2 analytics accelerator on ibm integrated analytics system   technical over...
Db2 analytics accelerator on ibm integrated analytics system technical over...
 
Database Cloud Services Office Hours : Oracle sharding hyperscale globally d...
Database Cloud Services Office Hours : Oracle sharding  hyperscale globally d...Database Cloud Services Office Hours : Oracle sharding  hyperscale globally d...
Database Cloud Services Office Hours : Oracle sharding hyperscale globally d...
 

Similaire à Scaling db infra_pay_pal

Oracle big data appliance and solutions
Oracle big data appliance and solutionsOracle big data appliance and solutions
Oracle big data appliance and solutionssolarisyougood
 
Oracle databáze – Konsolidovaná Data Management Platforma
Oracle databáze – Konsolidovaná Data Management PlatformaOracle databáze – Konsolidovaná Data Management Platforma
Oracle databáze – Konsolidovaná Data Management PlatformaMarketingArrowECS_CZ
 
Deploy Apache Spark™ on Rackspace OnMetal™ for Cloud Big Data Platform
Deploy Apache Spark™ on Rackspace OnMetal™ for Cloud Big Data PlatformDeploy Apache Spark™ on Rackspace OnMetal™ for Cloud Big Data Platform
Deploy Apache Spark™ on Rackspace OnMetal™ for Cloud Big Data PlatformRackspace
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]shuwutong
 
ADV Slides: When and How Data Lakes Fit into a Modern Data Architecture
ADV Slides: When and How Data Lakes Fit into a Modern Data ArchitectureADV Slides: When and How Data Lakes Fit into a Modern Data Architecture
ADV Slides: When and How Data Lakes Fit into a Modern Data ArchitectureDATAVERSITY
 
Running Production CDC Ingestion Pipelines With Balaji Varadarajan and Pritam...
Running Production CDC Ingestion Pipelines With Balaji Varadarajan and Pritam...Running Production CDC Ingestion Pipelines With Balaji Varadarajan and Pritam...
Running Production CDC Ingestion Pipelines With Balaji Varadarajan and Pritam...HostedbyConfluent
 
ADV Slides: Platforming Your Data for Success – Databases, Hadoop, Managed Ha...
ADV Slides: Platforming Your Data for Success – Databases, Hadoop, Managed Ha...ADV Slides: Platforming Your Data for Success – Databases, Hadoop, Managed Ha...
ADV Slides: Platforming Your Data for Success – Databases, Hadoop, Managed Ha...DATAVERSITY
 
Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7MarketingArrowECS_CZ
 
Introducing Apache Kudu (Incubating) - Montreal HUG May 2016
Introducing Apache Kudu (Incubating) - Montreal HUG May 2016Introducing Apache Kudu (Incubating) - Montreal HUG May 2016
Introducing Apache Kudu (Incubating) - Montreal HUG May 2016Mladen Kovacevic
 
What's New in Apache Hive 3.0?
What's New in Apache Hive 3.0?What's New in Apache Hive 3.0?
What's New in Apache Hive 3.0?DataWorks Summit
 
What's New in Apache Hive 3.0 - Tokyo
What's New in Apache Hive 3.0 - TokyoWhat's New in Apache Hive 3.0 - Tokyo
What's New in Apache Hive 3.0 - TokyoDataWorks Summit
 
Webinar future dataintegration-datamesh-and-goldengatekafka
Webinar future dataintegration-datamesh-and-goldengatekafkaWebinar future dataintegration-datamesh-and-goldengatekafka
Webinar future dataintegration-datamesh-and-goldengatekafkaJeffrey T. Pollock
 
Oracle Database 19c - poslední z rodiny 12.2 a co přináší nového
Oracle Database 19c - poslední z rodiny 12.2 a co přináší novéhoOracle Database 19c - poslední z rodiny 12.2 a co přináší nového
Oracle Database 19c - poslední z rodiny 12.2 a co přináší novéhoMarketingArrowECS_CZ
 
Phases of Big Data Challenges @ Nokia
Phases of Big Data Challenges @ NokiaPhases of Big Data Challenges @ Nokia
Phases of Big Data Challenges @ NokiaInnovation Enterprise
 
The role of NoSQL in the Next Generation of Financial Informatics
The role of NoSQL in the Next Generation of Financial InformaticsThe role of NoSQL in the Next Generation of Financial Informatics
The role of NoSQL in the Next Generation of Financial InformaticsAerospike, Inc.
 
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...DataStax
 
Is OLAP Dead?: Can Next Gen Tools Take Over?
Is OLAP Dead?: Can Next Gen Tools Take Over?Is OLAP Dead?: Can Next Gen Tools Take Over?
Is OLAP Dead?: Can Next Gen Tools Take Over?Senturus
 
Jak konsolidovat Vaše databáze s využitím Cloud služeb?
Jak konsolidovat Vaše databáze s využitím Cloud služeb?Jak konsolidovat Vaše databáze s využitím Cloud služeb?
Jak konsolidovat Vaše databáze s využitím Cloud služeb?MarketingArrowECS_CZ
 
Big Data Analytics on the Cloud Oracle Applications AWS Redshift & Tableau
Big Data Analytics on the Cloud Oracle Applications AWS Redshift & TableauBig Data Analytics on the Cloud Oracle Applications AWS Redshift & Tableau
Big Data Analytics on the Cloud Oracle Applications AWS Redshift & TableauSam Palani
 

Similaire à Scaling db infra_pay_pal (20)

Oracle big data appliance and solutions
Oracle big data appliance and solutionsOracle big data appliance and solutions
Oracle big data appliance and solutions
 
Oracle databáze – Konsolidovaná Data Management Platforma
Oracle databáze – Konsolidovaná Data Management PlatformaOracle databáze – Konsolidovaná Data Management Platforma
Oracle databáze – Konsolidovaná Data Management Platforma
 
Deploy Apache Spark™ on Rackspace OnMetal™ for Cloud Big Data Platform
Deploy Apache Spark™ on Rackspace OnMetal™ for Cloud Big Data PlatformDeploy Apache Spark™ on Rackspace OnMetal™ for Cloud Big Data Platform
Deploy Apache Spark™ on Rackspace OnMetal™ for Cloud Big Data Platform
 
Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]Kb 40 kevin_klineukug_reading20070717[1]
Kb 40 kevin_klineukug_reading20070717[1]
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
 
ADV Slides: When and How Data Lakes Fit into a Modern Data Architecture
ADV Slides: When and How Data Lakes Fit into a Modern Data ArchitectureADV Slides: When and How Data Lakes Fit into a Modern Data Architecture
ADV Slides: When and How Data Lakes Fit into a Modern Data Architecture
 
Running Production CDC Ingestion Pipelines With Balaji Varadarajan and Pritam...
Running Production CDC Ingestion Pipelines With Balaji Varadarajan and Pritam...Running Production CDC Ingestion Pipelines With Balaji Varadarajan and Pritam...
Running Production CDC Ingestion Pipelines With Balaji Varadarajan and Pritam...
 
ADV Slides: Platforming Your Data for Success – Databases, Hadoop, Managed Ha...
ADV Slides: Platforming Your Data for Success – Databases, Hadoop, Managed Ha...ADV Slides: Platforming Your Data for Success – Databases, Hadoop, Managed Ha...
ADV Slides: Platforming Your Data for Success – Databases, Hadoop, Managed Ha...
 
Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7Oracle DB In-Memory technologie v kombinaci s procesorem M7
Oracle DB In-Memory technologie v kombinaci s procesorem M7
 
Introducing Apache Kudu (Incubating) - Montreal HUG May 2016
Introducing Apache Kudu (Incubating) - Montreal HUG May 2016Introducing Apache Kudu (Incubating) - Montreal HUG May 2016
Introducing Apache Kudu (Incubating) - Montreal HUG May 2016
 
What's New in Apache Hive 3.0?
What's New in Apache Hive 3.0?What's New in Apache Hive 3.0?
What's New in Apache Hive 3.0?
 
What's New in Apache Hive 3.0 - Tokyo
What's New in Apache Hive 3.0 - TokyoWhat's New in Apache Hive 3.0 - Tokyo
What's New in Apache Hive 3.0 - Tokyo
 
Webinar future dataintegration-datamesh-and-goldengatekafka
Webinar future dataintegration-datamesh-and-goldengatekafkaWebinar future dataintegration-datamesh-and-goldengatekafka
Webinar future dataintegration-datamesh-and-goldengatekafka
 
Oracle Database 19c - poslední z rodiny 12.2 a co přináší nového
Oracle Database 19c - poslední z rodiny 12.2 a co přináší novéhoOracle Database 19c - poslední z rodiny 12.2 a co přináší nového
Oracle Database 19c - poslední z rodiny 12.2 a co přináší nového
 
Phases of Big Data Challenges @ Nokia
Phases of Big Data Challenges @ NokiaPhases of Big Data Challenges @ Nokia
Phases of Big Data Challenges @ Nokia
 
The role of NoSQL in the Next Generation of Financial Informatics
The role of NoSQL in the Next Generation of Financial InformaticsThe role of NoSQL in the Next Generation of Financial Informatics
The role of NoSQL in the Next Generation of Financial Informatics
 
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
Building a Pluggable Analytics Stack with Cassandra (Jim Peregord, Element Co...
 
Is OLAP Dead?: Can Next Gen Tools Take Over?
Is OLAP Dead?: Can Next Gen Tools Take Over?Is OLAP Dead?: Can Next Gen Tools Take Over?
Is OLAP Dead?: Can Next Gen Tools Take Over?
 
Jak konsolidovat Vaše databáze s využitím Cloud služeb?
Jak konsolidovat Vaše databáze s využitím Cloud služeb?Jak konsolidovat Vaše databáze s využitím Cloud služeb?
Jak konsolidovat Vaše databáze s využitím Cloud služeb?
 
Big Data Analytics on the Cloud Oracle Applications AWS Redshift & Tableau
Big Data Analytics on the Cloud Oracle Applications AWS Redshift & TableauBig Data Analytics on the Cloud Oracle Applications AWS Redshift & Tableau
Big Data Analytics on the Cloud Oracle Applications AWS Redshift & Tableau
 

Dernier

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Dernier (20)

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

Scaling db infra_pay_pal

  • 2. Agenda ©2020 PayPal Inc. Confidential and proprietary. 2 1. Introduction 2. PayPal’s Scale 3. Scaling challenges 4. Scaling Methodology 5. Horizontal Scaling 6. Vertical Scaling 7. Q & A
  • 3. About me • Database Engineer at PayPal for 8+ Years • Working on ORACLE Technologies for more than a Decade and ORACLE Certified professional • www.linkedin.com/in/pramodkgarre ©2020 PayPal Inc. Confidential and proprietary. 3
  • 4. We are a trusted part of people’s financial lives and a partner to merchants in 200+ markets around the world Two decades ago, our founders invented payment technology to make buying and selling faster, secure, and easier; and put economic power where it belongs: In the hands of people About PayPal Our 300+ Million consumers can accept payments in > 100 currencies and interact with 20M+ Merchants across 19K+ corridors Almost 8000 PayPal team members provide support to our customers in over 20 languages
  • 5. 750+ ORACLE Instances Database Infrastructure & Storage Footprint 5M+ Execs/Sec 32% Y-o-Y DB Storage Growth 93 PB Total DB Storage 740 700 2000 308 154 67 Oracle MySQL Aerospike Couchbase Cassandra Mongo 84 8 26 Block File Object Das 9 Host Count by Database Type Storage Footprint (PB) by Type (Utilization)
  • 6. Scaling challenges • Hardware Limits • CPU • Memory • IOPs • Network • Interconnect • Software Limitations at Scale • Concurrent waits- Enqueues (Table/Index/Sequences/LOBs) • REDO – LGWR contention • SGA contention – latches/Mutex waits We are only as strong as the slowest component of the system ©2020 PayPal Inc. Confidential and proprietary. 6 Global Cache SGA SGA Shared Storage SGA CPUCPU CPU
  • 7. Tuning .. Scaling Methodology Replace Tune with Scale, While the business demands change rest of the approach is still relevant. • Data/Application Design • Right Data Normalization, choosing the right Datastore • Application layer caching , pagination and connection pooling etc. • Logical Structure of the Database • Address object-level Bottlenecks - Divide and Conquer • System Tuning • Scale up • Add more Power ( CPU, Memory, Faster Disks, Storage Cache etc. ) • Scale out • Add more instances – Replicas, Shards, split by Domains and A/A ©2020 PayPal Inc. Confidential and proprietary. Snippet from ORACLE 7 Document
  • 8. Data/Application Design to Scale Application Layer Design considerations • Application level caching • Pagination of results • Optimal SQLs • Intelligent Mid-Tier • Persistent connections and Multiplexing • Slow SQL eviction • SQL caching/routing Data Layer design considerations • Right level of normalization and Design • Avoid “hot spots” • Design considerations based on the type of Data. Ex: Master Data Vs Transactional Data ©2020 PayPal Inc. Confidential and proprietary. Best way to utilize resources is not to utilize them DatabaseApplication CacheHit Miss Application Caching
  • 9. Scaling Database logical structures -Divide and Conquer with in the Database • Table/LOB Contention At ~20k inserts/sec, table/lob can get into contention – “enq :HW contention “ • Out-of-line Lob writes with similar size go behind the same latch resource and causes contention. • Partition the table and creating multiple entry point helps Ex: Range Hash sub partition • Number of sub-partitions and sub partitioning key was based on studying read patterns. • Range sub partitioning along with appropriate local/Global Hash indexes alleviate Table contention • Use secure file+ cache LOBs “In computer science, divide and conquer is an algorithm design paradigm based on multi-branched recursion. A divide-and-conquer algorithm works by recursively breaking down a problem into two or more sub-problems of the same or related type, until these become simple enough to be solved directly. The solutions to the sub-problems are then combined to give a solution to the original problem.” ©2020 PayPal Inc. Confidential and proprietary. 9 To convert the heap table to new design chosen - create a new table with chosen design -> Redirect reads to UNION ALL view of current and new table and Redirect writes to New table with instead of trigger on old table
  • 10. Scaling Database logical structures -Divide and Conquer Scaling Indexes Right-hand index contention– ”enq: TX - index contention” • Partition the table and index to create multiple entry points ex: Range-Hash partitions, Global Hash Indexes. • Scatter the Index Key – Reverse-Key, Timed IDs etc. Scaling Sequences • CACHE, NO-ORDER Sequences in RAC • Intelligent Mid Tier with Read-Write Split option ©2020 PayPal Inc. Confidential and proprietary. 10
  • 11. Scaling Database logical structures -Divide and Conquer Scaling IOTs @ ~20k inserts per second IOTS accelerate Primary Key based access. Scaling IOT writes is critical • Reduce Write contention for same Index Blocks • Choose appropriate partition/sub partition structure ( Range, Range Hash etc ) • Create the index on mod(Key) to scatter the records across multiple segments and blocks ©2020 PayPal Inc. Confidential and proprietary. 11
  • 12. Scaling/Tuning Instance components Scaling Interconnect traffic Scale the Interconnect for optimal RAC performance • Database Service isolation to avoid interconnect overwhelming • Better Data design to avoid Multi-table join queries overwhelming Interconnect Message Bandwidth • RDS on InfiniBand (up to 40 Gbps speeds ) to achieve ultra-low latency and throughput • Critical Instance Background processes supporting Cache fusion to run in RT priority. Scaling LGWR LGWR is a single threaded process and often single most contention point in ORACLE • Place REDO log files on faster Disks – flash, RAID 10 Disks • Following application best practices like proper commit/sleep intervals ©2020 PayPal Inc. Confidential and proprietary. 12
  • 13. Scale up and Scale out ©2020 PayPal Inc. Confidential and proprietary. 13 Scale UP Add more resources -uplift to new powerful hardware that leverages the latest technology and add more such nodes. Cost is the main consideration • CPU 8 socket machines with 2.9GHz processors and up to 192 cores • Volatile Memory Up to 6 TB per node • Non-Volatile Memory Nvme flash, Nvme-SSD etc-Bandwidths of 120GB/Sec &50K IOPs • Storage –High storage cache . 7200 RPM HDDs ,All flash storage • InfiniBand up to 40GBPs, RoCE network Fabric up to 100GBPs
  • 14. Scale out Patterns Read Replicas/Optimized ROs ©2020 PayPal Inc. Confidential and proprietary. 14 ADG/GG SOR RO1 ROn R/W RO Applications SH0 SH1 SHn R/W Applications R/W USER Finance USER Finance Monolithic App User App Services Finance App Services AZ1 AZ2 AZ1 AZ2 A/A Sharding Domain Isolation Active/Active Scale up involves cost and Scale out enables elastic scaling • Multi-AZ Read Replicas • Sharding • Domain Isolation • Active-Active
  • 15. Horizontal Scaling – Read Replicas ©2020 PayPal Inc. Confidential and proprietary. 15 • Scale Read Workloads by adding more replicas • Optimized Ros ( GG Replicas) can also provide High Availability by assuming Primary Role • Avoid Writes on replicas with DB services • Full copy on each replica
  • 16. Horizontal Scaling - Sharding ©2018 PayPal Inc. Confidential and proprietary. 16 Sharding Rules • Each table must have a shard key column • Shard Key Must be Unique across the shards • No cross Shard joins • No cross shard writes • Each SQL should have a shard key • Tables may need to be denormalized to support above rules • Each shard has a subset of Data
  • 17. Horizontal scaling – Domain isolation ©2020 PayPal Inc. Confidential and proprietary. 17 • Isolate self-contained domains to different physical database • Logical isolation of tables and application users followed by Physical separation
  • 18. Horizontal scaling – Active/Active ©2020 PayPal Inc. Confidential and proprietary. 18 • Active/Active is mainly for multi-region high availability But can also help in linear scaling • Each Database has full copy of data • Avoid mutations and collisions across the Databases – Use UUIDs for Keys , Even/Odd Sequences ,GG conflict resolution configurations and application stickiness.
  • 19. Reporting/Analytic workload offloading • Changes from FSL enabled SORs are replicated to Centralized data platform • Near Real time replication with OGG and Kafka/Micro batch processing • Replication Scaling using @RANGE replicats, Parallel extracts and parallel replicats ©2016 PayPal Inc. Confidential and proprietary. 19
  • 20. What Next .. Exadata & Oracle 19c © 2020 PayPal Inc. Confidential and proprietary. Focusing more on business impacting innovations Security & ComplianceReliability and Performance • Integrated Hardware and Software designed for Scale • Unique software optimizations • Highly scalable & fault tolerant hardware • Effective Data protection by eliminating Database sprawl • Standard Encryption @ Rest (TDE) , Performance optimization for TDE • Standard configuration • Automated and fast patching of all components Efficiency • DB consolidation and Multi-tenancy • Less day-to-day management, more business focusing activities • Autonomous DB compatibility • With an infrastructure that’s engineered to work together with your Oracle Databases, Oracle Exadata delivers far more power with less hardware. Optimized for Oracle Database
  • 21. Q & A

Notes de l'éditeur

  1. 20K+ Inserts per sec and 50k+ select per sec
  2. 1. Application caching to reduce Database calls
  3. Much more .. Transparent encryption, De-Duplication etc, new caching ,locking,space /memory and undo management . • Deletion and Reuse of entire LOBs not just individual chunks. similar size goes for same hash chain latch
  4. Timed_id is a data type used to uniquely identify rows in a partitioned table, where the requirement is that the partitioning must be by time. 1590034363100000 1590034363100001 1590034364100002 1590034364100003 1590034365100004 1590034365100005
  5.  (a) commit for every and only after 50 rows.    (b) sleep for 1 or 2 seconds AFTER every commit.
  6. Automation – scripts , 8 node 1.5TB ,96 cores, 1PB usable, 100GB RDMA over RoCE,~20TB PMEM full Rack , Smart Flash Cache. Storage Indexes., Smart Scans and Cell Offloading, Hybrid Columnar Compression ,IORM Less systems to patch Less complexity of patching Unique features on IO operations Infinity band bug causing incidents (less vendors involved) Cloud alignment 1st attempt: early versions of Exadata before it became the main stream, Matured from last 5 years Critical workload as 1st use case