SlideShare a Scribd company logo
Copyright © 2019 Oracle and/or its affiliates.
MySQL InnoDB Cluster
Management and troubleshooting
using MySQL Shell
Senior Software Developer
MySQL Middleware and Clients
September 18, 2019
Miguel Araújo
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, timing, and pricing of any features or functionality described for Oracle’s products may change
and remains at the sole discretion of Oracle Corporation.
Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and
prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed
discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and
Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q
under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website
at http://www.oracle.com/investor. All information in this presentation is current as of September 2019
and Oracle undertakes no duty to update any statement in light of new information or future events.
Safe Harbor
Copyright © 2019 Oracle and/or its affiliates.
$ whoami
Copyright © 2019 Oracle and/or its affiliates.
Copyright © 2019 Oracle and/or its affiliates.
Miguel Araújo
• MySQL Developer since 2011
• AdminAPI Tech Lead @ MySQL Shell team
• MySQL InnoDB Cluster evangelist
• Living in Portugal
• http://about.me/miguel-araujo
• @M1guelAraujo
1.
2.
3.
4.
5.
Copyright © 2019 Oracle and/or its affiliates.
Introduction to InnoDB cluster
Node Provisioning
Monitoring
Maintenance and Troubleshooting
Final thoughts and resources
What’s Ahead
Introduction to
InnoDB Cluster
Copyright © 2019 Oracle and/or its affiliates.
Copyright © 2019 Oracle and/or its affiliates.
• MySQL Group Replication
• MySQL Shell
• MySQL Router
InnoDB cluster
“A single product – MySQL – with high
availability and scaling features baked in;
providing an integrated end-to-end solution
that is easy to use.”
One Product:
MySQL
1
Copyright © 2019 Oracle and/or its affiliates.
MySQL InnoDB Cluster Goals
• All components
developed and integrated
together
• Full stack testing
One Product:
MySQL
1 2
Copyright © 2019 Oracle and/or its affiliates.
MySQL InnoDB Cluster Goals
• All components
developed and integrated
together
• Full stack testing
• One client: MySQL Shell
• Easy packaging
• Integrated Orchestration
• Homogeneous servers
Easy to use!
One Product:
MySQL
Flexible and
Modern
1 2 3
Copyright © 2019 Oracle and/or its affiliates.
MySQL InnoDB Cluster Goals
• All components
developed and integrated
together
• Full stack testing
• One client: MySQL Shell
• Easy packaging
• Integrated Orchestration
• Homogeneous servers
Easy to use!
• SQL and noSQL together:
X Protocol
• Protocol Buffers
• Asynchronous API
• Developer friendly
!
Copyright © 2019 Oracle and/or its affiliates.
MySQL InnoDB Cluster Goals
Completely Open Source --- GPL
No license required to have High Availability!
• Interactive multi-language console interface that supports
development and administration for the MySQL Server:
• Supports JavaScript, Python and SQL
• Interactive and batch operations (scripting)
• Supports Document and Relational models (X and MySQL protocols)
Copyright © 2019 Oracle and/or its affiliates.
MySQL Shell
• Exposes full Development and Administration APIs:
• Scriptable “DevOps” APIS
• Unified interface for developers and DBAs
Copyright © 2019 Oracle and/or its affiliates.
MySQL Shell
• Creation and Management of InnoDB clusters
• Available in both JavaScript and Python; and command-line
• Simple and straight-forward
• Flexible, powerful and secure!
Copyright © 2019 Oracle and/or its affiliates.
MySQL AdminAPI
Copyright © 2019 Oracle and/or its affiliates.
Creating a Cluster
// Configure servers for MySQL InnoDB cluster usage
mysqlsh-js> dba.configureInstance(“clusteradmin@mysql1:3306”)
Copyright © 2019 Oracle and/or its affiliates.
Creating a Cluster
// Configure servers for MySQL InnoDB cluster usage
mysqlsh-js> dba.configureInstance(“clusteradmin@mysql1:3306”)
// Connect to target instance
mysqlsh-js> c clusteradmin@mysql1:3306
Copyright © 2019 Oracle and/or its affiliates.
Creating a Cluster
// Configure servers for MySQL InnoDB cluster usage
mysqlsh-js> dba.configureInstance(“clusteradmin@mysql1:3306”)
// Connect to target instance
mysqlsh-js> c clusteradmin@mysql1:3306
// Create the cluster
mysqlsh-js> var cluster = dba.createCluster(“CodeOne19”)
Copyright © 2019 Oracle and/or its affiliates.
Creating a Cluster
// Configure servers for MySQL InnoDB cluster usage
mysqlsh-js> dba.configureInstance(“clusteradmin@mysql1:3306”)
// Connect to target instance
mysqlsh-js> c clusteradmin@mysql1:3306
// Create the cluster
mysqlsh-js> var cluster = dba.createCluster(“CodeOne19”)
// Add instances to the cluster
mysqlsh-js> cluster.addInstance(“clusteradmin@mysql2:3306”)
• Transparent client routing between the application and the
backend servers:
ü Application connection failover
• Native support for InnoDB clusters
• Stateless
Copyright © 2019 Oracle and/or its affiliates.
MySQL Router
Node Provisioning
Copyright © 2019 Oracle and/or its affiliates.
• Provisioning a server is the process of configuring and getting it
ready to be used in an InnoDB cluster.
• The server needs to have all clusters’ data to be able to join it
• That’s typically done by:
1. Performing a backup of one of the cluster members
2. Restoring the image in the new member that wants to join
Copyright © 2019 Oracle and/or its affiliates.
Provisioning
• Distributed recovery is a process that runs when a new member is
added to the group and has missing transactions
• A donor that can provide the missing data is automatically selected
• The catch-up happens transparently and the server is
synchronized with the rest of the cluster
Copyright © 2019 Oracle and/or its affiliates.
Distributed Recovery
• Incremental recovery fetches only the missing data based on the
GTIDs into
- The cluster must be able to provide all the missing data
• Relies on the classic Asynchronous Replication
• Also provides group transactional information
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
Some data is inserted in
the DB
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
The data modifications are
stored in the binlog.
And the transactions are
delivered to every cluster
member
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
Group Replication is
eventually synchronous.
Guarantees that
transactions are delivered
to all members in the
same order.
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
The binlogs keep track of
all data modifications.
Incremental Recovery to Provision
A new member wants to
join the cluster
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
A new member wants to
join the cluster
The missing data is
fetched and the server
synchronizes with the rest
of the cluster
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
A donor is automatically
selected to fetch the
missing data from, using
plain Asynchronous
Replication
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
A donor is automatically
selected to fetch the
missing data from, using
plain Asynchronous
Replication
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
A donor is automatically
selected to fetch the
missing data from, using
plain Asynchronous
Replication
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
The instance successfully
joins the cluster!
Copyright © 2019 Oracle and/or its affiliates.
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
!May take a considerable amount of time
• But what if the cluster members lost all binary logs?
• Or even... Just some data is missing that is not
available on any binary log
• What about space constraints?
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
?
Incremental Recovery to Provision
Some binary logs were
purged.
And the instance has no
data yet.
Copyright © 2019 Oracle and/or its affiliates.
Incremental Recovery to Provision
Some binary logs were
purged.
And the instance has no
data yet.
Failed attempt to join the
cluster!
Copyright © 2019 Oracle and/or its affiliates.
• Performs physical snapshots of databases
ü Really fast!
• Transfers the snapshots over the network to provision servers
ü Can be used remotely!
• Replaces all the server data
Copyright © 2019 Oracle and/or its affiliates.
MySQL Clone Plugin
!Available since 8.0.17
Distributed recovery = initial provisioning + online catch-up
• Seamless and automated solution for provisioning
• No external tools or scripting required
Copyright © 2019 Oracle and/or its affiliates.
Clone to Provision
Common issues easily solved with clone:
• Very large datasets
• Incomplete binary log history
• Re-provision diverged instances
Copyright © 2019 Oracle and/or its affiliates.
Clone to Provision
Clone to Provision
Some binary logs were
purged.
And the instance has no
data yet.
Copyright © 2019 Oracle and/or its affiliates.
Clone to Provision
Some binary logs were
purged.
And the instance has no
data yet.
Clone required !
Copyright © 2019 Oracle and/or its affiliates.
Clone to Provision
A donor is automatically
selected.
And a full snapshot of its
data is performed.
Copyright © 2019 Oracle and/or its affiliates.
Clone to Provision
The instance successfully
joins the cluster!
Copyright © 2019 Oracle and/or its affiliates.
Clone-based
Recovery Demo
Copyright © 2019 Oracle and/or its affiliates.
Copyright © 2019 Oracle and/or its affiliates.
Copyright © 2019 Oracle and/or its affiliates.
• Incremental recovery is possible if:
• At least 1 member can provide the joiner
with the same set of transactions it has
processed.
• The joiner does not have errants
transactions
• Incremental recovery appropriate if:
• No purged transactions
• Joiner does not have an empty GTID set
• GTID support and binary logs were always
enabled
Which recovery shall be used?
Copyright © 2019 Oracle and/or its affiliates.
AdminAPI Guidance
Incremental recovery safe and appropriate:
Copyright © 2019 Oracle and/or its affiliates.
AdminAPI Guidance
Clone-based recovery required:
• Built-in support for full instance provisioning!
• AdminAPI transparently:
ü Setups the cluster to be ready for clone usage (plugin setup, user grants, etc.)
ü Detects every possible scenario and guides the user accordingly to the best provisioning
method
ü Still allowing manual intervention to choose the provisioning method
Copyright © 2019 Oracle and/or its affiliates.
InnoDB cluster 8.0.17+
• Binlogs can now be purged frequently!
• But (at least) one cluster member should keep them for 2 days
(minimum) for recovery.
Copyright © 2019 Oracle and/or its affiliates.
Just a tip!
!
Monitoring
Copyright © 2019 Oracle and/or its affiliates.
Copyright © 2019 Oracle and/or its affiliates.
Node Provisioning Monitoring
The AdminAPI was extended to provide monitoring features:
• For any type of recovery method: clone or incremental
• Real-time progress information
• Detailed stage status
• Asynchronous progress information from cluster.status()
Copyright © 2019 Oracle and/or its affiliates.
Node Provisioning Monitoring
ü Clone-based recovery real-time progress info
Copyright © 2019 Oracle and/or its affiliates.
Node Provisioning Monitoring
ü Clone-based recovery progress from cluster.status()
Copyright © 2019 Oracle and/or its affiliates.
Cluster Status
Provides general information
about the cluster and each
member status
mysqlsh-js> cluster.status()
Copyright © 2019 Oracle and/or its affiliates.
Extended Status
Provides information of:
• GR Group name
• Group protocol version
• Cluster members UUIDs
• Cluster members roles and states
• Read-only settings
mysqlsh-js>
cluster.status({extended: 1})
Copyright © 2019 Oracle and/or its affiliates.
Extended Status
Provides information of:
• Transactions processed by
connection and applier
mysqlsh-js>
cluster.status({extended: 2})
Copyright © 2019 Oracle and/or its affiliates.
Extended Status
Provides information of:
• Detailed stats about the replication
machinery of each cluster member
mysqlsh-js>
cluster.status({extended: 3})
• Built-in reports
• User-defined reports
Copyright © 2019 Oracle and/or its affiliates.
Reporting Framework
// displays the result one time
mysqlsh-js> show query <query>
// executes repeatedly with screen refresh
mysqlsh-js> watch query <query>
// registers a user-defined-report
mysqlsh-js> shell.registerReport(<UDR>)
• Built-in reports
• User-defined reports
Copyright © 2019 Oracle and/or its affiliates.
Reporting Framework
// displays the result one time
mysqlsh-js> show query <query>
// executes repeatedly with screen refresh
mysqlsh-js> watch query <query>
// registers a user-defined-report
mysqlsh-js> shell.registerReport(<UDR>)
! Monitor P_S to check which
secondary instance is slower
Maintenance and
Troubleshooting
Copyright © 2019 Oracle and/or its affiliates.
Copyright © 2019 Oracle and/or its affiliates.
Maintenance
Monitoring a cluster can provide info/hints about:
• Faulty networks
• High latencies
• Server failures
• ...
Copyright © 2019 Oracle and/or its affiliates.
Cluster Options
Provides information of:
• The cluster global configuration
options
• Each cluster member settings
mysqlsh-js> cluster.options()
expelTimeout
Avoid frequent member expels
due to faulty network
memberWeight
Next primary in line when a
failover happens
exitStateAction
Action when a server is expelled
from the cluster: abort, read-only,
offline-mode
autoRejoinTries
Rejoin attempts after an eviction
Copyright © 2019 Oracle and/or its affiliates.
Cluster options
Copyright © 2019 Oracle and/or its affiliates.
Changing Cluster Options
// Change the member-weight value of a member
mysqlsh-js> cluster.setInstanceOption(“mysql2:3307”, “memberWeight”, 75)
Copyright © 2019 Oracle and/or its affiliates.
Changing Cluster Options
// Change the member-weight value of a member
mysqlsh-js> cluster.setInstanceOption(“mysql2:3307”, “memberWeight”, 75)
// Change the exit-state-action of a member
mysqlsh-js> cluster.setInstanceOption(“mysql3”, “exitStateAction”, “ABORT_SERVER”)
Copyright © 2019 Oracle and/or its affiliates.
Changing Cluster Options
// Change the member-weight value of a member
mysqlsh-js> cluster.setInstanceOption(“mysql2:3307”, “memberWeight”, 75)
// Change the exit-state-action of a member
mysqlsh-js> cluster.setInstanceOption(“mysql3”, “exitStateAction”, “ABORT_SERVER”)
// Change the expel-timeout of the cluster
mysqlsh-js> cluster.setOption(“expelTimeout”, 60)
Copyright © 2019 Oracle and/or its affiliates.
Consistency Levels
• InnoDB cluster operates, by default, in single-primary mode:
• Apps and users write to the primary instance
• What guarantees do we have that:
• We always read the most up-to-date data?
• We do not read stale data of an evicted server?
• Dirty reads do not happen?
?
Copyright © 2019 Oracle and/or its affiliates.
Consistency Levels
// Create a cluster with “BEFORE” consistency level
// Ensures that reads always read the most up-to-data data
mysqlsh-js> cluster = dba.createCluster(“CodeOne19”, {consistency: “BEFORE”})
Copyright © 2019 Oracle and/or its affiliates.
Consistency Levels
// Create a cluster with “BEFORE” consistency level
// Ensures that reads always read the most up-to-data data
mysqlsh-js> cluster = dba.createCluster(“CodeOne19”, {consistency: “BEFORE”})
// Change the consistency level at any time
// AFTER ensures that there are no dirty reads
mysqlsh-js> cluster.setOption(“consistency”, “AFTER”)
Copyright © 2019 Oracle and/or its affiliates.
Topology Modes
• The cluster’s primary instance can be changed, immediately:
Copyright © 2019 Oracle and/or its affiliates.
Topology Modes
• The topology-mode can be changed live:
// Change the topology-mode to multi-primary
mysqlsh-js> cluster.switchToMultiPrimaryMode()
// Change back to single-primary-mode
mysqlsh-js> cluster.switchToSinglePrimaryMode()
Copyright © 2019 Oracle and/or its affiliates.
Security
• Internal recovery accounts have randomly secure generated
passwords
• But security policies may enforce passwords lifetime
ü Support to reset a cluster’s recovery accounts credentials added
// Reset the recovery accounts credentials
mysqlsh-js> cluster.resetRecoveryAccountsPassword()
Available in 8.0.18
“Anything that can go wrong will go wrong.”
Copyright © 2019 Oracle and/or its affiliates.
Troubleshooting
“Anything that can go wrong will go wrong.”
Copyright © 2019 Oracle and/or its affiliates.
Troubleshooting
• Shell’s interactive behavior provides the users with valuable
information, by default.
• But sometimes more information is needed for troubleshooting...
Copyright © 2019 Oracle and/or its affiliates.
Logging
Logging levels:
• 1: none
• 2: internal
• 3: error
• 4: warning
• 5: info
• 6, 7, 8: debug
$ mysqlsh –-log-level=8
Copyright © 2019 Oracle and/or its affiliates.
Logging
Verbose output level:
• [1, 4]
• Enables diagnostic
messages output
$ mysqlsh –-verbose=4
Copyright © 2019 Oracle and/or its affiliates.
Logging
Log AdminAPI SQL:
• 0: no logging
• 1: log all queries
except SELECT and
SHOW
• 2: log all queries
$ mysqlsh –-dba-log-sql=2
Available in 8.0.18
• InnoDB cluster is THE built-in HA solution for MySQL
• MySQL Clone Plugin pushed InnoDB cluster to a whole new
level of usability!
• InnoDB Cluster features built-in support for full instance provisioning
• MySQL Shell is the unified interface for developers and DBAs
and the frontend manager for InnoDB cluster
Final Thoughts
Copyright © 2019 Oracle and/or its affiliates.
Resources
Copyright © 2019 Oracle and/or its affiliates.
• https://dev.mysql.com/doc/refman/8.0/en/mysql-innodb-
cluster-userguide.html (InnoDB cluster userguide)
https://dev.mysql.com/doc/dev/mysqlsh-api-javascript/8.0/ (Shell APIs JS Ref manual)
https://dev.mysql.com/doc/dev/mysqlsh-api-python/8.0/ (Shell APIs Python Ref manual)
• https://mysqlhighavailability.com (Blogging)
• http://mysqlserverteam.com/ (Blogging)
• https://mysqlcommunity.slack.com (Community Slack)
Thank you!
Copyright © 2019 Oracle and/or its affiliates.
• MySQL Shell: The Best DBA Tool? How to Use MySQL Shell as a
Framework for DBAs [DEV2056]
• What’s New in MySQL Optimizer and Executor? [DEV2077]
• MySQL Connector/J 8.0 Feature Review and How to Upgrade from
Connector/J 5.1 [DEV6221]
• MySQL 8.0 Enterprise Backup [DEV4110]
• Group Replication: How I Stopped Worrying About Consistency and
Focused on Building Apps [DEV3016]
MOAR MySQL
Copyright © 2019 Oracle and/or its affiliates.
Session Survey
Help us make the content
even better. Please complete
the session survey in the
Mobile App.
Copyright © 2019 Oracle and/or its affiliates.
The preceding 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, timing, and pricing of any features or functionality described for Oracle’s products may change
and remains at the sole discretion of Oracle Corporation.
Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and
prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed
discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and
Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q
under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website
at http://www.oracle.com/investor. All information in this presentation is current as of September 2019
and Oracle undertakes no duty to update any statement in light of new information or future events.
Safe Harbor
Copyright © 2019 Oracle and/or its affiliates.

More Related Content

PDF
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
PDF
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
PDF
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
PDF
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
PDF
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
PDF
MySQL InnoDB Cluster HA Overview & Demo
PDF
MySQL Group Replication - Ready For Production? (2018-04)
PDF
MySQL Database Architectures - 2020-10
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11
MySQL Database Architectures - InnoDB ReplicaSet & Cluster
Wars of MySQL Cluster ( InnoDB Cluster VS Galera )
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
MySQL InnoDB Cluster HA Overview & Demo
MySQL Group Replication - Ready For Production? (2018-04)
MySQL Database Architectures - 2020-10

What's hot (20)

PDF
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
PDF
Intro ProxySQL
PDF
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
PDF
InnoDb Vs NDB Cluster
PDF
MySQL/MariaDB Proxy Software Test
PDF
MySQL Shell for DBAs
PDF
MySQL High Availability with Group Replication
PDF
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
PDF
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
PDF
MySQL Security
PPTX
Maria db 이중화구성_고민하기
PDF
Federated Engine 실무적용사례
PDF
MySQL InnoDB Cluster - Advanced Configuration & Operations
PDF
MySQL Database Architectures - High Availability and Disaster Recovery Solution
PDF
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
PDF
Galera Cluster for MySQL vs MySQL (NDB) Cluster: A High Level Comparison
PDF
gDBClone - Database Clone “onecommand Automation Tool”
PDF
ProxySQL High Avalability and Configuration Management Overview
PPTX
Oracle GoldenGate Performance Tuning
PDF
MySQL Advanced Administrator 2021 - 네오클로바
Disaster Recovery with MySQL InnoDB ClusterSet - What is it and how do I use it?
Intro ProxySQL
ProxySQL and the Tricks Up Its Sleeve - Percona Live 2022.pdf
InnoDb Vs NDB Cluster
MySQL/MariaDB Proxy Software Test
MySQL Shell for DBAs
MySQL High Availability with Group Replication
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Security
Maria db 이중화구성_고민하기
Federated Engine 실무적용사례
MySQL InnoDB Cluster - Advanced Configuration & Operations
MySQL Database Architectures - High Availability and Disaster Recovery Solution
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Galera Cluster for MySQL vs MySQL (NDB) Cluster: A High Level Comparison
gDBClone - Database Clone “onecommand Automation Tool”
ProxySQL High Avalability and Configuration Management Overview
Oracle GoldenGate Performance Tuning
MySQL Advanced Administrator 2021 - 네오클로바
Ad

Similar to MySQL InnoDB Cluster: Management and Troubleshooting with MySQL Shell (20)

PDF
Confoo 202 - MySQL Group Replication and ReplicaSet
PDF
MySQL InnoDB Cluster / ReplicaSet - Making Provisioning & Troubleshooting as ...
PDF
How to operate MySQL InnoDB Cluster with MySQL Shell
PDF
MySQL Technology Overview
PDF
MySQL 8.0 InnoDB Cluster - Easiest Tutorial
PDF
Docker Compose Setup for MySQL InnoDB Cluster
PPTX
My sql8 innodb_cluster
PDF
MySQL Shell - A DevOps-engineer day with MySQL’s development and administrati...
PDF
20200613 my sql-ha-deployment
PPTX
MySQL, An Open Source Ecosystem, Oracle Modern Cloud Day, Oslo, November 21, ...
PDF
Oracle Enterprise Manager for MySQL
PPTX
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
PDF
A Cloud Journey - Move to the Oracle Cloud
PPTX
A Step by Step Introduction to the MySQL Document Store
PPTX
Robust easy affordable disaster recovery for MySQL Data
PDF
5 razões estratégicas para usar MySQL
PDF
Another MySQL HA Solution for ProxySQL Users, Easy and All Integrated: MySQL ...
PDF
MySQL Enterprise Edition - Complete Guide (2019)
PDF
20191001 bkk-secret-of inno-db_clusterv1
PDF
Oracle NoSQL
Confoo 202 - MySQL Group Replication and ReplicaSet
MySQL InnoDB Cluster / ReplicaSet - Making Provisioning & Troubleshooting as ...
How to operate MySQL InnoDB Cluster with MySQL Shell
MySQL Technology Overview
MySQL 8.0 InnoDB Cluster - Easiest Tutorial
Docker Compose Setup for MySQL InnoDB Cluster
My sql8 innodb_cluster
MySQL Shell - A DevOps-engineer day with MySQL’s development and administrati...
20200613 my sql-ha-deployment
MySQL, An Open Source Ecosystem, Oracle Modern Cloud Day, Oslo, November 21, ...
Oracle Enterprise Manager for MySQL
The State of the Dolphin, MySQL Keynote at Percona Live Europe 2019, Amsterda...
A Cloud Journey - Move to the Oracle Cloud
A Step by Step Introduction to the MySQL Document Store
Robust easy affordable disaster recovery for MySQL Data
5 razões estratégicas para usar MySQL
Another MySQL HA Solution for ProxySQL Users, Easy and All Integrated: MySQL ...
MySQL Enterprise Edition - Complete Guide (2019)
20191001 bkk-secret-of inno-db_clusterv1
Oracle NoSQL
Ad

More from Miguel Araújo (15)

PDF
Routing Guidelines: Unlocking Smarter Query Routing in MySQL Architectures
PDF
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
PDF
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)
PDF
MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!
PDF
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
PDF
MySQL Shell - The Best MySQL DBA Tool
PDF
MySQL InnoDB Cluster / ReplicaSet - Tutorial
PDF
MySQL Shell: The DevOps Tool for MySQL
PDF
MySQL 8 High Availability with InnoDB Clusters
PDF
FOSDEM'18: MySQL InnoDB Cluster - MySQL HA Made Easy!
PDF
MySQL Shell - The DevOps Tool for MySQL
PDF
MySQL Proxy. A powerful, flexible MySQL toolbox.
PDF
SLQ vs NOSQL - friends or foes
PDF
Asynchronous Replication of Databases
PDF
Evaluating Data Freshness in Large Scale Replicated Databases
Routing Guidelines: Unlocking Smarter Query Routing in MySQL Architectures
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)
MySQL Shell/AdminAPI - MySQL Architectures Made Easy For All!
Deep Dive into MySQL InnoDB Cluster Read Scale-out Capabilities.pdf
MySQL Shell - The Best MySQL DBA Tool
MySQL InnoDB Cluster / ReplicaSet - Tutorial
MySQL Shell: The DevOps Tool for MySQL
MySQL 8 High Availability with InnoDB Clusters
FOSDEM'18: MySQL InnoDB Cluster - MySQL HA Made Easy!
MySQL Shell - The DevOps Tool for MySQL
MySQL Proxy. A powerful, flexible MySQL toolbox.
SLQ vs NOSQL - friends or foes
Asynchronous Replication of Databases
Evaluating Data Freshness in Large Scale Replicated Databases

Recently uploaded (20)

PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
AI in Product Development-omnex systems
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Nekopoi APK 2025 free lastest update
PPTX
history of c programming in notes for students .pptx
PDF
medical staffing services at VALiNTRY
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
System and Network Administration Chapter 2
PPTX
L1 - Introduction to python Backend.pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Understanding Forklifts - TECH EHS Solution
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Odoo POS Development Services by CandidRoot Solutions
VVF-Customer-Presentation2025-Ver1.9.pptx
AI in Product Development-omnex systems
PTS Company Brochure 2025 (1).pdf.......
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Odoo Companies in India – Driving Business Transformation.pdf
Nekopoi APK 2025 free lastest update
history of c programming in notes for students .pptx
medical staffing services at VALiNTRY
Navsoft: AI-Powered Business Solutions & Custom Software Development
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
System and Network Administration Chapter 2
L1 - Introduction to python Backend.pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Understanding Forklifts - TECH EHS Solution
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Design an Analysis of Algorithms I-SECS-1021-03
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

MySQL InnoDB Cluster: Management and Troubleshooting with MySQL Shell

  • 1. Copyright © 2019 Oracle and/or its affiliates. MySQL InnoDB Cluster Management and troubleshooting using MySQL Shell Senior Software Developer MySQL Middleware and Clients September 18, 2019 Miguel Araújo
  • 2. 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, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation. Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website at http://www.oracle.com/investor. All information in this presentation is current as of September 2019 and Oracle undertakes no duty to update any statement in light of new information or future events. Safe Harbor Copyright © 2019 Oracle and/or its affiliates.
  • 3. $ whoami Copyright © 2019 Oracle and/or its affiliates.
  • 4. Copyright © 2019 Oracle and/or its affiliates. Miguel Araújo • MySQL Developer since 2011 • AdminAPI Tech Lead @ MySQL Shell team • MySQL InnoDB Cluster evangelist • Living in Portugal • http://about.me/miguel-araujo • @M1guelAraujo
  • 5. 1. 2. 3. 4. 5. Copyright © 2019 Oracle and/or its affiliates. Introduction to InnoDB cluster Node Provisioning Monitoring Maintenance and Troubleshooting Final thoughts and resources What’s Ahead
  • 6. Introduction to InnoDB Cluster Copyright © 2019 Oracle and/or its affiliates.
  • 7. Copyright © 2019 Oracle and/or its affiliates. • MySQL Group Replication • MySQL Shell • MySQL Router InnoDB cluster “A single product – MySQL – with high availability and scaling features baked in; providing an integrated end-to-end solution that is easy to use.”
  • 8. One Product: MySQL 1 Copyright © 2019 Oracle and/or its affiliates. MySQL InnoDB Cluster Goals • All components developed and integrated together • Full stack testing
  • 9. One Product: MySQL 1 2 Copyright © 2019 Oracle and/or its affiliates. MySQL InnoDB Cluster Goals • All components developed and integrated together • Full stack testing • One client: MySQL Shell • Easy packaging • Integrated Orchestration • Homogeneous servers Easy to use!
  • 10. One Product: MySQL Flexible and Modern 1 2 3 Copyright © 2019 Oracle and/or its affiliates. MySQL InnoDB Cluster Goals • All components developed and integrated together • Full stack testing • One client: MySQL Shell • Easy packaging • Integrated Orchestration • Homogeneous servers Easy to use! • SQL and noSQL together: X Protocol • Protocol Buffers • Asynchronous API • Developer friendly
  • 11. ! Copyright © 2019 Oracle and/or its affiliates. MySQL InnoDB Cluster Goals Completely Open Source --- GPL No license required to have High Availability!
  • 12. • Interactive multi-language console interface that supports development and administration for the MySQL Server: • Supports JavaScript, Python and SQL • Interactive and batch operations (scripting) • Supports Document and Relational models (X and MySQL protocols) Copyright © 2019 Oracle and/or its affiliates. MySQL Shell
  • 13. • Exposes full Development and Administration APIs: • Scriptable “DevOps” APIS • Unified interface for developers and DBAs Copyright © 2019 Oracle and/or its affiliates. MySQL Shell
  • 14. • Creation and Management of InnoDB clusters • Available in both JavaScript and Python; and command-line • Simple and straight-forward • Flexible, powerful and secure! Copyright © 2019 Oracle and/or its affiliates. MySQL AdminAPI
  • 15. Copyright © 2019 Oracle and/or its affiliates. Creating a Cluster // Configure servers for MySQL InnoDB cluster usage mysqlsh-js> dba.configureInstance(“clusteradmin@mysql1:3306”)
  • 16. Copyright © 2019 Oracle and/or its affiliates. Creating a Cluster // Configure servers for MySQL InnoDB cluster usage mysqlsh-js> dba.configureInstance(“clusteradmin@mysql1:3306”) // Connect to target instance mysqlsh-js> c clusteradmin@mysql1:3306
  • 17. Copyright © 2019 Oracle and/or its affiliates. Creating a Cluster // Configure servers for MySQL InnoDB cluster usage mysqlsh-js> dba.configureInstance(“clusteradmin@mysql1:3306”) // Connect to target instance mysqlsh-js> c clusteradmin@mysql1:3306 // Create the cluster mysqlsh-js> var cluster = dba.createCluster(“CodeOne19”)
  • 18. Copyright © 2019 Oracle and/or its affiliates. Creating a Cluster // Configure servers for MySQL InnoDB cluster usage mysqlsh-js> dba.configureInstance(“clusteradmin@mysql1:3306”) // Connect to target instance mysqlsh-js> c clusteradmin@mysql1:3306 // Create the cluster mysqlsh-js> var cluster = dba.createCluster(“CodeOne19”) // Add instances to the cluster mysqlsh-js> cluster.addInstance(“clusteradmin@mysql2:3306”)
  • 19. • Transparent client routing between the application and the backend servers: ü Application connection failover • Native support for InnoDB clusters • Stateless Copyright © 2019 Oracle and/or its affiliates. MySQL Router
  • 20. Node Provisioning Copyright © 2019 Oracle and/or its affiliates.
  • 21. • Provisioning a server is the process of configuring and getting it ready to be used in an InnoDB cluster. • The server needs to have all clusters’ data to be able to join it • That’s typically done by: 1. Performing a backup of one of the cluster members 2. Restoring the image in the new member that wants to join Copyright © 2019 Oracle and/or its affiliates. Provisioning
  • 22. • Distributed recovery is a process that runs when a new member is added to the group and has missing transactions • A donor that can provide the missing data is automatically selected • The catch-up happens transparently and the server is synchronized with the rest of the cluster Copyright © 2019 Oracle and/or its affiliates. Distributed Recovery
  • 23. • Incremental recovery fetches only the missing data based on the GTIDs into - The cluster must be able to provide all the missing data • Relies on the classic Asynchronous Replication • Also provides group transactional information Copyright © 2019 Oracle and/or its affiliates. Incremental Recovery to Provision
  • 24. Copyright © 2019 Oracle and/or its affiliates. Incremental Recovery to Provision Some data is inserted in the DB
  • 25. Copyright © 2019 Oracle and/or its affiliates. Incremental Recovery to Provision The data modifications are stored in the binlog. And the transactions are delivered to every cluster member
  • 26. Copyright © 2019 Oracle and/or its affiliates. Incremental Recovery to Provision Group Replication is eventually synchronous. Guarantees that transactions are delivered to all members in the same order.
  • 27. Copyright © 2019 Oracle and/or its affiliates. Incremental Recovery to Provision The binlogs keep track of all data modifications.
  • 28. Incremental Recovery to Provision A new member wants to join the cluster Copyright © 2019 Oracle and/or its affiliates.
  • 29. Incremental Recovery to Provision A new member wants to join the cluster The missing data is fetched and the server synchronizes with the rest of the cluster Copyright © 2019 Oracle and/or its affiliates.
  • 30. Incremental Recovery to Provision A donor is automatically selected to fetch the missing data from, using plain Asynchronous Replication Copyright © 2019 Oracle and/or its affiliates.
  • 31. Incremental Recovery to Provision A donor is automatically selected to fetch the missing data from, using plain Asynchronous Replication Copyright © 2019 Oracle and/or its affiliates.
  • 32. Incremental Recovery to Provision A donor is automatically selected to fetch the missing data from, using plain Asynchronous Replication Copyright © 2019 Oracle and/or its affiliates.
  • 33. Incremental Recovery to Provision The instance successfully joins the cluster! Copyright © 2019 Oracle and/or its affiliates.
  • 34. Copyright © 2019 Oracle and/or its affiliates. Incremental Recovery to Provision !May take a considerable amount of time
  • 35. • But what if the cluster members lost all binary logs? • Or even... Just some data is missing that is not available on any binary log • What about space constraints? Copyright © 2019 Oracle and/or its affiliates. Incremental Recovery to Provision ?
  • 36. Incremental Recovery to Provision Some binary logs were purged. And the instance has no data yet. Copyright © 2019 Oracle and/or its affiliates.
  • 37. Incremental Recovery to Provision Some binary logs were purged. And the instance has no data yet. Failed attempt to join the cluster! Copyright © 2019 Oracle and/or its affiliates.
  • 38. • Performs physical snapshots of databases ü Really fast! • Transfers the snapshots over the network to provision servers ü Can be used remotely! • Replaces all the server data Copyright © 2019 Oracle and/or its affiliates. MySQL Clone Plugin !Available since 8.0.17
  • 39. Distributed recovery = initial provisioning + online catch-up • Seamless and automated solution for provisioning • No external tools or scripting required Copyright © 2019 Oracle and/or its affiliates. Clone to Provision
  • 40. Common issues easily solved with clone: • Very large datasets • Incomplete binary log history • Re-provision diverged instances Copyright © 2019 Oracle and/or its affiliates. Clone to Provision
  • 41. Clone to Provision Some binary logs were purged. And the instance has no data yet. Copyright © 2019 Oracle and/or its affiliates.
  • 42. Clone to Provision Some binary logs were purged. And the instance has no data yet. Clone required ! Copyright © 2019 Oracle and/or its affiliates.
  • 43. Clone to Provision A donor is automatically selected. And a full snapshot of its data is performed. Copyright © 2019 Oracle and/or its affiliates.
  • 44. Clone to Provision The instance successfully joins the cluster! Copyright © 2019 Oracle and/or its affiliates.
  • 45. Clone-based Recovery Demo Copyright © 2019 Oracle and/or its affiliates.
  • 46. Copyright © 2019 Oracle and/or its affiliates.
  • 47. Copyright © 2019 Oracle and/or its affiliates. • Incremental recovery is possible if: • At least 1 member can provide the joiner with the same set of transactions it has processed. • The joiner does not have errants transactions • Incremental recovery appropriate if: • No purged transactions • Joiner does not have an empty GTID set • GTID support and binary logs were always enabled Which recovery shall be used?
  • 48. Copyright © 2019 Oracle and/or its affiliates. AdminAPI Guidance Incremental recovery safe and appropriate:
  • 49. Copyright © 2019 Oracle and/or its affiliates. AdminAPI Guidance Clone-based recovery required:
  • 50. • Built-in support for full instance provisioning! • AdminAPI transparently: ü Setups the cluster to be ready for clone usage (plugin setup, user grants, etc.) ü Detects every possible scenario and guides the user accordingly to the best provisioning method ü Still allowing manual intervention to choose the provisioning method Copyright © 2019 Oracle and/or its affiliates. InnoDB cluster 8.0.17+
  • 51. • Binlogs can now be purged frequently! • But (at least) one cluster member should keep them for 2 days (minimum) for recovery. Copyright © 2019 Oracle and/or its affiliates. Just a tip! !
  • 52. Monitoring Copyright © 2019 Oracle and/or its affiliates.
  • 53. Copyright © 2019 Oracle and/or its affiliates. Node Provisioning Monitoring The AdminAPI was extended to provide monitoring features: • For any type of recovery method: clone or incremental • Real-time progress information • Detailed stage status • Asynchronous progress information from cluster.status()
  • 54. Copyright © 2019 Oracle and/or its affiliates. Node Provisioning Monitoring ü Clone-based recovery real-time progress info
  • 55. Copyright © 2019 Oracle and/or its affiliates. Node Provisioning Monitoring ü Clone-based recovery progress from cluster.status()
  • 56. Copyright © 2019 Oracle and/or its affiliates. Cluster Status Provides general information about the cluster and each member status mysqlsh-js> cluster.status()
  • 57. Copyright © 2019 Oracle and/or its affiliates. Extended Status Provides information of: • GR Group name • Group protocol version • Cluster members UUIDs • Cluster members roles and states • Read-only settings mysqlsh-js> cluster.status({extended: 1})
  • 58. Copyright © 2019 Oracle and/or its affiliates. Extended Status Provides information of: • Transactions processed by connection and applier mysqlsh-js> cluster.status({extended: 2})
  • 59. Copyright © 2019 Oracle and/or its affiliates. Extended Status Provides information of: • Detailed stats about the replication machinery of each cluster member mysqlsh-js> cluster.status({extended: 3})
  • 60. • Built-in reports • User-defined reports Copyright © 2019 Oracle and/or its affiliates. Reporting Framework // displays the result one time mysqlsh-js> show query <query> // executes repeatedly with screen refresh mysqlsh-js> watch query <query> // registers a user-defined-report mysqlsh-js> shell.registerReport(<UDR>)
  • 61. • Built-in reports • User-defined reports Copyright © 2019 Oracle and/or its affiliates. Reporting Framework // displays the result one time mysqlsh-js> show query <query> // executes repeatedly with screen refresh mysqlsh-js> watch query <query> // registers a user-defined-report mysqlsh-js> shell.registerReport(<UDR>) ! Monitor P_S to check which secondary instance is slower
  • 62. Maintenance and Troubleshooting Copyright © 2019 Oracle and/or its affiliates.
  • 63. Copyright © 2019 Oracle and/or its affiliates. Maintenance Monitoring a cluster can provide info/hints about: • Faulty networks • High latencies • Server failures • ...
  • 64. Copyright © 2019 Oracle and/or its affiliates. Cluster Options Provides information of: • The cluster global configuration options • Each cluster member settings mysqlsh-js> cluster.options()
  • 65. expelTimeout Avoid frequent member expels due to faulty network memberWeight Next primary in line when a failover happens exitStateAction Action when a server is expelled from the cluster: abort, read-only, offline-mode autoRejoinTries Rejoin attempts after an eviction Copyright © 2019 Oracle and/or its affiliates. Cluster options
  • 66. Copyright © 2019 Oracle and/or its affiliates. Changing Cluster Options // Change the member-weight value of a member mysqlsh-js> cluster.setInstanceOption(“mysql2:3307”, “memberWeight”, 75)
  • 67. Copyright © 2019 Oracle and/or its affiliates. Changing Cluster Options // Change the member-weight value of a member mysqlsh-js> cluster.setInstanceOption(“mysql2:3307”, “memberWeight”, 75) // Change the exit-state-action of a member mysqlsh-js> cluster.setInstanceOption(“mysql3”, “exitStateAction”, “ABORT_SERVER”)
  • 68. Copyright © 2019 Oracle and/or its affiliates. Changing Cluster Options // Change the member-weight value of a member mysqlsh-js> cluster.setInstanceOption(“mysql2:3307”, “memberWeight”, 75) // Change the exit-state-action of a member mysqlsh-js> cluster.setInstanceOption(“mysql3”, “exitStateAction”, “ABORT_SERVER”) // Change the expel-timeout of the cluster mysqlsh-js> cluster.setOption(“expelTimeout”, 60)
  • 69. Copyright © 2019 Oracle and/or its affiliates. Consistency Levels • InnoDB cluster operates, by default, in single-primary mode: • Apps and users write to the primary instance • What guarantees do we have that: • We always read the most up-to-date data? • We do not read stale data of an evicted server? • Dirty reads do not happen? ?
  • 70. Copyright © 2019 Oracle and/or its affiliates. Consistency Levels // Create a cluster with “BEFORE” consistency level // Ensures that reads always read the most up-to-data data mysqlsh-js> cluster = dba.createCluster(“CodeOne19”, {consistency: “BEFORE”})
  • 71. Copyright © 2019 Oracle and/or its affiliates. Consistency Levels // Create a cluster with “BEFORE” consistency level // Ensures that reads always read the most up-to-data data mysqlsh-js> cluster = dba.createCluster(“CodeOne19”, {consistency: “BEFORE”}) // Change the consistency level at any time // AFTER ensures that there are no dirty reads mysqlsh-js> cluster.setOption(“consistency”, “AFTER”)
  • 72. Copyright © 2019 Oracle and/or its affiliates. Topology Modes • The cluster’s primary instance can be changed, immediately:
  • 73. Copyright © 2019 Oracle and/or its affiliates. Topology Modes • The topology-mode can be changed live: // Change the topology-mode to multi-primary mysqlsh-js> cluster.switchToMultiPrimaryMode() // Change back to single-primary-mode mysqlsh-js> cluster.switchToSinglePrimaryMode()
  • 74. Copyright © 2019 Oracle and/or its affiliates. Security • Internal recovery accounts have randomly secure generated passwords • But security policies may enforce passwords lifetime ü Support to reset a cluster’s recovery accounts credentials added // Reset the recovery accounts credentials mysqlsh-js> cluster.resetRecoveryAccountsPassword() Available in 8.0.18
  • 75. “Anything that can go wrong will go wrong.” Copyright © 2019 Oracle and/or its affiliates. Troubleshooting
  • 76. “Anything that can go wrong will go wrong.” Copyright © 2019 Oracle and/or its affiliates. Troubleshooting • Shell’s interactive behavior provides the users with valuable information, by default. • But sometimes more information is needed for troubleshooting...
  • 77. Copyright © 2019 Oracle and/or its affiliates. Logging Logging levels: • 1: none • 2: internal • 3: error • 4: warning • 5: info • 6, 7, 8: debug $ mysqlsh –-log-level=8
  • 78. Copyright © 2019 Oracle and/or its affiliates. Logging Verbose output level: • [1, 4] • Enables diagnostic messages output $ mysqlsh –-verbose=4
  • 79. Copyright © 2019 Oracle and/or its affiliates. Logging Log AdminAPI SQL: • 0: no logging • 1: log all queries except SELECT and SHOW • 2: log all queries $ mysqlsh –-dba-log-sql=2 Available in 8.0.18
  • 80. • InnoDB cluster is THE built-in HA solution for MySQL • MySQL Clone Plugin pushed InnoDB cluster to a whole new level of usability! • InnoDB Cluster features built-in support for full instance provisioning • MySQL Shell is the unified interface for developers and DBAs and the frontend manager for InnoDB cluster Final Thoughts Copyright © 2019 Oracle and/or its affiliates.
  • 81. Resources Copyright © 2019 Oracle and/or its affiliates. • https://dev.mysql.com/doc/refman/8.0/en/mysql-innodb- cluster-userguide.html (InnoDB cluster userguide) https://dev.mysql.com/doc/dev/mysqlsh-api-javascript/8.0/ (Shell APIs JS Ref manual) https://dev.mysql.com/doc/dev/mysqlsh-api-python/8.0/ (Shell APIs Python Ref manual) • https://mysqlhighavailability.com (Blogging) • http://mysqlserverteam.com/ (Blogging) • https://mysqlcommunity.slack.com (Community Slack)
  • 82. Thank you! Copyright © 2019 Oracle and/or its affiliates.
  • 83. • MySQL Shell: The Best DBA Tool? How to Use MySQL Shell as a Framework for DBAs [DEV2056] • What’s New in MySQL Optimizer and Executor? [DEV2077] • MySQL Connector/J 8.0 Feature Review and How to Upgrade from Connector/J 5.1 [DEV6221] • MySQL 8.0 Enterprise Backup [DEV4110] • Group Replication: How I Stopped Worrying About Consistency and Focused on Building Apps [DEV3016] MOAR MySQL Copyright © 2019 Oracle and/or its affiliates.
  • 84. Session Survey Help us make the content even better. Please complete the session survey in the Mobile App. Copyright © 2019 Oracle and/or its affiliates.
  • 85. The preceding 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, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation. Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website at http://www.oracle.com/investor. All information in this presentation is current as of September 2019 and Oracle undertakes no duty to update any statement in light of new information or future events. Safe Harbor Copyright © 2019 Oracle and/or its affiliates.