mysql the state of the dolphin - jun15
TRANSCRIPT
Copyright © 2015 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.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Edward Screven & Tomas Ulin no Open World 2014
• [video] youtube.com/watch?v=fzCpd4j72jA
Oracle Chief Corporate Architect & VP of MySQL Engineering
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Best Choice for Next Generation Web & Cloud Applications
World’s Most Popular Open Source Database
Leading Open Source Database for Web
Applications
#1 Open Source Database in the Cloud
Integrated with Hadoop in Big Data Platforms
Strong MySQL Momentum
4
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Architecture Focus on Web, Cloud, Embedded
• Architecture Improvements
– Improved Modularity
– Refactoring Optimizer, Parser, Runtime
• Web Scale Performance & Scalability
– Optimizer Cost Model
– InnoDB & Replication Improvements
• Management & Security
– Data Dictionary
– MySQL Enterprise Encryption
– Oracle Enterprise Manager for MySQL
6
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Oracle elevando o nível Um MySQL cada vez melhor, 5 anos de investimento
2x Engineering Staff
3x QA Staff
2x Support Staff
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Monitor 2.2
MySQL Cluster 7.1
MySQL Cluster Manager 1.0
MySQL Workbench 5.2
MySQL Database 5.5
MySQL Enterprise Backup 3.5
MySQL Enterprise Monitor 2.3
MySQL Cluster Manager 1.1
MySQL Enterprise Backup 3.7
Todos GA, prontos para !
Oracle Products Certifications
MySQL Windows Installer & Tools
MySQL Enterprise Security
MySQL Enterprise Scalability
MySQL Enterprise Audit
MySQL Cluster 7.2
MySQL Cluster Manager 1.3
MySQL Utilities
MySQL Workbench 6.0
Todos GA!
MySQL Database 5.6
MySQL Cluster 7.4
MySQL Enterprise Monitor 3.0
MySQL Enterprise Backup 3.12
MySQL Fabric
MySQL Workbench 6.3
MySQL Enterprise Encryption
Todos GA!
Disponível agora!
Breve histórico: 2010 - 2015
MySQL Database 5.7 RC
labs.mysql.com
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Central @ Oracle Open World 2014 Alguns cases apresentados...
• [slides] oracle.com/openworld/mysql
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Evaluated several alternatives & selected MySQL: Very low latency variations, optimized with Flash, proven technology at Facebook.
Highly valued the new MySQL 5.6 features: GTIDs & Multi-threaded Slaves improving write scalability, and leverages semi-synchronous replication, improving reliability.
New IRIS application in production handling several millions of mobile to mobile messages/sec.
“No Data Loss” system and 10X improvement in write scalability.
Implement new messaging system to improve mobile to mobile communications management.
User facing application with the following requirements:
Very high reliability
Very low response times
Consistency across devices
Challenges Solution
Benefits
Improves Mobile to Mobile Communications
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL as embedded database, and recently upgraded to MySQL 5.6 to benefit from improvements in InnoDB and the MySQL Performance Schema
Leverage MySQL Enterprise Monitor & MySQL Enterprise Backup to save time, ensure optimal performance and high availability
Delivering high performance, extremely reliable and “zero admin” patient privacy monitoring solutions to thousands of hospitals and clinics
Ability to scale to meet customers’ growing demands with few DBAs
Deliver patient privacy monitoring solutions for electronic health records
Customer Average of 700K events processed daily
Customers manage up to 1TB of new data each month, resulting in 14+TB deployments
250 Billion events under management
Compatibility with 250+ healthcare applications
Challenges Solution
Benefits
Scales with MySQL Embedded
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Database Rápida retrospectiva
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Qual versão do MySQL Database você usa? SELECT @@version;
+---------------------------------------+
| @@version |
+---------------------------------------+
| 5.6.25-enterprise-commercial-advanced |
+---------------------------------------+
1 row in set (0,00 sec)
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Até 16 CPU/cores
Sun Microsystems
MySQL 5.1 (InnoDB
Plugin)
Up to 48 CPU/cores
Oracle
MySQL 5.6
Até 32 CPU/cores
Oracle
MySQL 5.5
Até 4 CPU/cores
MySQL AB
MySQL 5.0
2008
Evolução da escalabilidade vertical do MySQL
2009 2010 2013
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Atualize! MySQL 5.6 e InnoDB
Oracle Confidential – Internal/Restricted/Highly Restricted 20
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
No Windows: MySQL Installer Next, Next... Finish!
dev.mysql.com/downloads/windows/installer
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
No Linux: repositórios YUM e APT para MySQL
• Suporta as distribuições Enterprise Linux – RedHat Enterprise/Oracle Linux
– Fedora
– Debian/Ubuntu
• Inclui os pacotes mais atuais – MySQL Database
– MySQL Workbench
– MySQL Connectors
– MySQL Utilities
Maneira simples e conveniente de instalar e atualizar produtos MySQL
Mais de 50% dos downloads para Fedora/RedHat já são
feitos do repositório
www.alastori.com.br/2014/05/tutorial-de-instalacao-do-mysql-56-e.html
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
…ou manualmente via binários pré-compilados
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Convertendo tabelas para InnoDB Mais confiabilidade e escalabilidade
• [documentação] mysql.com/doc/refman/5.6/en/converting-tables-to-innodb.html
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Database 5.7 RC Disponível para download e testes, ainda não recomendado para produção
Oracle Confidential – Internal/Restricted/Highly Restricted 25
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7 Release Candidate Available!
28
Enhanced InnoDB: faster online & bulk load operations
Replication Improvements (incl. multi-source, multi-threaded slaves...)
New Optimizer Cost Model: greater user control & better query performance
Performance Schema Improvements
MySQL SYS Schema
Performance & Scalability Manageability
2 X Faster than MySQL 5.6
Improved Security: safer initialization, setup & management
NEW! JSON Support (now in labs)
RC
And many more new features and enhancements... http://mysqlserverteam.com/the-mysql-5-7-7-release-candidate-is-available/
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
0
100,000
200,000
300,000
400,000
500,000
600,000
700,000
8 16 32 64 128 256 512 1,024
Qu
erie
s p
er S
eco
nd
Connections
MySQL 5.7: Sysbench Read Only (Point Select)
MySQL 5.7
MySQL 5.6
MySQL 5.5
MySQL 5.7: Sysbench: Read Only
Intel(R) Xeon(R) CPU E7-4860 x86_64 4 sockets x 10 cores-HT (80 CPU threads) 2.3 GHz, 512 GB RAM Oracle Linux 6.5
2x Faster than MySQL 5.6 3x Faster than MySQL 5.5
645,000 QPS
29
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: InnoDB, NoSQL With Memcached 6x Faster than MySQL 5.6 Thank you, Facebook
0
200,000
400,000
600,000
800,000
1,000,000
1,200,000
8 16 32 64 128 256 512 1,024
Qu
erie
s p
er S
eco
nd
Connections
MySQL 5.7 vs 5.6 - InnoDB & Memcached
MySQL 5.7
MySQL 5.6
1 Million QPS
30
Intel(R) Xeon(R) CPU E7-4860 x86_64 4 sockets x 10 cores-HT (80 CPU threads) 2.3 GHz, 512 GB RAM Oracle Linux 6.5
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Connections per Second 1.7x Faster than MySQL 5.6 2.5x Faster than MySQL 5.5
67,000 Connections/Sec
0
10,000
20,000
30,000
40,000
50,000
60,000
70,000
80,000
MySQL 5.5 MySQL 5.6 MySQL 5.7
Co
nn
ecti
on
s/Se
con
d
Connections Per Second
MySQL 5.5
MySQL 5.6
MySQL 5.7
31
Intel(R) Xeon(R) CPU E7-4860 x86_64 4 sockets x 10 cores-HT (80 CPU threads) 2.3 GHz, 512 GB RAM Oracle Linux 6.5
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: InnoDB
• Sempre Online – InnoDB Buffer Pool dinâmico, UNDO tablespace separado e auto-truncation,
Renomear índice, mudar varchar, mais variáveis de config. dinâmicas
• Melhorias para SSD (especialmente FusionIO) – Quando DirectFS for detectado, Doublewrite buffer desabilitado automaticamente
– “Dirty Page” Flushing paralelizado
– Maior throughput, performance e escalabilidade
• Particionamento nativo – Elimina limitações anteriores, melhora utilização de recursos, TTS para partições
individuais
Diversas Melhorias
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: InnoDB
• Improved support for cache preloading
• General Tablespace support
– Store multiple tables in user defined shared tablespaces
• Physical storage improvements
– Transparent page compression
– Support for 32K and 64K pages (use with transparent page compression for very high compression ratios)
– Configurable fill-factor (allows for improvements in storage footprint)
• Improved bulk load performance
• High priority transactions (support for MySQL Group Replication)
Diversas Melhorias
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL HA & Scaling Solutions MySQL
Replication MySQL Fabric
Oracle VM Template
Oracle Clusterware
Solaris Cluster
Windows Cluster
DRBD MySQL Cluster
App Auto-Failover ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Data Layer Auto-Failover ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Zero Data Loss MySQL 5.7 MySQL 5.7 ✔ ✔ ✔ ✔ ✔ ✔
Platform Support All All Linux Linux Solaris Windows Linux All
Clustering Mode Master +
Slaves Master +
Slaves Active/Pas
sive Active/Passi
ve Active/P
assive Active/Pas
sive Active/P
assive Multi-Master
Failover Time N/A Secs Secs + Secs + Secs + Secs + Secs + < 1 Sec
Scale-out Reads ✔ ✖ ✖ ✖ ✖ ✖ ✔
Cross-shard operations N/A ✖ N/A N/A N/A N/A N/A ✔
Transparent routing ✖ For HA ✔ ✔ ✔ ✔ ✔ ✔
Shared Nothing ✔ ✔ ✖ ✖ ✖ ✖ ✔ ✔
Storage Engine InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ NDB
Single Vendor Support ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• GTID enhancements
– On-line, phased deployment of GTIDs
– Binary logging on slave now optional
• Enhanced Semi-synchronous replication
– Write guaranteed to be received by slave before being observed by clients of the master
– Option to wait on Acks from multiple slaves
• Multi-Source Replication
– Consolidate updates from multiple Masters into one Slave
• Dynamic slave filters
• 8-10x Faster slave throughput
– Often removes slave as a bottleneck; keep pace with master with 8+ slave threads
– Option to preserve Commit order
– Automatic slave transaction retries
MySQL 5.7: Replication Improvements
42
0%
50%
100%
150%
200%
250%
1 8 24 48
SlaveThreads
Slavethroughputvs.96ThreadMaster
Copyright © 2015 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 5.7: Replication Improvements
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 © 2015 Oracle and/or its affiliates. All rights reserved. |
• Multi-master update anywhere
– Conflict detection and resolution (transaction rollback)
– Optimistic State Machine Replication
• Automatic group membership management and failure detection
– No need for server fail-over
– Elastic scale out/in
– No single point of failure
– Automatic reconfiguration
• Well integrated
– InnoDB
– GTID-based replication
– PERFORMANCE_SCHEMA
EAF: Group Replication
Application
MySQL Masters Replication
Plugin
API
MySQL Server
Group Comms
labs.mysql.com
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7 Parser & Optimizer Refactoring
Optimizer
Logical transformations
Cost-based optimizer: Join order and access methods
Plan refinement
Query execution plan
Query execution
Parser
Resolver: Semantic check,name resolution
SQL DML query
Query result
Storage Engine
InnoDB MyISAM
Improves readability,
maintainability and stability
– Cleanly separate the parsing,
optimizing, and execution stages
– Allows for easier feature additions,
with lessened risk
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
0
20
40
60
80
100
Q2 Q18
Exe
cuti
on
tim
e r
ela
tive
to
5.6
(%
)
CPU bound
5.6
5.7
Optimizer Cost Model: Performance Improvements DBT-3 (Size Factor 10)
2 out of 22 queries get a significantly improved query plan (others remain the same)
0
20
40
60
80
100
Q2 Q18
Exe
cuti
on
tim
e r
ela
tive
to
5.6
(%
)
Disk bound
5.6
5.7
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Query Rewrite Plugin
• New pre and post parse query rewrite APIs – Users can write their own plug-ins
• Provides a post-parse query plugin – Rewrite problematic queries without the need to make application changes
– Add hints
– Modify join order
– Many more …
• Improve problematic queries from ORMs, third party apps, etc
• Eliminates many legacy use cases for proxies
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Optimizer
"query_block": { "select_id": 1 "cost_info": { "query_cost": "1.00“ }, ...
• JSON EXPLAIN Expandido – Agora inclui toda informação de custo
– Usado no Visual Explain do Workbench 6.1
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Optimizer
• Problema: Uma query em uma sessão está rodando há um longo tempo
• Nova opção: EXPLAIN FOR CONNECTION de outra sessão
– Descubra a causa-raíz do atraso
– Otimize a query
EXPLAIN de queries em execução
EXPLAIN [FORMAT=(JSON|TRADITIONAL)] FOR CONNECTION <id>;
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7 Release Candidate Available!
58
Enhanced InnoDB: faster online & bulk load operations
Replication Improvements (incl. multi-source, multi-threaded slaves...)
New Optimizer Cost Model: greater user control & better query performance
Performance Schema Improvements
MySQL SYS Schema
Performance & Scalability Manageability
2 X Faster than MySQL 5.6
Improved Security: safer initialization, setup & management
NEW! JSON Support (now in labs)
RC
And many more new features and enhancements... http://mysqlserverteam.com/the-mysql-5-7-7-release-candidate-is-available/
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Performance Schema
• Instrumentação ampliada de statements
– Stored Procedures e Stored Functions
– Prepared Statements
– Transações
Instrumentação de Statements
• Instrumentos para Memória
– Adicionados mais de 200 Memory Types
• Agregação de estatísticas
– Tipo de memória (cache, interna buffer, …)
– Thread/usuário/host gerando operações indiretas na memória
• Atributos incluem
– Memória usada (bytes), Operações (counts), máximo/mínimo histórico
Uso da Memória
Métricas e instrumentações adicionais
– Status dos Slaves
– MDL lock
Outros Dados adicionais
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• Desenvolvimento guiado pelo feedback positivo no ps_helper – Mais de 80 views, versionadas, auto-atualizáveis e de acordo com a versão do server
– Suporta MySQL 5.5, 5.6, and 5.7
• SYS é similar a: – Oracle V$ catalog views
– Microsoft SQL Server DMVs (Dynamic Management Views)
– IBM DB2 SYSIBM catalog
• Disponível no Workbench 6.1+ ou via GitHub
– Workbench inclui “one click” reports
MySQL SYS Schema Views simplificadas na Performance Schema & Information Schema
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Security - Encryption, Passwords, Installation
• AES 256 Encryption – Default in MySQL 5.7
• Password rotation policies – Can be set globally, and at the user level
• Deployment: enable secure unattended install by default – Random password set on install
– Remove anonymous accounts
– Deployment without test account, schema, demo files
• Easier instance initialization and setup: mysqld –initialize
• New detection and support for systemd
64
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Security – SSL, Proxy User
• SSL – Enabled by default
– Auto-detection of existing keys and certs
– Auto generation of keys and certs when needed
– New helper utility: mysql_ssl_rsa_setup
• Extended Proxy User Support – Added Built-in Authentication Plugins support for Proxy Users
– Allows multiple users to share a single set of managed privileges
65
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: JSON
• Native JSON data types – Native internal binary format for efficient processing & storage
• Built-in JSON functions – Allowing you to efficiently store, search, update, and manipulate Documents
• JSON Comparator – Allows for easy integration of Document data within your SQL queries
• Indexing of Documents using Generated Columns – InnoDB supports indexes on both stored and virtual Generated Columns
– New expression analyzer automatically uses the best “functional” index available
66
labs.mysql.com
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
HTTP Plugin for MySQL
• Server Plugin adds HTTP(S) endpoints to MySQL
• Results are serialized to JSON format encoded as UTF8
• Provides 3 choices of User Endpoint Types – SQL
– CRUD - Key-Value
– JSON - Document
labs.mysql.com
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Syslog Support for Linux/Unix platforms
• Native support for syslog
• Simple option to (re)direct log output to native syslog facility
• Start-up server configuration option
• Dynamically in the running server – System variable log_syslog (ON/OFF, defaults to OFF).
Thank you, Simon Mudd at booking.com
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• Replaced custom code with Boost.Geometry
– For spatial calculations
– For spatial analysis
– Enabling full OGC compliance
– We’re also Boost.Geometry contributors!
• InnoDB R-tree based spatial indexes
– Full ACID, MVCC, & transactional support
– Index records contain minimum bounding box
• GeoHash
• GeoJSON
• Helper functions such as ST_Distance_Sphere() and ST_MakeEnvelope()
MySQL 5.7: GIS Improvements
75
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• R-tree based – Full transactional support
– Predicate locking to prevent phantoms
– Records contain minimum bounding box • Small and compact
– Currently only supports 2D data • We would like to add 3D support in the future
– Supports historical spatial index DDL syntax
MySQL 5.7: GIS - InnoDB Spatial Indexes
76
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Saiba mais... Detalhes sobre “O que há de novo no MySQL 5.7 (até agora)
• [blog post] http://www.alastori.com.br/2014/11/o-que-ha-de-novo-no-mysql-5.html
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Utilities & Fabric 1.5
Oracle Confidential – Internal/Restricted/Highly Restricted 78
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Utilities 1.5
• Automatiza tarefas comuns de DevOps – Replication: provisionamento, teste, monitoramento e failover
– Comparação de Databases: verificação de consistência
– Manutenção: users, connections, tables
– Auditoria
• Scripts em Python – Pacote standalone ou via MySQL Workbench
– Extensíveis para incluir scripts customizados (usa Python library)
• Novo: Cloud integration: Openstack Nova, “Server providers” https://oracleus.activeevents.com/2014/connect/fileDownload/session/CF4F217F7E733EF6066ED14D5CB7371C/CON5636_Kindahl-MySQLFabricElasticityOOW2014.pdf
Útil para DevOps e gerenciamento automatizado do MySQL
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
HA group
MySQL Fabric 1.5 (MySQL Utilities)
• Alta disponibilidade: – Monitoramento do Server com failover automático
e transparente para aplicação
• Sem Proxy, sem latência extra e SPoF
Alta-disponibilidade + escalabilidade de escrita com sharding
Connector
Application
SQL
Read-slaves Read-slaves
HA group
MySQL Fabric
• Escalabilidade de escrita com sharding: – Aplicação define a shard key (Range ou Hash)
– Ferramentas para re-sharding
– Tabelas globais & global updates
• Conectores devem ser “Fabric-aware”: – Java, Python, PHP
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster 7.4
Oracle Confidential – Internal/Restricted/Highly Restricted 82
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Soluções de HA homologadas pela Oracle
MySQL
Replication
MySQL
Fabric
Oracle VM
Template Oracle
Clusterware
Solaris
Cluster
Windows
Cluster DRBD
MySQL
Cluster
App Auto-Failover ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Data Layer Auto-Failover ✖ ✔ ✔ ✔ ✔ ✔ ✔ ✔
Zero Data Loss MySQL 5.7 MySQL 5.7 ✔ ✔ ✔ ✔ ✔ ✔
Platform Support All All Linux Linux Solaris Windows Linux All
Clustering Mode Master +
Slaves
Master +
Slaves
Active/Pas
sive
Active/Passi
ve
Active/Pa
ssive
Active/Pass
ive
Active/Pa
ssive
Multi-
Master
Failover Time N/A Secs Secs + Secs + Secs + Secs + Secs + < 1 Sec
Scale-out Reads ✔ ✖ ✖ ✖ ✖ ✖ ✔
Cross-shard operations N/A ✖ N/A N/A N/A N/A N/A ✔
Transparent routing ✖ For HA ✔ ✔ ✔ ✔ ✔ ✔
Shared Nothing ✔ ✔ ✖ ✖ ✖ ✖ ✔ ✔
Storage Engine InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ InnoDB+ NDB
Single Vendor Support ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster 7.4 GA
• 200 Million NoSQL Reads/Sec
• 2.5M SQL Ops/Sec
• 50% Faster Reads
• 40% Faster Mixed
Performance
• Active-Active Geographic Redundancy
• Conflict Detection/Resolution
Active-Active
• 5X Faster Maintenance Ops
• Detailed Reporting
Management
Copyright 2015, oracle and/or its affiliates. All rights reserved 85
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Better performance and operational simplicity
MySQL Cluster 7.4
• Performance gain over 7.3 – 50% (Read-Only)
– 40% (Read-Write)
• Faster maintenance operations – Nodal & Rolling restarts
– Upgrades
86
GA
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster: Active-Active Geo-Replication
• Asynchronous replication between MySQL Clusters
• Active-Active – Update anywhere
– Conflict detection • Application notified through exception tables
• Can opt to have conflicts resolved automatically
– Auto-conflict-resolution • Conflicting transaction and dependent ones are rolled-back
• No required changes to app schema
88
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Workbench 6.3
Oracle Confidential – Internal/Restricted/Highly Restricted 89
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Workbench 6.3 • Fabric – Add node, browse, view, connect
• Performance Dashboard – Performance Schema Reports & Graphs
• Visual Explain
• GIS Viewer
• Migration – New: Microsoft Access
– Microsoft SQL Server, Sybase, PostgreSQL, SQLite
GA
91
• New Easy to Use Wizards for – Fast Data Migration
– Table<->File Data Import/Export (like Excel)
– SSL Certificate Creation
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Workbench 6.1 Dashboards: Performance & Status
Analyze hotspots, costly SQL statements, wait times, locks, InnoDB stats, and more
Network, Server, InnoDB
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 95
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise
Oracle Confidential – Internal/Restricted/Highly Restricted 97
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Edition Suporte + Backup + Monitor + Workbench + Plug-ins
Escalabilidade Segurança
Firewall Auditoria
Criptografia
Oracle Enterprise Manager for MySQL
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Oracle Premier Support para MySQL
• Acesso direto 24 x 7 x 365
• Número ilimitado de incidentes
• Base de conhecimento, Hot fixes, Patches
• Tradução para o Português
• Suporte Consultivo
• Maior time de especialistas MySQL no mundo
• Suportados pelos próprios Desenvolvedores do MySQL
Engenheiros MySQL como parte do seu time
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• Troubleshooting remoto
• Revisões: Replicação, Particionamento, Schema, Queries
• Performance Tuning
• Revisão de Código gerado pelo cliente: Client APIs, User Defined Functions, Server Extensions, Stored Routines (Triggers, Procedures, Functions)
• Suporte remoto à instalação e upgrades
https://www.mysql.com/support/consultative.html
Suporte Consultivo MySQL Portfolio de serviços
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Backup
• Backup online para InnoDB, tamanho ilimitado
• Backups automatizados: completos, incrementais, parciais
• Compressão, Criptografia AES256
• Metadados de status, progresso e histórico
• Recovery: Point in Time, Parcial ou Completo
• Multi-Plataforma: Windows, Linux, Unix
• Compatível MMS: Oracle Secure Backup, SBT
• Suporte Cloud: Open Stack, Amazon S3
MEB Backup
Files
MySQL Database
Files
mysqlbackup
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Menor tempo em backups e restores, menos downtime
MySQL Enterprise Backup
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
New! Oracle Enterprise Manager for MySQL
111
Performance Security
Availability
• Availability monitoring
• Performance monitoring
• Configuration monitoring
• All available metrics collected – Allowing for custom threshold
based incident reports
• MySQL auto-detection
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Monitor 3.0
• Monitoramento em tempo real da performance e disponibilidade
• Encontre e corrija problemas visualmente
• Monitore discos e faça capacity planning
• Comece a monitorar em 10 minutos
• Arquitetura que não exige agentes
• Agente remoto monitora SO
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 114
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Extensões comerciais para o MySQL Database
Oracle Confidential – Internal/Restricted/Highly Restricted 121
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
60x Melhor Escalabilidade comThread Pool MySQL 5.6.11
Oracle Linux 6.3, Unbreakable Kernel 2.6.32 4 sockets, 24 cores, 48 Threads Intel(R) Xeon(R) E7540 2GHz CPUs 512GB DDR3 RAM
Enterprise Scalability com Thread Pool
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
18x Melhor Escalabilidade comThread Pool MySQL 5.6.11
Oracle Linux 6.3, Unbreakable Kernel 2.6.32 4 sockets, 24 cores, 48 Threads Intel(R) Xeon(R) E7540 2GHz CPUs 512GB DDR3 RAM
Enterprise Scalability com Thread Pool
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Secutiry
• External Authentication Plugins
• Delega autenticação para diretório de usuários, como AD, LDAP
• Linux e Windows
MySQL Enterprise Firewall
• Bloqueio online de ameaças
• Transparente para Aplicação
• Alertas & Logs
Oracle Confidential – Internal/Restricted/Highly Restricted 124
MySQL Enterprise Audit
• Implementa logs de auditoria com um único comando de instalação
• Flexibilidade na configuração
• Aderente às principais normas de regulação
MySQL Enterprise Encryption
• Funções do OpenSSL via SQL
• Gerenciamento de Certificados
• Criptografia Assimétrica
Plugins Comerciais para Segurança
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Authenticate
CREATE USER win_joe
IDENTIFIED WITH authentication_windows
AS ‘joe';
LDAP/AD PAM / Windows
Auth
Usuário/senha definidos no diretório
Privilégios definidos no MySQL e mapeados para usuários/grupos do diretório
Enterprise Security com External Authentication
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Audit
126
2. Usuário conecta e executa query
1. DBA habilita Audit plugin
3. Log de conexões e queries
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 127
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
• Construção automática de Whitelists
• Bloqueio online de ameaças
• Alertas & Logs
• Transparente para Aplicação
• Alta performance & Escalável
Enterprise Firewall
Select *.* from employee where id=22
Select *.* from employee where id=22 or 1=1 Block & Log �
Allow & Log �
White List Applications
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Encryption
• MySQL encryption libraries – Symmetric encryption AES256
– Public-key / asymmetric cryptography
• Key management – Public & private keys
– Key exchange methods: RSA, DSA, DH
• Sign & verify data – Cryptographic hashing: digital signing, verification, & validation
Criptografia simétrica ou assimétrica baseada em chave pública/privada
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL & Oracle Product Integrations
• Oracle Linux
• Oracle VM
• Oracle Solaris
• Oracle Clusterware
• Oracle OpenStack for Oracle Linux
• Oracle Enterprise Manager
• Oracle Secure Backup
• Oracle Fusion Middleware
• Oracle GoldenGate
• Oracle Audit Vault & Database Firewall
• MyOracle Online Support
MySQL Integrates into your Oracle Environment
133
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Edition Contatos comerciais
Marcos Trujillo
Enterprise Sales, Oracle
Alison Rabelo
OEM/ISV Sales, Oracle
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
MySQL for Beginners Ed 3
MySQL for Database Administrators Ed 3.1
MySQL Performance Tuning
MySQL High Availability
MySQL Cluster
MySQL DBA
Introduction to MySQL 5.5
MySQL Developers Techniques
MySQL for Beginners Ed 3
MySQL and PHP Developing Dynamic Web
Applications
MySQL for Developers Ed 2
MySQL Advanced Stored Procedures
MySQLDeveloper
education.oracle.com/mysql
Opcional
Necessário
Treinamentos e certificações
Oracle Certified Professional, MySQL 5.6
DBA
Oracle Certified Expert, MySQL Cluster DBA
Certificações
Oracle Certified Professional, MySQL 5.6
Developer
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Sumário
• Há muito investimento da Oracle no MySQL com foco em Aplicações Web e Embarcadas.
• A edição Community ganha mais velocidade e qualidade.
• O MySQL Enterprise Edition aumenta a disponibilidade, o desempenho e a segurança através de ferramentas, extensões comerciais e suporte.
• Se a aplicações é de missão crítica ou tem potencial para ser a Oracle pode ajudar profissionalizando seu ambiente com o MySQL Enterprise Edition.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Obrigado!
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
@MySQLBR meetup.com/MySQL-BR facebook.com/MySQLBR
pt.planet.mysql.com
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. |
Perguntas?
The State of the Dolphin Contato: [email protected] twitter.com/mysqlbr facebook.com/mysqlbr