• Nenhum resultado encontrado

Aumentando a segurança, disponibilidade e desempenho com MySQL Enterprise Edition

N/A
N/A
Protected

Academic year: 2021

Share "Aumentando a segurança, disponibilidade e desempenho com MySQL Enterprise Edition"

Copied!
72
0
0

Texto

(1)

Aumentando a segurança, disponibilidade e

desempenho com MySQL Enterprise Edition

Abril 2015

Airton Lastori

(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

(3)

Edward Screven & Tomas Ulin no Open World 2014

[video]

youtube.com/watch?v=fzCpd4j72jA

(4)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

COMPONENTES

da pilha

MySQL: Aplicações Web da próxima geração

(5)

Oracle elevando o nível

Um MySQL cada vez melhor

2x Engineering Staff

3x QA Staff

2x Support Staff

(6)

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

(7)

MySQL Central @ Oracle Open World 2014

Alguns cases apresentados...

[slides]

(8)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

MySQL Database

(9)
(10)

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

(11)

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

(12)

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]

(13)

Atualize!

(14)

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

(15)
(16)
(17)

Qual biblioteca connector você usa?

<?php phpinfo(); ?>

Biblioteca mysqlnd é atual e

recomendada, substituindo a

(18)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

mysqlnd vs libmysql

Oracle Confidential – Internal/Restricted/Highly Restricted 19

(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

(20)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

MySQL Enterprise Edition

(21)

MySQL Enterprise Edition

Suporte + Backup + Monitor + Workbench + Plug-ins

Escalabilidade

Segurança

Firewall

Auditoria

Criptografia

(22)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

3

otimizações com

MySQL Enterprise Edition

(23)
(24)

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

(25)

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

(26)
(27)
(28)
(29)
(30)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

(31)
(32)
(33)

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

(34)

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

(35)
(36)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

3

otimizações com

MySQL Enterprise Edition

(37)

43

%

das empresas passaram por uma

violação de dados no ano passado.

(38)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

(39)
(40)

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

(41)

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

(42)

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

(43)
(44)

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

(45)

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

(46)

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

(47)

Pessoas

40%

Processos

40%

Produtos

20%

gartner.com/DisplayDocument?id=334197

(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?

(49)

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

(50)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

mysql.com/why-mysql/white-papers/mysql_wp_ha_strategy_guide.php

(51)

Pessoas

40%

Processos

40%

Produtos

20%

gartner.com/DisplayDocument?id=334197

Por que há

indisponibilidade

não planejada?

soluções

(52)

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

(53)

Menor tempo em backups e restores, menos downtime

(54)

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

(55)
(56)
(57)
(58)

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

(59)
(60)
(61)

QRTi

(62)
(63)
(64)
(65)
(66)

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

(67)

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

(68)

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

(69)

@MySQLBR

facebook.com/MySQLBR

meetup.com/MySQL-BR

(70)

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

(71)
(72)

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Perguntas?

Aumentando a segurança, disponibilidade e desempenho com MySQL Enterprise Edition

Contato:

[email protected]

twitter.com/mysqlbr

Referências

Documentos relacionados