Escolar Documentos
Profissional Documentos
Cultura Documentos
Sarah Brydon
Database Engineer - PayPal
2 Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
The following is intended to outline our general product direction. It is
intended for information purposes only, and may not be incorporated into
any contract. It is not a commitment to deliver any material, code, or
functionality, and should not be relied upon in making purchasing
decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole
discretion of Oracle.
Master Master
– Sub-optimal resource
Local Standby Local Standby
utilization
– Hampered or no enterprise-
wide data integration
Solution – Unclear strategy for
A framework that transparently manages consolidation versus
client workloads across replicated databases distribution
GoldenGate GoldenGate
Global Service Manager (GSM): Provides main GDS functionality: service management
and load balancing
– Regional listener to the incoming database connections
– At least one GSM per region or multiple GSMs for High Availability
– All databases/services register to all GSM Listeners
GDS Catalog: stores all metadata, enables centralized global monitoring & management
– Global service configuration stored in GDS Catalog
Active
SALES POOL (sales_reporting_srvc, sales_entry_srvc)
• GDS Framework
Active Active
Data Guard Data
Guard
Data Guard dynamically balances user
requests across multiple
Local Standby
RAC
Primary Single Instance
Reader Farm
replicated sites
– Based on location, load,
and availability
All GDS databases connected to all GSMs
• Provides global availability
GSM GSM
GSM GSM – Supports automatic
GDSCTL GDS Catalog
Database GDS Catalog service failover
Standby
2. GSM routes
request to catalog
1. GDSCTL 5. Catalog
connects to notifies GSMs
catalog DB via GSM of changes GSM
GSM listener
6. Master GSM
Pool modifies Pool
Database Databases Pool
Database
GDS Catalog ensures consistent view of the configuration across the cloud
GDS supports role-based global services
– Automatically starts a global service only when db role matches the role specified for
the service
App Server GSM via Oracle Notification Services (ONS) notifies connection
pool that service SALES is UP with database Sales-2
GSM GSM
2. Based on CLB
information, GSM
redirects client to an
optimal instance.
SHORT, LONG
REGION Affinity
Instance Performance All databases
connected to all
Sales-1 GSMs Sales-2
Global Service : SALES_READ_SERVICE Global Service : SALES_READ_SERVICE
GDS does intelligent load balancing even across asymmetrical database servers
34
Tier-1 Oracle Database HA at PayPal (2012)
Primary Data Center
Production Databases
• RAC, ASM, FRA ETL
• 10-40 TB Targets
GoldenGate Replication
ETL
Targets
GoldenGate
35
PayPal’s Business Challenge
• Support read services on multiple Active Data Guard
databases
• Meet defined SLAs for lag on read-only services
• Manage services in multiple data centers
– Balance load across Active Data Guard copies
– direct connections to local region
• Service location transparency to clients
– Manage service availability during planned maintenance
– Relocate primary database and perform tech refreshes ‘in the
cloud’
36
The Case for Global Data Services
• Simple, centralized management of services
– Define the service once in GDS and specify all preferred
and available databases
– Data Guard Broker integration for role-aware service
definitions
• Performance management
– Specify a maximum lag and the service will automatically
be disabled if the lag is exceeded
– Connection and Runtime Load Balancing options
– Region affinity for global services with inter-region failover
37
PayPal Lab setup – Oracle Database 12c Beta
Databases
------------------------
lablnxa
lablnxb
lablnxc
11.2 jdbc clients,no UCP 11.2 jdbc clients,no UCP
12.1 jdbc thin clients , UCP 12.1 jdbc thin clients , UCP
Services
read connections read connections
------------------------
srv_lablag15
srv_labroregion
srv_labrw (primary read-
GDSCAT
write service)
GSM
38
Simple, centralized management
-- add a service once in GDSCTL and it deploys to every appropriate instance
add service -service srv_lablag15 -gdspool lab -preferred lablnxb,lablnxc -available lablnxa -role
PHYSICAL_STANDBY -lag 15 -loadbalance LONG
add service -service srv_roregion -gdspool lab -preferred lablnxb,lablnxc -available lablnxa -role
PHYSICAL_STANDBY -loadbalance LONG -locality LOCAL_ONLY -region_failover
GDSCTL>services
…
Service "srv_lablag15.lab.oradbcloud" has 2 instance(s). Affinity: ANYWHERE
Instance "lab%17", name: "LABLNXC", db: "lablnxc", region: "scfc", status: ready.
Instance "lab%9", name: "LABLNXB", db: "lablnxb", region: "scfb", status: ready.
Service "srv_roregion.lab.oradbcloud" has 2 instance(s). Affinity: LOCALPREF
Instance "lab%17", name: "LABLNXC", db: "lablnxc", region: "scfc", status: ready.
Instance "lab%9", name: "LABLNXB", db: "lablnxb", region: "scfb", status: ready.
39
Summary
• True enterprise-wide management of services
• Manage services in the cloud by abstracting
database connection strings
• Region-aware services supports the growing need for
management of services across databases that may
be physically widely separated
• Smart integration with broker configurations to
leverage Active Data Guard databases
40
Agenda
GDS Framework
Primary Physical
standby
48 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. After OpenWorld, visit oracle.com/goto/availability
Resources
OTN HA Portal:
http://www.oracle.com/goto/availability
Maximum Availability Architecture (MAA):
http://www.oracle.com/goto/maa
MAA Blogs:
http://blogs.oracle.com/maa
Exadata on OTN:
http://www.oracle.com/technetwork/database/exadata/index.html
Oracle HA Customer Success Stories on OTN:
http://www.oracle.com/technetwork/database/features/ha-casestudies-
098033.html