Más contenido relacionado La actualidad más candente (20) Similar a Aumentando a segurança, disponibilidade e desempenho com MySQL Enterprise Edition (20) Aumentando a segurança, disponibilidade e desempenho com MySQL Enterprise Edition1. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Aumentando a segurança, disponibilidade e
desempenho com MySQL Enterprise Edition
Novembro 2015
Airton Lastori
airton.lastori@oracle.com
2. 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
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.
3. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL: evolução com foco nas necessidades dos usuários
3
Web, Cloud, Distribuído e Embarcado…
4. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
COMPONENTES
da pilha
MySQL: Aplicações Web da próxima geração
Aplicações Embarcadas, On-Premise, na Nuvem ou Distribuídas
5. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7, pronto para produção!
6
Mais operações online & performance
Novidades na Replicação: multi-
source, multi-threaded slaves...
Otimizador: melhores planos de
execução com novo Modelo de Custo
JSON & Memcached
MySQL SYS Schema nativo & mais
meta-dados para diagnósticos
Performance & Escalabilidade NoSQL & Gerenciamento
2x mais rápido que MySQL 5.6
Mais segurança na inicialização, setup
e gerenciamento
MySQL Enterprise Firewall &
Encryption
GA
dev.mysql.com/doc/refman/5.7/en/mysql-nutshell.html
6. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Qual versão do MySQL Database você usa?
SELECT @@version;
+---------------------------------------+
| @@version |
+---------------------------------------+
| 5.7.9-enterprise-commercial-advanced |
+---------------------------------------+
1 row in set (0,00 sec)
7. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7 Sysbench Benchmark: SQL Point Selects
3x Faster than MySQL 5.6
1,600,000 QPS
0
200,000
400,000
600,000
800,000
1,000,000
1,200,000
1,400,000
1,600,000
1,800,000
8 16 32 64 128 256 512 1,024
QueriesperSecond
Connections
MySQL 5.7: Sysbench OLTP Read Only (SQL Point Selects)
MySQL 5.7
MySQL 5.6
MySQL 5.5
Intel(R) Xeon(R) CPU E7-8890 v3
4 sockets x 18 cores-HT (144 CPU threads)
2.5 Ghz, 512GB RAM
Linux kernel 3.16
8
8. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Atualize!
MySQL 5.7, Workbench 6.3 e mysqlnd
9. 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
Instrumentação
• Segurança
• Facilidade de uso
• Flexibilidade
• ...E MAIS...
Outras melhorias
dev.mysql.com/tech-resources/articles/mysql-5.6-rc.html
12. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Qual biblioteca connector você usa?
<?php phpinfo(); ?>
Biblioteca mysqlnd é atual e
recomendada, substituindo a
antiga libmysql.
13. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
mysqlnd vs libmysql
Oracle Confidential – Internal/Restricted/Highly Restricted 14
php.net/manual/en/mysqlinfo.library.choosing.php
14. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
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
http://php.net/manual/en/mysqlnd.incompatibilities.php
15. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Edition
O que é?
16. 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
Oracle Enterprise Manager
for MySQL
17. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
3 otimizações com MySQL Enterprise Edition
Desempenho
Segurança
Disponibilidade
1
2
3
18. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
3 otimizações com MySQL Enterprise Edition
Desempenho
Segurança
Disponibilidade
1
2
3
19. 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
Enterprise Scalability com Thread Pool
20. Copyright © 2014 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
22. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
O loop infinito do peformance tuning...
Monitoramento
Tuning
Otimizações
Patches &
Upgrades
etc...
Instalação e
Configs Iniciais
25. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Explain Plan
26. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Advisors de Performance
27. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Eventos de Notificação (Alertas)
29. 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
Engenheiros MySQL como parte do seu time
30. 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
Portfolio de serviços
32. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MEM Diagnostic Report
33. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
3 otimizações com MySQL Enterprise Edition
Desempenho
Segurança
Disponibilidade
1
2
3
34. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
43%
das empresas passaram por uma
violação de dados no ano passado.
Source: Ponemon Institute, 2014
35. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Advisors de Segurança
36. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
46%
das empresas que passaram por uma
violação, levaram mais que 4 meses
para detectar o problema.
Fonte: OnePool and LogRhythm, 2015
38. 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 39
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
39. Copyright © 2014 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
40. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 41
41. 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✔
White ListApplications
42. 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 43
2
3
43. 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?
44. 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
certificadas
45. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
mysql.com/why-mysql/white-papers/mysql_wp_ha_strategy_guide.php
Escolhendo a melhor solução para sua necessidade
46. Copyright © 2014 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 ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔
47. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
The Future of MySQL Scaling (HA + Sharding)
Global Data Shard 1 Shard 2
MySQL Fabric
controller cluster
SQL Queries
Server/Shard State &
Mapping
Global Group HA Group
Coordination
and Control
HA Group
Group Replication
cluster
48
Group Replication
cluster
Group Replication
cluster
MySQL
Router
48. 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
certificadas
49. 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
+ automação
+ conhecimento
50. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Menor tempo em backups e restores, menos downtime
MySQL Enterprise Backup
51. 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
MEB
Backup
Files
MySQL
Database
Files
mysqlbackup
55. 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
MySQL Enterprise Monitor 3.0
56. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 57
59. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
QRTi
Query Response Time Index
61. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Capacity Planning
64. 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
Oracle Enterprise Manager
for MySQL
65. 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
Developer
66. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
@MySQLBR meetup.com/MySQL-BRfacebook.com/MySQLBR
pt.planet.mysql.com
67. 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
pode ajudar profissionalizando seu ambiente com o MySQL Enterprise
Edition.
68. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Perguntas?
Aumentando a segurança, disponibilidade e desempenho com MySQL Enterprise Edition
Contato:
airton.lastori@oracle.com
twitter.com/mysqlbr
facebook.com/mysqlbr
69. Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
MySQL Enterprise Edition
Contatos comerciais
Marcos Trujillo
Enterprise Sales, Oracle
marcos.trujillo@oracle.com
Rubens Lucca
Contas Governo, Oracle
rubens.lucca@oracle.com
Escalabilidade
Segurança
Firewall
Auditoria
Criptografia
Oracle Enterprise Manager
for MySQL