SlideShare a Scribd company logo
1 of 31
IntelligentWorkload Management
across Database Replicas
20 August 2015 IntelligentWorkload Management, Ritika Nevatia
2
Ritika Nevatia
Under the supervision of Prasanth Kothuri
What do we use?
Manual Load Balancing
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 3
Can we do better?
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 4
Why GDS?
Availability
Scalability
Performance
Manageability
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 5
Key features
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 6
Work Load
Management
Centralized Framework
Work Load
Routing
Region based
Replication lag based
Failover Inter database service failover
Role Based
Global Service
Takes care of role transition via Data Guard
Load Balancing Run-time
Connection
How GDS works?
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 7
Services
Representation
Grouping
Routing
to optimal instance
to handle unexpected failovers
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 8
• Implements the Oracle Database service model
• GDSCTL
• Any combination of
• Oracle Data Guard
• Oracle Golden Gate
• or any other database replication technology
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 9
How GDS works?
Caution!
Global Data Services is primarily
intended for applications that
are replication-aware.
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 10
Uses read-only global
services
Uses r/w global services BUT
resolves update conflicts if
same service is offered by
more than one DB
Can tolerate replicated data
(potentially stale) due to
replication lag
What is GDS made of?
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 11
20 August 2015
IntelligentWorkload Management, Ritika
Nevatia
12
GDS Pool
GDS Region
Global Service Manager
GDS Catalog
Oracle Notification Servers
20 August 2015
IntelligentWorkload Management, Ritika
Nevatia
13
GDS Pool
- Subset of services in same
administrative domain
- Simplifies service management
- Higher security (different admin
for each pool)
- One DB – One Pool
- DBs in the pool need not provide
same service
- All DBs providing same service
need to be in same pool
20 August 2015
IntelligentWorkload Management, Ritika
Nevatia
14
GDS Region
- Subset of services in same network
domain
- Low network latency
- Region: LAN or MAN
- One region – multiple pools
- One pool – multiple regions
- Buddy regions for GSM
20 August 2015
IntelligentWorkload Management, Ritika
Nevatia
15
Global Service Manager
GSM analogous to remote listener in Oracle
RAC
- Regional listener for connecting to global
services
- Connect time load balancing
- Manage global services across regions
- Collect performance metrics, measure
network latency
- Create run-time load balancing advisory
- Monitor availability of DB instances/global
service and notify their failure
- Each region should have atleast one GSM
- Recommended: 3 GSM per region
20 August 2015
IntelligentWorkload Management, Ritika
Nevatia
16
20 August 2015
IntelligentWorkload Management, Ritika
Nevatia
17
GDS Catalog
- Repository to store config data
- Catalog must reside in 12c DB or
above
- DB can be in/out of the GDS
configuration
- Maybe co-hosted with RMAN or
Oracle Enterprise Manager Catalogs
- Oracle RAC/Data Guard/Clusterware
should be used to enhance availability
of DB where GDS Catalog resides
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 18
Oracle Notification Servers
- Used to receive run-time load
balancing advisory and high
availability events from GSM
- Co-located with each GSM
- All ONS are interconnected
- Clients subscribe to ONS and
receive FAN notifications
The process
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 19
Give me
service!
Client GSM Instances
Most
optimal
instance
Service
Catalog
More about services
• Functionality of local service is not changed
• Oracle DB 12c provides local and global service
simultaneously
• If you are locally connected to a particular
database, then you can query data on global
services provided by that database
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 20
Use Cases
• Load Balancing for Replicated Databases
• Service Failover for Replicated Databases
• Region Affinity in Oracle GoldenGate Multi-Master
• Load Balancing in Oracle GoldenGate Multi-Master
• Balancing Oracle Active Data Guard and Oracle
GoldenGate Reader Farms
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 21
Load Balancing in Replicas
• Load metrics
• Region affinity
• Network latency
• Load balancing goals
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 22
Meriyn Budapest
Service failovers in Replicas
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 23
Meriyn Budapest Meriyn Budapest
Pre-Configuration
1. Review requirements
2. Install GSM
3. Upgrade GDS
4. Start configuration
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 24
Configuration
1. Create GDS user
sys@AISBIT:SQL> create user gds identified by "0Gds2015" default tablespace tools temporary
tablespace temp;
sys@AISBIT:SQL> alter user gds quota 10g on tools;
sys@AISBIT:SQL> grant gsmadmin_role to gds;
2. Create GDS Catalog
GDSCTL>create catalog -database AISBIT -user gds/0Gds2015
3. Grant access to gsmcatuser
sys@AISBIP:SQL> alter user gsmcatuser account unlock;
sys@AISBIP:SQL> ALTER USER gsmcatuser IDENTIFIED BY gsm_2015;
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 25
Configuration
4. Create GSM
GDSCTL>add gsm -gsm mgsm -listener 10121 -catalog AISBIT
5. SetTime zone for DB
6. Connect to GDS
GDSCTL>connect gds@itrac50018-v:10121:aisbip1
7. Create Pool
GDSCTL> add gdspool -dbpool hr -users gds
8. Create Region
GDSCTL> add region –region west,east
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 26
Configuration
8. Create Databases
GDSCTL>add database -connect ERTS_RAC4 -region REGIONORA -gdspool DBPOOLORA
GDSCTL>add database -connect ERTS_RAC5 -region REGIONORA -gdspool DBPOOLORA
9. Create Service
GDSCTL>add service -gdspool DBPOOLORA -service erts_rw -clbgoal LONG -commit_outcome TRUE
-preferred ERTS_RAC4 -available ERTS_RAC5 -commit_outcome TRUE -notification
TRUE -policy automatic -failoverdelay 10 -failoverretry 6 -session_state DYNAMIC
–failovertype TRANSACTION
10. Start Service
GDSCTL>start service –service erts_rw
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 27
Instance Modification
GDSCTL>modify service -service erts_rw -database
erts_rac4 -modify_instances -preferred ERTS -
gdspool erts
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 28
Global Services Attributes
Failover
failoverdelay failover_delay
failovermethod {NONE |
BASIC}
failoverretry failover_retries
failovertype {NONE |
SESSION | SELECT |
TRANSACTION}
Preferred or
available
databases
available db_list
preferred dbname_list
preferred_all
Region affinity
locality {ANYWHERE |
LOCAL_ONLY}
lag {lag_value | ANY}
region_failover
Goal and Roles
clbgoal {SHORT | LONG}
rlbgoal {SERVICE_TIME |
THROUGHPUT}
role {[PRIMARY] |
[PHYSICAL_STANDBY] [-
failover_primary]
|[LOGICAL_STANDBY]
|[SNAPSHOT_STANDBY]}
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 29
Limitations
Oracle 12C
Limited Documentation
Limited Usage
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 30
20 August 2015 IntelligentWorkload Management, Ritika Nevatia 31
ThankYou
Ritika Nevatia
nevatiaritika@gmail.com
@beingritika

More Related Content

What's hot

RapidScale Virtualization GPU Compute
RapidScale Virtualization GPU ComputeRapidScale Virtualization GPU Compute
RapidScale Virtualization GPU ComputeRapidScale
 
The Load Balancer: War Stories with HAProxy
The Load Balancer: War Stories with HAProxyThe Load Balancer: War Stories with HAProxy
The Load Balancer: War Stories with HAProxyGeoff Ballinger
 
Rethinking Quicksign's Digital Onboarding - Confluent Streaming Days Paris
Rethinking Quicksign's Digital Onboarding - Confluent Streaming Days ParisRethinking Quicksign's Digital Onboarding - Confluent Streaming Days Paris
Rethinking Quicksign's Digital Onboarding - Confluent Streaming Days ParisCedric Vidal
 
FIWARE Wednesday Webinars - FIWARE Overview
FIWARE Wednesday Webinars - FIWARE OverviewFIWARE Wednesday Webinars - FIWARE Overview
FIWARE Wednesday Webinars - FIWARE OverviewFIWARE
 
DevelOP Your Kubernetes Cluster wGitOps, Helm, Docker, Flux, Charts, Git!
DevelOP Your Kubernetes Cluster wGitOps, Helm, Docker, Flux, Charts, Git!DevelOP Your Kubernetes Cluster wGitOps, Helm, Docker, Flux, Charts, Git!
DevelOP Your Kubernetes Cluster wGitOps, Helm, Docker, Flux, Charts, Git!PatrickBadley
 
Cloud management portal - admin view
Cloud management portal - admin viewCloud management portal - admin view
Cloud management portal - admin viewShapeBlue
 
The Planet Corporate Overview Short Version 07 17 09
The Planet Corporate Overview Short Version 07 17 09The Planet Corporate Overview Short Version 07 17 09
The Planet Corporate Overview Short Version 07 17 09pbarbour
 
Volvo Group Connected Solutions: Starting the Observability Journey with Elastic
Volvo Group Connected Solutions: Starting the Observability Journey with ElasticVolvo Group Connected Solutions: Starting the Observability Journey with Elastic
Volvo Group Connected Solutions: Starting the Observability Journey with ElasticElasticsearch
 
Running Hyperledger Sawtooth in Production - Hyperledger Global Forum 2018
Running Hyperledger Sawtooth in Production - Hyperledger Global Forum 2018Running Hyperledger Sawtooth in Production - Hyperledger Global Forum 2018
Running Hyperledger Sawtooth in Production - Hyperledger Global Forum 2018Duncan Johnston-Watt
 
FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...
FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...
FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...FIWARE
 
Why we built Kundera - The Polyglot Object Mapper for NoSQLs?
Why we built Kundera - The Polyglot Object Mapper for NoSQLs?Why we built Kundera - The Polyglot Object Mapper for NoSQLs?
Why we built Kundera - The Polyglot Object Mapper for NoSQLs?Vivek Shrivastava
 
Commit Conf 2018 - Hotelbeds' journey to a microservice cloud-based architecture
Commit Conf 2018 - Hotelbeds' journey to a microservice cloud-based architectureCommit Conf 2018 - Hotelbeds' journey to a microservice cloud-based architecture
Commit Conf 2018 - Hotelbeds' journey to a microservice cloud-based architectureJordi Puigsegur Figueras
 
Openstack workshop @ Kalasalingam
Openstack workshop @ KalasalingamOpenstack workshop @ Kalasalingam
Openstack workshop @ KalasalingamBeny Raja
 
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
FIWARE Tech Summit - FIWARE NGSIv2 IntroductionFIWARE Tech Summit - FIWARE NGSIv2 Introduction
FIWARE Tech Summit - FIWARE NGSIv2 IntroductionFIWARE
 
Open Source GLPi Network Asset Management and ITSM
Open Source GLPi Network Asset Management and ITSMOpen Source GLPi Network Asset Management and ITSM
Open Source GLPi Network Asset Management and ITSMRazak Mohammed Ali
 
Microsoft Azure Explained - Hitesh D Kesharia
Microsoft Azure Explained - Hitesh D KeshariaMicrosoft Azure Explained - Hitesh D Kesharia
Microsoft Azure Explained - Hitesh D KeshariaHARMAN Services
 
Nats meetup sf 20150826
Nats meetup sf   20150826Nats meetup sf   20150826
Nats meetup sf 20150826Apcera
 
OpenNMS Consulting, Implementation and Support Services
OpenNMS Consulting, Implementation and Support ServicesOpenNMS Consulting, Implementation and Support Services
OpenNMS Consulting, Implementation and Support ServicesRazak Mohammed Ali
 
OTRS Consulting, Implementation, Customization and AMC
OTRS Consulting, Implementation, Customization and AMCOTRS Consulting, Implementation, Customization and AMC
OTRS Consulting, Implementation, Customization and AMCRazak Mohammed Ali
 

What's hot (20)

RapidScale Virtualization GPU Compute
RapidScale Virtualization GPU ComputeRapidScale Virtualization GPU Compute
RapidScale Virtualization GPU Compute
 
The Load Balancer: War Stories with HAProxy
The Load Balancer: War Stories with HAProxyThe Load Balancer: War Stories with HAProxy
The Load Balancer: War Stories with HAProxy
 
Rethinking Quicksign's Digital Onboarding - Confluent Streaming Days Paris
Rethinking Quicksign's Digital Onboarding - Confluent Streaming Days ParisRethinking Quicksign's Digital Onboarding - Confluent Streaming Days Paris
Rethinking Quicksign's Digital Onboarding - Confluent Streaming Days Paris
 
FIWARE Wednesday Webinars - FIWARE Overview
FIWARE Wednesday Webinars - FIWARE OverviewFIWARE Wednesday Webinars - FIWARE Overview
FIWARE Wednesday Webinars - FIWARE Overview
 
DevelOP Your Kubernetes Cluster wGitOps, Helm, Docker, Flux, Charts, Git!
DevelOP Your Kubernetes Cluster wGitOps, Helm, Docker, Flux, Charts, Git!DevelOP Your Kubernetes Cluster wGitOps, Helm, Docker, Flux, Charts, Git!
DevelOP Your Kubernetes Cluster wGitOps, Helm, Docker, Flux, Charts, Git!
 
Cloud management portal - admin view
Cloud management portal - admin viewCloud management portal - admin view
Cloud management portal - admin view
 
The Planet Corporate Overview Short Version 07 17 09
The Planet Corporate Overview Short Version 07 17 09The Planet Corporate Overview Short Version 07 17 09
The Planet Corporate Overview Short Version 07 17 09
 
Volvo Group Connected Solutions: Starting the Observability Journey with Elastic
Volvo Group Connected Solutions: Starting the Observability Journey with ElasticVolvo Group Connected Solutions: Starting the Observability Journey with Elastic
Volvo Group Connected Solutions: Starting the Observability Journey with Elastic
 
Running Hyperledger Sawtooth in Production - Hyperledger Global Forum 2018
Running Hyperledger Sawtooth in Production - Hyperledger Global Forum 2018Running Hyperledger Sawtooth in Production - Hyperledger Global Forum 2018
Running Hyperledger Sawtooth in Production - Hyperledger Global Forum 2018
 
FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...
FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...
FIWARE Global Summit - How IoT Companies and Startups are Using FIWARE as the...
 
Why we built Kundera - The Polyglot Object Mapper for NoSQLs?
Why we built Kundera - The Polyglot Object Mapper for NoSQLs?Why we built Kundera - The Polyglot Object Mapper for NoSQLs?
Why we built Kundera - The Polyglot Object Mapper for NoSQLs?
 
Commit Conf 2018 - Hotelbeds' journey to a microservice cloud-based architecture
Commit Conf 2018 - Hotelbeds' journey to a microservice cloud-based architectureCommit Conf 2018 - Hotelbeds' journey to a microservice cloud-based architecture
Commit Conf 2018 - Hotelbeds' journey to a microservice cloud-based architecture
 
Openstack workshop @ Kalasalingam
Openstack workshop @ KalasalingamOpenstack workshop @ Kalasalingam
Openstack workshop @ Kalasalingam
 
Monitoring as a Service
Monitoring as a ServiceMonitoring as a Service
Monitoring as a Service
 
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
FIWARE Tech Summit - FIWARE NGSIv2 IntroductionFIWARE Tech Summit - FIWARE NGSIv2 Introduction
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
 
Open Source GLPi Network Asset Management and ITSM
Open Source GLPi Network Asset Management and ITSMOpen Source GLPi Network Asset Management and ITSM
Open Source GLPi Network Asset Management and ITSM
 
Microsoft Azure Explained - Hitesh D Kesharia
Microsoft Azure Explained - Hitesh D KeshariaMicrosoft Azure Explained - Hitesh D Kesharia
Microsoft Azure Explained - Hitesh D Kesharia
 
Nats meetup sf 20150826
Nats meetup sf   20150826Nats meetup sf   20150826
Nats meetup sf 20150826
 
OpenNMS Consulting, Implementation and Support Services
OpenNMS Consulting, Implementation and Support ServicesOpenNMS Consulting, Implementation and Support Services
OpenNMS Consulting, Implementation and Support Services
 
OTRS Consulting, Implementation, Customization and AMC
OTRS Consulting, Implementation, Customization and AMCOTRS Consulting, Implementation, Customization and AMC
OTRS Consulting, Implementation, Customization and AMC
 

Viewers also liked

Desarrollo tecnológico y científico en colombia
Desarrollo tecnológico y científico en colombiaDesarrollo tecnológico y científico en colombia
Desarrollo tecnológico y científico en colombiaJuan David Gutiérrez Peña
 
KNOWLEDGE ECONOMY FORMATION IN RUSSIAN REGIONS IN 2000TH
KNOWLEDGE ECONOMY FORMATION IN RUSSIAN REGIONS IN 2000TH KNOWLEDGE ECONOMY FORMATION IN RUSSIAN REGIONS IN 2000TH
KNOWLEDGE ECONOMY FORMATION IN RUSSIAN REGIONS IN 2000TH Stepan Zemtsov
 
Certificazione dele Competenze. Eva Mazzetti
Certificazione dele Competenze. Eva Mazzetti Certificazione dele Competenze. Eva Mazzetti
Certificazione dele Competenze. Eva Mazzetti Digital-Coach.it
 
Core values
Core valuesCore values
Core valuesICS-HR
 
Jornal farol das geraes. edição 211 dat. 20 de setembro - jornal versão oline
Jornal farol das geraes. edição 211   dat. 20 de setembro - jornal versão olineJornal farol das geraes. edição 211   dat. 20 de setembro - jornal versão oline
Jornal farol das geraes. edição 211 dat. 20 de setembro - jornal versão olineSua Concorrencia
 
Решения КРОК для 3D-производства
Решения КРОК для 3D-производстваРешения КРОК для 3D-производства
Решения КРОК для 3D-производстваКРОК
 
Решения КРОК для виртуализации и консолидации вычислительных и системных ресу...
Решения КРОК для виртуализации и консолидации вычислительных и системных ресу...Решения КРОК для виртуализации и консолидации вычислительных и системных ресу...
Решения КРОК для виртуализации и консолидации вычислительных и системных ресу...КРОК
 

Viewers also liked (16)

Orals pres
Orals presOrals pres
Orals pres
 
Desarrollo tecnológico y científico en colombia
Desarrollo tecnológico y científico en colombiaDesarrollo tecnológico y científico en colombia
Desarrollo tecnológico y científico en colombia
 
KNOWLEDGE ECONOMY FORMATION IN RUSSIAN REGIONS IN 2000TH
KNOWLEDGE ECONOMY FORMATION IN RUSSIAN REGIONS IN 2000TH KNOWLEDGE ECONOMY FORMATION IN RUSSIAN REGIONS IN 2000TH
KNOWLEDGE ECONOMY FORMATION IN RUSSIAN REGIONS IN 2000TH
 
Certificazione dele Competenze. Eva Mazzetti
Certificazione dele Competenze. Eva Mazzetti Certificazione dele Competenze. Eva Mazzetti
Certificazione dele Competenze. Eva Mazzetti
 
April Newsletter
April NewsletterApril Newsletter
April Newsletter
 
Analisisnumericoact1
Analisisnumericoact1Analisisnumericoact1
Analisisnumericoact1
 
Certificado Polyworks IM Inspector 2015
Certificado Polyworks IM Inspector 2015Certificado Polyworks IM Inspector 2015
Certificado Polyworks IM Inspector 2015
 
2° basico b semana del 09 al 13 de abril
2°  basico b  semana del 09  al 13 de abril2°  basico b  semana del 09  al 13 de abril
2° basico b semana del 09 al 13 de abril
 
Core values
Core valuesCore values
Core values
 
Appointment setting australia
Appointment setting australiaAppointment setting australia
Appointment setting australia
 
Biodiversidad.bacj
Biodiversidad.bacjBiodiversidad.bacj
Biodiversidad.bacj
 
Jornal farol das geraes. edição 211 dat. 20 de setembro - jornal versão oline
Jornal farol das geraes. edição 211   dat. 20 de setembro - jornal versão olineJornal farol das geraes. edição 211   dat. 20 de setembro - jornal versão oline
Jornal farol das geraes. edição 211 dat. 20 de setembro - jornal versão oline
 
Biodiversidad
BiodiversidadBiodiversidad
Biodiversidad
 
Falsche Vorurteile
Falsche VorurteileFalsche Vorurteile
Falsche Vorurteile
 
Решения КРОК для 3D-производства
Решения КРОК для 3D-производстваРешения КРОК для 3D-производства
Решения КРОК для 3D-производства
 
Решения КРОК для виртуализации и консолидации вычислительных и системных ресу...
Решения КРОК для виртуализации и консолидации вычислительных и системных ресу...Решения КРОК для виртуализации и консолидации вычислительных и системных ресу...
Решения КРОК для виртуализации и консолидации вычислительных и системных ресу...
 

Similar to Intelligent_Workload_Management

MariaDB for the Enterprise
MariaDB for the EnterpriseMariaDB for the Enterprise
MariaDB for the EnterpriseAll Things Open
 
Les fonctionnalites mariadb
Les fonctionnalites mariadbLes fonctionnalites mariadb
Les fonctionnalites mariadblemugfr
 
Oracle Active Data Guard and Global Data Services in Action!
Oracle Active Data Guard and Global Data Services in Action!Oracle Active Data Guard and Global Data Services in Action!
Oracle Active Data Guard and Global Data Services in Action!Ludovico Caldara
 
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...Mydbops
 
DAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayDAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayGaurav Ahluwalia
 
DAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayDAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayGaurav Ahluwalia
 
High Availability OpenStack at PayPal - OpenStack Summit Fall Hong Kong 2013
High Availability OpenStack at PayPal - OpenStack Summit Fall Hong Kong 2013High Availability OpenStack at PayPal - OpenStack Summit Fall Hong Kong 2013
High Availability OpenStack at PayPal - OpenStack Summit Fall Hong Kong 2013Scott Carlson
 
DAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayDAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayGaurav Ahluwalia
 
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginningWSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginningWSO2
 
The New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreThe New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreMariaDB Corporation
 
Integrating best of breed open source tools to vitess orchestrator pleu21
Integrating best of breed open source tools to vitess  orchestrator   pleu21Integrating best of breed open source tools to vitess  orchestrator   pleu21
Integrating best of breed open source tools to vitess orchestrator pleu21Alkin Tezuysal
 
[RakutenTechConf2013] [C-1] Rakuten new infrastructure
[RakutenTechConf2013] [C-1] Rakuten new infrastructure[RakutenTechConf2013] [C-1] Rakuten new infrastructure
[RakutenTechConf2013] [C-1] Rakuten new infrastructureRakuten Group, Inc.
 
QNAP NAS打造私有雲平台
QNAP NAS打造私有雲平台QNAP NAS打造私有雲平台
QNAP NAS打造私有雲平台Anderson Cheng
 
CartoDB Inside Out
CartoDB Inside OutCartoDB Inside Out
CartoDB Inside OutJorge Sanz
 
SkySQL MariaDB 云数据组件
SkySQL MariaDB 云数据组件SkySQL MariaDB 云数据组件
SkySQL MariaDB 云数据组件YUCHENG HU
 
Midwest PHP Presentation - New MSQL Features
Midwest PHP Presentation - New MSQL FeaturesMidwest PHP Presentation - New MSQL Features
Midwest PHP Presentation - New MSQL FeaturesDave Stokes
 
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...VoltDB
 

Similar to Intelligent_Workload_Management (20)

MariaDB for the Enterprise
MariaDB for the EnterpriseMariaDB for the Enterprise
MariaDB for the Enterprise
 
Les fonctionnalites mariadb
Les fonctionnalites mariadbLes fonctionnalites mariadb
Les fonctionnalites mariadb
 
Oracle Active Data Guard and Global Data Services in Action!
Oracle Active Data Guard and Global Data Services in Action!Oracle Active Data Guard and Global Data Services in Action!
Oracle Active Data Guard and Global Data Services in Action!
 
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
MySQL Transformation Case Study: 80% Cost Savings & Uninterrupted Availabilit...
 
DAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayDAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gateway
 
DAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayDAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gateway
 
High Availability OpenStack at PayPal - OpenStack Summit Fall Hong Kong 2013
High Availability OpenStack at PayPal - OpenStack Summit Fall Hong Kong 2013High Availability OpenStack at PayPal - OpenStack Summit Fall Hong Kong 2013
High Availability OpenStack at PayPal - OpenStack Summit Fall Hong Kong 2013
 
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
AMIS Oracle OpenWorld 2015 Review – part 3- PaaS Database, Integration, Ident...
 
DAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gatewayDAY1- DAY2Netweaver gateway
DAY1- DAY2Netweaver gateway
 
QNAP NAS for IoT
QNAP NAS for IoTQNAP NAS for IoT
QNAP NAS for IoT
 
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginningWSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
WSO2 Business Activity Monitor (BAM) 2.0 - a new beginning
 
The New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and MoreThe New MariaDB Offering: MariaDB 10, MaxScale and More
The New MariaDB Offering: MariaDB 10, MaxScale and More
 
Integrating best of breed open source tools to vitess orchestrator pleu21
Integrating best of breed open source tools to vitess  orchestrator   pleu21Integrating best of breed open source tools to vitess  orchestrator   pleu21
Integrating best of breed open source tools to vitess orchestrator pleu21
 
[RakutenTechConf2013] [C-1] Rakuten new infrastructure
[RakutenTechConf2013] [C-1] Rakuten new infrastructure[RakutenTechConf2013] [C-1] Rakuten new infrastructure
[RakutenTechConf2013] [C-1] Rakuten new infrastructure
 
QNAP NAS打造私有雲平台
QNAP NAS打造私有雲平台QNAP NAS打造私有雲平台
QNAP NAS打造私有雲平台
 
CartoDB Inside Out
CartoDB Inside OutCartoDB Inside Out
CartoDB Inside Out
 
Gluster d2.0
Gluster d2.0Gluster d2.0
Gluster d2.0
 
SkySQL MariaDB 云数据组件
SkySQL MariaDB 云数据组件SkySQL MariaDB 云数据组件
SkySQL MariaDB 云数据组件
 
Midwest PHP Presentation - New MSQL Features
Midwest PHP Presentation - New MSQL FeaturesMidwest PHP Presentation - New MSQL Features
Midwest PHP Presentation - New MSQL Features
 
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...
VoltDB and Flytxt Present: Building a Single Technology Platform for Real-Tim...
 

Intelligent_Workload_Management

  • 1.
  • 2. IntelligentWorkload Management across Database Replicas 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 2 Ritika Nevatia Under the supervision of Prasanth Kothuri
  • 3. What do we use? Manual Load Balancing 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 3
  • 4. Can we do better? 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 4
  • 5. Why GDS? Availability Scalability Performance Manageability 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 5
  • 6. Key features 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 6 Work Load Management Centralized Framework Work Load Routing Region based Replication lag based Failover Inter database service failover Role Based Global Service Takes care of role transition via Data Guard Load Balancing Run-time Connection
  • 7. How GDS works? 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 7
  • 8. Services Representation Grouping Routing to optimal instance to handle unexpected failovers 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 8
  • 9. • Implements the Oracle Database service model • GDSCTL • Any combination of • Oracle Data Guard • Oracle Golden Gate • or any other database replication technology 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 9 How GDS works?
  • 10. Caution! Global Data Services is primarily intended for applications that are replication-aware. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 10 Uses read-only global services Uses r/w global services BUT resolves update conflicts if same service is offered by more than one DB Can tolerate replicated data (potentially stale) due to replication lag
  • 11. What is GDS made of? 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 11
  • 12. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 12 GDS Pool GDS Region Global Service Manager GDS Catalog Oracle Notification Servers
  • 13. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 13 GDS Pool - Subset of services in same administrative domain - Simplifies service management - Higher security (different admin for each pool) - One DB – One Pool - DBs in the pool need not provide same service - All DBs providing same service need to be in same pool
  • 14. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 14 GDS Region - Subset of services in same network domain - Low network latency - Region: LAN or MAN - One region – multiple pools - One pool – multiple regions - Buddy regions for GSM
  • 15. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 15 Global Service Manager GSM analogous to remote listener in Oracle RAC - Regional listener for connecting to global services - Connect time load balancing - Manage global services across regions - Collect performance metrics, measure network latency - Create run-time load balancing advisory - Monitor availability of DB instances/global service and notify their failure - Each region should have atleast one GSM - Recommended: 3 GSM per region
  • 16. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 16
  • 17. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 17 GDS Catalog - Repository to store config data - Catalog must reside in 12c DB or above - DB can be in/out of the GDS configuration - Maybe co-hosted with RMAN or Oracle Enterprise Manager Catalogs - Oracle RAC/Data Guard/Clusterware should be used to enhance availability of DB where GDS Catalog resides
  • 18. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 18 Oracle Notification Servers - Used to receive run-time load balancing advisory and high availability events from GSM - Co-located with each GSM - All ONS are interconnected - Clients subscribe to ONS and receive FAN notifications
  • 19. The process 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 19 Give me service! Client GSM Instances Most optimal instance Service Catalog
  • 20. More about services • Functionality of local service is not changed • Oracle DB 12c provides local and global service simultaneously • If you are locally connected to a particular database, then you can query data on global services provided by that database 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 20
  • 21. Use Cases • Load Balancing for Replicated Databases • Service Failover for Replicated Databases • Region Affinity in Oracle GoldenGate Multi-Master • Load Balancing in Oracle GoldenGate Multi-Master • Balancing Oracle Active Data Guard and Oracle GoldenGate Reader Farms 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 21
  • 22. Load Balancing in Replicas • Load metrics • Region affinity • Network latency • Load balancing goals 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 22 Meriyn Budapest
  • 23. Service failovers in Replicas 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 23 Meriyn Budapest Meriyn Budapest
  • 24. Pre-Configuration 1. Review requirements 2. Install GSM 3. Upgrade GDS 4. Start configuration 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 24
  • 25. Configuration 1. Create GDS user sys@AISBIT:SQL> create user gds identified by "0Gds2015" default tablespace tools temporary tablespace temp; sys@AISBIT:SQL> alter user gds quota 10g on tools; sys@AISBIT:SQL> grant gsmadmin_role to gds; 2. Create GDS Catalog GDSCTL>create catalog -database AISBIT -user gds/0Gds2015 3. Grant access to gsmcatuser sys@AISBIP:SQL> alter user gsmcatuser account unlock; sys@AISBIP:SQL> ALTER USER gsmcatuser IDENTIFIED BY gsm_2015; 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 25
  • 26. Configuration 4. Create GSM GDSCTL>add gsm -gsm mgsm -listener 10121 -catalog AISBIT 5. SetTime zone for DB 6. Connect to GDS GDSCTL>connect gds@itrac50018-v:10121:aisbip1 7. Create Pool GDSCTL> add gdspool -dbpool hr -users gds 8. Create Region GDSCTL> add region –region west,east 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 26
  • 27. Configuration 8. Create Databases GDSCTL>add database -connect ERTS_RAC4 -region REGIONORA -gdspool DBPOOLORA GDSCTL>add database -connect ERTS_RAC5 -region REGIONORA -gdspool DBPOOLORA 9. Create Service GDSCTL>add service -gdspool DBPOOLORA -service erts_rw -clbgoal LONG -commit_outcome TRUE -preferred ERTS_RAC4 -available ERTS_RAC5 -commit_outcome TRUE -notification TRUE -policy automatic -failoverdelay 10 -failoverretry 6 -session_state DYNAMIC –failovertype TRANSACTION 10. Start Service GDSCTL>start service –service erts_rw 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 27
  • 28. Instance Modification GDSCTL>modify service -service erts_rw -database erts_rac4 -modify_instances -preferred ERTS - gdspool erts 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 28
  • 29. Global Services Attributes Failover failoverdelay failover_delay failovermethod {NONE | BASIC} failoverretry failover_retries failovertype {NONE | SESSION | SELECT | TRANSACTION} Preferred or available databases available db_list preferred dbname_list preferred_all Region affinity locality {ANYWHERE | LOCAL_ONLY} lag {lag_value | ANY} region_failover Goal and Roles clbgoal {SHORT | LONG} rlbgoal {SERVICE_TIME | THROUGHPUT} role {[PRIMARY] | [PHYSICAL_STANDBY] [- failover_primary] |[LOGICAL_STANDBY] |[SNAPSHOT_STANDBY]} 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 29
  • 30. Limitations Oracle 12C Limited Documentation Limited Usage 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 30
  • 31. 20 August 2015 IntelligentWorkload Management, Ritika Nevatia 31 ThankYou Ritika Nevatia nevatiaritika@gmail.com @beingritika