Aumentando a segurança, disponibilidade e
desempenho com MySQL Enterprise Edition
Abril 2015
Airton Lastori
Copyright © 2014 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
Edward Screven & Tomas Ulin no Open World 2014
•
[video]
youtube.com/watch?v=fzCpd4j72jA
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
COMPONENTES
da pilha
MySQL: Aplicações Web da próxima geração
Oracle elevando o nível
Um MySQL cada vez melhor
2x Engineering Staff
3x QA Staff
2x Support Staff
Copyright © 2014 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 Central @ Oracle Open World 2014
Alguns cases apresentados...
•
[slides]
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL Database
Copyright © 2014 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
2X mais rápido que o MySQL 5.6
Mais de 3X mais rápido que o MySQL 5.5
630,000 QPS
Intel(R) Xeon(R) CPU X7560 x86_64
5 sockets x 8 cores-HT (80 CPU threads)
2.27GHz, 256G RAM
Copyright © 2014 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]
Atualize!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.6:
GA há mais de 2 anos
• Performance: +234% para Leituras e +151% para Escritas, SSD
• Escalabilidade: 48 cores
• Flexibilidade: Memcached API, Full Text
• Disponibilidade: mudanças online no schema, export/import tablespaces
InnoDB
• Performance: até centenas de vezes mais rápido em alguns cenários, estatísticas
persistentes
• Instrumentação: EXPLAINS com traces e para UPDATES e DELETES
Otimizador
• Performance: ganhos de 2x a 5x com paralelismo e group commit
• Flexibilidade: novas topologias e rastreabilidade com GTIDs
• Disponibilidade: automatização de failover e recovery
Replicação
• PERFORMANCE_SCHEMA mais completa
Qual biblioteca connector você usa?
<?php phpinfo(); ?>
Biblioteca mysqlnd é atual e
recomendada, substituindo a
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
mysqlnd vs libmysql
Oracle Confidential – Internal/Restricted/Highly Restricted 19
mysqlnd
•
Já é default no PHP 5.4 e pode ser usado com PHP 5.3
–
Instalação:
http://php.net/manual/en/mysqlnd.install.php
./configure --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd [other options]
•
Não é necessário atualizar scripts PHP*
–
mysql/ext, mysqli e PDO_MYSQL fazem a interface com a biblioteca, portanto nada
muda do ponto de vista do desenvolvedor
–
*Se você usa data type “bit” veja
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Edition
MySQL Enterprise Edition
Suporte + Backup + Monitor + Workbench + Plug-ins
Escalabilidade
Segurança
Firewall
Auditoria
Criptografia
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
3
otimizações com
MySQL Enterprise Edition
Copyright © 2014 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
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
Copyright © 2014 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
Copyright © 2014 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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
3
otimizações com
MySQL Enterprise Edition
43
%
das empresas passaram por uma
violação de dados no ano passado.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 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 43
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
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise
Audit
45
2. Usuário conecta e executa query
1. DBA habilita Audit plugin
Copyright © 2014 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
✔
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
3
otimizações com
MySQL Enterprise Edition
Desempenho
Segurança
Disponibilidade
1
Oracle Confidential – Internal/Restricted/Highly Restricted 51
Pessoas
40%
Processos
40%
Produtos
20%
gartner.com/DisplayDocument?id=334197
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Pessoas
40%
Processos
40%
Produtos
20%
gartner.com/DisplayDocument?id=334197
Por que há
indisponibilidade
não planejada?
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
mysql.com/why-mysql/white-papers/mysql_wp_ha_strategy_guide.php
Pessoas
40%
Processos
40%
Produtos
20%
gartner.com/DisplayDocument?id=334197
Por que há
indisponibilidade
não planejada?
soluções
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Pessoas
40%
Processos
40%
Produtos
20%
gartner.com/DisplayDocument?id=334197
Por que há
indisponibilidade
não planejada?
+ automação
+ ferramentas
Menor tempo em backups e restores, menos downtime
Copyright © 2014 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
•
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
•
Monitoramento em tempo real da
disponibilidade, performance e segurança
•
Encontre e corrija problemas antes que se
agravem
•
Monitore discos e faça capacity planning
•
Comece a monitorar em 10 minutos
•
Arquitetura que não exige agentes
•
Agente remoto monitora SO
QRTi
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Edition
Suporte + Backup + Monitor + Workbench + Plug-ins
Escalabilidade
Segurança
Firewall
Auditoria
Criptografia
MySQL Enterprise Edition
Contatos comerciais
Marcos Trujillo
Enterprise Sales, Oracle
[email protected]
Rubens Lucca
Contas Governo, Oracle
[email protected]
Escalabilidade
Segurança
Firewall
Auditoria
Criptografia
Copyright © 2014 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
@MySQLBR
facebook.com/MySQLBR
meetup.com/MySQL-BR
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Sumário
•
Há muito investimento da Oracle no MySQL.
•
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
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |