Skip to main content
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Technology Overview
Keith Hollman
MySQL Principal Sales Consultant EMEA
keith.hollman@oracle.com
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
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.
2
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Agenda
1
2
3
4
MySQL 8.0
MySQL Enterprise Edition
MySQL Cluster
Oracle MySQL Support
3
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Best Choice for Next Generation Web & Cloud Applications
World’s Most Popular open
Source Database
Leading Database for Web
Applications
#1 Database in the Cloud
Integrated with Hadoop in
Big Data Platforms
Strong MySQL Momentum
#2 Most Popular DBMS * #1 Linux Career IT skill **
* Based on the DB Engine Ranking in Aug 2019 ** Source: Linux Career IT Skills Watch update July 2019
4
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Powers:
cloud social
eCommerce Finance
Oracle Confidential – Internal/Restricted/Highly Restricted 5
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Innovation: 5.7 -> 8.0
- 3x Better Performance
- Replication Enhancements
- Optimizer Cost Model
- JSON Support
- Improved Security
- Sys & Performance Schema
- GIS
MySQL 5.7
MySQL InnoDB Cluster
- MySQL Group Replication
- MySQL Router
- MySQL Shell
MySQL 8.0
- 2x Better Performance
- NoSQL Document Store
- JSON
- CTEs
- Window Functions
- Data Dictionary
- InnoDB
- Replication
- Roles
- Unicode
- GIS
2 Years in Development
400+ Worklogs
5000+ Bugs Fixed
500 New Tests
GA
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL 8.0: One Giant Leap for SQL
“This is a landmark release as MySQL
eventually evolved beyond SQL-92
and the purely relational dogma.
Among a few other standard SQL
features, MySQL now supports window
functions (over) and common table
expressions (with). Without a doubt,
these are the two most important post-
SQL-92 features.”
https://modern-sql.com/blog/2019-04/mysql-8.0
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
The Versions
5.1 5.5 5.6 5.7 8.0
8
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Scalable &Stable
Better handling of high
contention, improved
security, and minimizing
downtime
Data Driven
Optimizing services with real
time data analysis
Developer First
Hybrid data model and data
access APIs for flexibility for
developers
Mobile Friendly
Ready for location based
services. Handling Emoji
and Unicode characters
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | 9
24x7at Scale
MySQL 8.0: Enables Modern Web Applications
9
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL
Master/Slave
Replication
Master/Slave with
Automated
Failover
DRBD
OS or VM
vendor
active/passive
solutions
MySQL Group
Replication
High Availability: Common MySQL Solutions
9 9 . 9 9 9 % Continuous
Availability
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Replication Topologies
11
Multi-source
5.7
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
• Multi-Source Replication
– Consolidate updates from multiple
Masters into one Slave
• Consolidated view of all shards
• More flexible topologies
• Centralized point for backups
– Compatible with Semi-Sync Replication
& enhanced MTS
• Performance Schema tables for
monitoring slave
• Online Operations: Dynamic
Replication Filters, switch master
MySQL Multi Source Replication
Binlog
Master 1
Binlog
Master 2
…
…
Binlog
Master N
IO 1
Relay 1
Coordinator
W1 W2 … WX
IO 2
Relay 2
Coordinator
W1 W2 … WX
…
…
Coordinator
W1 W2 … WX
IO N
Relay N
Coordinator
W1 W2 … WX
Slave
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
• Asynchronous
– MySQL Default
– In parallel: Master acks
to app and sends
transaction to slave
• Fast
• Risk of lost changes if
master dies
• Semi-Synchronous
– MySQL 5.5+ - Enhanced
in MySQL 5.7
– Serially: Master waits
for change to be
received by slave then
In parallel ack to app
and apply changes on
slave
• Intermediate latency
• Lossless (MySQL 5.7)
• Synchronous
– Only available with
MySQL Cluster
– Serially: Master waits
for change to be
applied on all slaves
before ack to app
• Higher latency
• If Active/Active, best
suited to small
transactions
• Lossless
Asynchronous vs. Synchronous Replication
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
InnoDB Cluster
14
App Servers with
MySQL Router
MySQL Group Replication
MySQL Shell
Setup, Manage,
Orchestrate
“High Availability becomes a core
first class feature of MySQL!”
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
• One Product: MySQL
– All components created together
– Tested together
– Packaged together
• Easy to Use
– One client: MySQL Shell
– Easy packaging
– Integrated orchestration
– Homogenous servers
• Flexible and Modern
– SQL and NoSQL together
– Protocol Buffers
– Developer friendly
• Support Read/Write Scale Out
– Sharded clusters
– Federated system of N replica sets
– Each replica set manages a shard
MySQL InnoDB Cluster: Goals
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Shell: DBA Admin API
• The global variable 'dba' is used to access the
MySQL AdminAPI
• mysql-js> dba.help()
• Perform DBA operations
– Manage MySQL InnoDB clusters
• Create clusters
• Validate MySQL instances
• Configure MySQL instances
• Get cluster info
• Modify clusters
• and much more ...
App Servers with
MySQL Router
MySQL Group Replication
MySQL Shell
Setup, Manage,
Orchestrate
16
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Router: Client Routing and HA
• Native support for InnoDB clusters
– Understands Group Replication topology
– Utilizes metadata schema stored on each member
• Bootstraps itself and sets up client routing for the InnoDB cluster
• Allows for intelligent client routing into the InnoDB cluster
– Supports multi-master and single primary modes
• Core improvements
– Built-in keyring for easy and secure password management
17
App Servers with
MySQL Router
MySQL Group Replication
MySQL Shell
Setup, Manage,
Orchestrate
”MySQL Router 2.1, with the new metadata_cache plugin, provides
transparent client connection routing and failover into your InnoDB clusters!”
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Group Replication: Database HA
• Group Replication library
– Implementation of Replicated Database State Machine
• MySQL GCS is based on our home-grown Paxos implementation
– Provides virtually synchronous replication for MySQL 5.7+
• Guarantees eventual consistency
– Automates operations
• Conflict detection and resolution
• Failure detection, fail-over, recovery
• Group membership management and reconfiguration
“Multi-master update anywhere replication plugin for MySQL with
built-in conflict detection and resolution, automatic distributed
recovery, and group membership.”
18
App Servers with
MySQL Router
MySQL Group Replication
MySQL Shell
Setup, Manage,
Orchestrate
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Workbench 8.0
• Performance Dashboard
– Performance Schema Reports & Graphs
• Visual Explain
• GIS Viewer
• Migration
– New: Microsoft Access
– Microsoft SQL Server, Sybase,
PostgreSQL, SQLite
19
• New Easy to Use Wizards for
– Fast Data Migration
– Table<->File Data Import/Export (like Excel)
– SSL Certificate Creation
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL on Windows
• MySQL Installer for Windows
• MySQL Workbench
• MySQL Migration Wizard
– Microsoft SQL Server
– Microsoft Access
• MySQL for Visual Studio
• MySQL for Excel
• MySQL Notifier
• MySQL Connector/.Net
• MySQL Connector/ODBC
20
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
35 / 112
MySQL Document Store
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
A solution for all
34 / 112
Developers:
[✔] Schemaless or/and Schema
[✔] Rapid Prototyping/Simpler APIs
[✔] Document Model
[✔] Transactions
Operations:
[✔] Performance Management/Visibility
[✔] Robust Replication, Backup, Restore
[✔] Comprehensive Tooling Ecosystem
[✔] Simpler application schema upgrades
Business Owner:
[✔] Don’t lose my data = ACID transactions
[✔] Capture all my data = Extensible/Schemaless
[✔] Products On Schedule/Time to Market = Rapid Development
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Document Store: Architecture
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Shell 8.0.11+
MySQL
Server 5.7
MySQL 8.0
Upgrade Checker
Prompt Themes
Auto Completion
&
Command History
MySQL
Server 8.0
Document Store
X DevAPI
InnoDB ClusterSQL CLI
Output Formats
(Table, JSON, Tabbed)
Batch Execution
JavaScript
Python
SQL
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Why MySQL Enterprise Edition?
25
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Replication Lossless Semi-Synchronous
GTIDs
Crash Safe
Time Delayed
Multi-threaded
Multi-Source
InnoDB Improved Throughput
Default Online DDL
Full Text Search
NoSQL Access
M y S Q L U t i l i t i e s
EXPLAIN
O p t i m i z e r : F a s t e r
Q u e r y E x e c u t i o n a n d
B e t t e r D i a g n o s t i c s
G I S
Performance
Schema
Security Partitioning
26
Why MySQL Enterprise Edition?
All the Database Features You Love
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Management ToolsAdvanced Features Support
• Scalability
• High Availability
• Authentication
• Audit
• Encryption + TDE
• Firewall
•Monitoring
•Backup
•Development
•Administration
•Migration
• Technical Support
• Consultative Support
• Oracle Certifications
MySQL Enterprise Edition
27
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL
Community & Enterprise
• MySQL Server software
• Standard functionalities: Partitioning, Replication, High Availability
• Storage Engines
• Utilities, CLI’s, GUI’s
• SQL & NoSQL
• Official Documentation, Planet.mysql.com & Bugs.mysql.com
• Connectors / API’s
• Connector/Net, Connector/J, Connector/Python, Connector/ODBC, Connector/C
(libmysql), Connector/C++, MySQL native driver for PHP (mysqlnd), libmysqld (mysql
embedded).
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Introduction
Software
• Community www.mysql.com/downloads Opensource, GPLv2.
• Enterprise edelivery.oracle.com product pack “MySQL Database”
• Enterprise Standard, Enterprise, Carrier Grade Edition.
• Embedded Classic, Standard, Enterprise, Carrier Grade Edition.
• Install packages rpm, msi.
• Compressed tarballs / zips tar.gz, MSWin zip “no installer”.
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Monitor
30
• Start monitoring MySQL in 10 minutes
• Real-time MySQL performance and
availability monitoring
• Visually find & fix problem queries
• Disk monitoring for capacity planning
• Cloud friendly architecture
– No agents required
• Optional agent option provides
advanced Host/OS monitoring
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Cloud-friendly Architecture
31
MySQL Enterprise
Dashboard
Service Manager
Repository
HTTPS
DataCenterPublicCloudPrivateCloud
• MySQL
– Performance Schema provides Query Analyzer data
– Provides all MySQL related metrics
• Service Manager
– Collects all MySQL related metrics
– Collects all OS/Host related metrics
• Repository
– Stores all historical data
• Agent (optional)
– Only required for OS/Host metrics
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Enterprise Monitor Dashboard
32
"The MySQL Enterprise Monitor is an absolute
must for any DBA who takes his work seriously.”
- Adrian Baumann, System Specialist
Federal Office of Information Technology &
Telecommunications
• SLA monitoring
• Real-time performance monitoring
• Alerts & notifications
• MySQL best practice advisors
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Enterprise Query Analyzer
33
• Real-time query performance
• Visual correlation graphs
• Find & fix expensive queries
• Detailed query statistics
• Query Response Time index (QRTi)
– “Quality of Service” (QoS) measurement
for each query
– QoS measurement for a server, group, or
every instance
– Single metric for query performance
“With the MySQL Query Analyzer, we were able to identify
and analyze problematic SQL code, and triple our database
performance. More importantly, we were able to
accomplish this in three days, rather than taking weeks.”
Keith Souhrada
Software Development Engineer
Big Fish Games
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Enterprise Replication Monitor
34
• Auto-discovers replication topology
• Master/Slave performance
monitoring
• Replication advisor
• Best practice replication advice
"I use the MySQL Enterprise Monitor
every day to monitor and keep tabs on
our MySQL databases. Quick one stop
shopping for keeping tabs on them.”
-Wes Homer,
Sr System and Network Administrator
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Best Practice Advisors
35
• Enforce MySQL best practices
• 14 Advisor categories
• 250+ Advisors
• Threshold-based alerts
– Exponential moving averages
– Rate change detection
• Expert problem resolution advice
"I definitely recommend the MySQL Enterprise
Monitor to DBAs who don't have a ton of MySQL
experience. It makes monitoring MySQL security,
performance and availability very easy to
understand and to act on.”
Sandi Barr
Sr. Software Engineer
Schneider Electric
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Backup
• Online, non-locking backup and recovery
– Complete MySQL instance backup (data and config)
– Partial backup and restore
• Direct Cloud storage backups (S3, etc.)
• Incremental backups
• Point-in-time recovery
• Advanced compressed and encryption
• Backup to tape (SBT)
• Backup validation
• Optimistic backups
• Cross-Platform (Windows, Linux, Unix)
36
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Monitor + Backup
37
• Monitor backup results
• Monitor backup performance
• Ensure backups are up to date
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Workbench EE
• Database migrations
– From Microsoft SQL Server,
PostgreSQL, Sybase ASE, Sybase SQL
Anywhere, SQLite, Microsoft Access,
and more
• Manage migration projects
• Source and target selection
• Object migration
• Data migration
• MySQL version upgrades
38
New! Database Migration Wizard
for SQL Server, Sybase, SQLite, SQL Anywhere & PostgreSQL
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Workbench EE + Audit
• Fast and easy access to Audit
events
• Indexed searches
– Event type
– User account
– Date range
– Text match
39
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Workbench EE + Backup
• Create and manage backup jobs
– Create new backup jobs
– Schedule backup jobs to run
automatically
– View current backup jobs
– View recent backup activity
• Restore backups
– Full, partial, incremental …
40
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Oracle Enterprise Manager for MySQL
41
Performance
Security
Availability
• Availability monitoring
• Performance monitoring
• Configuration monitoring
• All available metrics collected
– Allowing for custom threshold
based incident reports
• MySQL auto-detection
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
• Provides 20x better scalability
• Plugin improves sustained
performance as user connections
grow
MySQL Enterprise Scalability : Thread Pool
42
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Scalability : Thread Pool
43
Performance
Security
Availability
Internal Clients
Connection Execution Threads
External Clients
Thread Pool
Thread Group 1
Threads 1 - 4096
Thread Group 2
Threads 4097 - 8193
Thread Group N
Threads 8194 - N
Thread Group 1
Thread Group 2
Thread Group N
• Contains configurable number of thread groups (default = 16)
– Each group manages up to 4096 re-usable threads
• Each connection assigned to thread group via round robin
• Threads are prioritized and statements queued
– Improves scalability as concurrent connections grow, protection from DOS attacks
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Security Architecture
Authentication,
Encryption, Masking
Monitoring
Firewall
& Auditing
High Availability
& Backup
• Assess
– MySQL Enterprise Monitor
• Prevent
– MySQL Enterprise Authentication
– MySQL Enterprise Firewall
– MySQL Enterprise Encryption
– New! MySQL Enterprise Data Masking
• Detect
– MySQL Enterprise Audit
• Recover
– MySQL Enterprise HA
– MySQL Enterprise Backup
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Edition
• New! MySQL Enterprise Masking
– De-identify, Anonymize Sensitive Data
• MySQL Enterprise TDE
– AES 256 encryption, Key Management
• MySQL Enterprise Authentication
– External Authentication Modules
• MySQL Enterprise Encryption
– Public/Private Key Cryptography, Asymmetric Encryption
• MySQL Enterprise Firewall
– Block SQL Injection Attacks, Intrusion Detection
• MySQL Enterprise Audit
– User Activity Auditing, Regulatory Compliance
45
• MySQL Enterprise Monitor
– Monitor Changes in Database Configurations, Users
Permissions, Database Schema, Passwords
• MySQL Enterprise Backup
– Securing Backups, AES 256 encryption
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Encryption
• MySQL encryption libraries
– Symmetric encryption AES256
– Public-key / asymmetric cryptography
• Key management
– Generate public and private keys
– Key exchange methods: RSA, DSA, DH
• Sign and verify data
– Cryptographic hashing for digital signing, verification, & validation
46
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Firewall
• Real Time Protection
– Queries analyzed and matched against White List
• Blocks SQL Injection Attacks
– Positive Security Model
• Block Suspicious Traffic
– Out of Policy Transactions detected & blocked
• Learns White List
– Automated creation of approved list of SQL command patterns on a per user basis
• Transparent
– No changes to application required
47
MySQL Enterprise Firewall monitoring
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Firewall
• SQL Injection Protection with Positive Security Model
48
• Out of policy database transactions detected and blocked
• Logging & Analysis
Select *.* from employee where id=22
Select *.* from employee where id=22 or 1=1
Block & Log✖
Allow & Log✔
White ListApplications
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Audit
• Out-of-the-box logging of connections, logins, and query
• User defined policies for filtering, and log rotation
• Dynamically enabled, disabled: no server restart
• XML-based audit stream per Oracle Audit Vault spec
49
Adds regulatory compliance to
MySQL applications (HIPAA,
Sarbanes-Oxley, PCI, etc.)
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Audit
50
2. User Joe connects and runs a query
1. DBA enables Audit plugin
3. Joe’s connection & query logged
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Authentication
51
• PAM (Pluggable Authentication Modules)
– Access external authentication methods
– Standard interface (Unix, LDAP, Kerberos, others)
– Proxied and non-proxied users
• Windows
– Access native Windows services
– Authenticate users already logged into Windows
(Windows Active Directory)
• Pluggable Authentication API Integrates MySQL with existing
security infrastructures and SOPs
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Data Masking
52
De-identify, Anonymize Sensitive Data
ID Last First SSN
1111 Smith John 555-12-5555
1112 Templeton Richard 444-12-4444
ID Last First SSN
2874 Smith John XXX-XX-
5555
3281 Templeton Richard XXX-XX-
4444
Employee Table
Masked View
• Data Masking
– String Masking, Dictionary Replacement
• Random Data Generators
– Range based, Payment Card, Email, SSN
• Meet Regulatory Requirements
– Including GDPR, HIPAA and PCI DSS
• Improve Production, Dev, Test, Analytics Environments
– While Protecting Confidential Data
New!
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Docker’s public registry
• MySQL Community is available in official Docker's public registry
– https://hub.docker.com/
• a cloud-based registry service which allows you to
– link to code repositories
– build your images and test them
– stores manually pushed images
– deploy images to your hosts
• 100,000+ free apps, public and private registries
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise in Docker Store
• A store where find
community and
commercial software
“Build, Ship, and Run your
modern applications with
Docker and
MySQL Enterprise!”
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Oracle Container Registry
• The Oracle Container Registry provides Oracle
tested and approved Docker and other container
images for Oracle products.
– https://container-registry.oracle.com
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Oracle MySQL Operator for Kubernetes (lab release)
• a Kubernetes controller that can be installed into any existing Kubernetes
cluster
• it will enable users to create and manage production-ready MySQL clusters
using a simple declarative
configuration format
• The project started as a way to help
internal teams get MySQL running
in Kubernetes more easily,
but it quickly become clear that many
other people might be facing
similar issues
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster
Oracle Confidential – Internal/Restricted/Highly Restricted 57
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster Overview
•Auto-Sharding, Multi-Master
•ACID Compliant, OLTP + Real-Time Analytics
HIGH SCALE, READS + WRITES
•Shared nothing, no Single Point of Failure
•Self Healing + On-Line Operations
99.999% AVAILABILITY
•In-Memory Optimization + Disk-Data
•Predictable Low-Latency, Bounded Access Time
REAL-TIME
•Key/Value + Complex, Relational Queries
•SQL + Memcached + JavaScript + Java + HTTP/REST & C++
SQL + NoSQL
•Open Source + Commercial Editions
•Commodity hardware + Management, Monitoring Tools
LOW TCO
58
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Who’s Using MySQL Cluster?
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster Architecture
MySQL Cluster Data Nodes
Clients
Application Layer
Data Layer
Management
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster Scaling
MySQL Cluster Data Nodes
Clients
Application Layer
Data Layer
Management
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster High Availability
MySQL Cluster Data Nodes
Clients
Application Layer
Management
Data Layer
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Multi-Data Center Availability
Geographic Replication
• DR and Data Locality
• Replicate complete clusters across
data centers
– Fully active/active
– No passive resources
• Split individual clusters across data
centers
– Synchronous replication & auto-failover
between sites
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
On-line Scheduled Maintenance
Scale
Upgrade
Backup
Evolve
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster: SQL & NoSQL Flexibility
Mix
&
Match
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
1.2 Billion UPDATEs per Minute
• NoSQL C++ API,
flexaSynch benchmark
• 30 x Intel E5-2600 Intel
Servers, 2 socket, 64GB
• ACID Transactions, with
Synchronous Replication
0
5
10
15
20
25
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
MillionsofUPDATEsperSecond
MySQL Cluster Data Nodes
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Creating & running your first Cluster by Hand
Download &
Extract
• edelivery.oracle.com
• www.mysql.com
• dev.mysql.com
Configure
• Cluster-wide
“config.ini”
• Per-mysqld “my.cnf”
Start processes
• Management Nodes
• Data Nodes
• MySQL Servers
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
When to Consider MySQL Cluster
• Scalability demands
– Sharding for write performance?
• Latency demands
– Cost of each millisecond?
• Uptime requirements
– Cost per minute of downtime?
– Failure versus maintenance?
• Application agility
– Developer languages and frameworks?
– SQL or NoSQL?
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
General Usage Considerations
• MySQL Cluster is designed for
– Short transactions
– Many parallel transactions
• Utilize simple access patterns for high running transactions
– Use efficient scans and batching interfaces
– AQL gives huge performance in JOIN operations
• Storage engine configurable for each table…InnoDB or NDB
MySQL Cluster Evaluation Guide
http://mysql.com/why-mysql/white-papers/mysql_cluster_eval_guide.php
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL
Cluster
CGE
MySQL
Cluster
Manager
MySQL
Enterprise
Scalability
MySQL
Enterprise
Audit
MySQL
Enterprise
Security
Oracle
Premier
Lifetime
Support
Oracle
Product
Certifications
MySQL
Enterprise
Mornitor
MySQL
Workbench
20/06/2019 Copyright 2019, oracle and/or its affiliates. All rights reserved 72
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Enhancing DevOps Agility,
Reducing Downtime
Automated Management
• Start / Stop node or
whole cluster
• On-Line Scaling
• On-Line Reconfiguration
• On-Line Upgrades
• On-Line Backup &
Restore
• Import Running Cluster
Self-Healing
• Node monitoring
• Auto-recovery extended
to SQL + mgmt nodes
HA Operations
• Cluster-wide
configuration
consistency
• Persistent
configurations
• HA Agents
20/06/2019 Copyright 2019, oracle and/or its affiliates. All rights reserved 73
Copyright © 2019, Oracle and/or its affiliates. All rights reserved. | Copyright 2019, oracle and/or its affiliates. All rights reserved
Without MySQL Cluster Manager
• 1 x preliminary check of cluster state
• 8 x ssh commands per server
• 8 x per-process stop commands
• 4 x scp of config files (2 x mgmd & 2 x mysqld)
• 8 x per-process start commands
• 8 x checks for started and re-joined processes
• 8 x process completion verifications
• 1 x verify completion of the whole cluster.
• Excludes manual editing of each configuration file.
• Total: 46 commands
– 2.5 hours of attended operation
With MySQL Cluster Manager
mcm> upgrade cluster
--package=7.6 mycluster;
• Total: 1 Command -
– Unattended Operation
Software Upgrade – example of benefits of MCM?
9th April 2019 74
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Technical Support &
MySQL Enterprise Oracle Certifications
75
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Support
• Largest MySQL engineering and support organization
• Backed by the MySQL developers
• World-class support, in 29 languages
• Hot fixes & maintenance releases
• 24x7x365
• Unlimited incidents
• Consultative support
• Global scale and reach
Get immediate help for any MySQL
issue, plus expert advice
76
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Support
• Oracle Lifetime Support Policies definitions
http://www.oracle.com/us/support/lifetime-support/index.html
– Premier
– Extended
– Sustaining
• MySQL Product & Support dates & periods
Lifetime Support Policy: Oracle Technology Products (PDF)
  
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Support
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Consultative Support
Make the Most of your Deployments
• Remote troubleshooting
• Replication review
• Partitioning review
• Schema review
• Query review
• Performance tuning
• ...and more
79
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Work Directly with MySQL Engineering
• A direct relationship with the MySQL team
• The ability to participate in:
– Product roadmaps
– Product betas
– Customer advisory boards
• Work closely with Support Engineers
– Resolve issues faster
– Request bug and feature request escalations
80
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Oracle Certifications
• Oracle Enterprise Manager for
MySQL
• Oracle Linux (w/DRBD stack)
• Oracle VM
• Oracle Solaris
• Oracle Solaris Clustering
• Oracle Clusterware
• My Oracle Support
• Oracle Fusion Middleware
• Oracle GoldenGate
• Oracle Audit Vault
• Oracle Database Firewall
• Oracle Secure Backup
MySQL integrates into your Oracle environment
81
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
keith.hollman@oracle.com MySQLMed.wordpress.com
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
¡ GRACIAS !
Copyright © 2019 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
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, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
84
MySQL Technology Overview