SlideShare uma empresa Scribd logo
1 de 32
Baixar para ler offline
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
善用新世代MySQL
開拓成功新契機
梶山隆輔,杜修文
Copyright © 2015, 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 © 2015, Oracle and/or its affiliates. All rights reserved. |
A Year of Anniversaries!
20Years: MySQL
10Years: Oracle stewardship of InnoDB
5Years: Oracle stewardship of MySQL
Thank You, MySQL Community, for 20 years of
Contributions to MySQL!
3
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Further developed
MySQL according to
the same values...
...while ensuring
secure behavior
The Road to Adulthood...
4
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
新世代MySQL為您帶來的價值
• 更好的性能
• 更好的擴充力
• 更高的可用度
• 更高的安全性
• 更豐富的功能
– Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows,
GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 …
• 結論
5
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
新世代MySQL為您帶來的價值
• 更好的性能
• 更好的擴充力
• 更高的可用度
• 更高的安全性
• 更豐富的功能
– Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows,
GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 …
• 結論
6
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
QueriesperSecond
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
7
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
QueriesperSecond
Connections
MySQL 5.7 vs 5.6 - InnoDB & Memcached
MySQL 5.7
MySQL 5.6
1 Million QPS
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
8
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• 重構Optimizer和Parser
– 改進可讀性,維護性和穩定性
– 乾淨的分離parsing, optimizing, 和execution
階段
– 讓新功能更容易加入,同時降低風險
• 新的 hint 架構
– 更容易管理
– 支持更多的 新 hints
• 改良的JSON EXPLAIN
• EXPLAIN 其他的連線/線程
• 新的Cost based 優化器
• Generated Columns
• 支援InnoDB為基礎的temp tables
• 更好的ONLY_FULL_GROUP_BY mode
• 更好的支援InnoDB 和 GIS
• 許多新的優化功能
查詢更快,同時用更少的CPU和磁碟空間!
MySQL 5.7: 優化器的改進
9
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
新世代MySQL為您帶來的價值
• 更好的性能
• 更好的擴充力
• 更高的可用度
• 更高的安全性
• 更豐富的功能
– Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows,
GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 …
• 結論
10
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: InnoDB – 始終處於線上開機
• 線上調整InnoDB Buffer Pool
– DBA們可以線上調整buffer size不需關資料庫
– 適應線上變更資料庫的使用型態
• 分開UNDO tablespace
– 可自動線上 truncation
• 支援更多的線上ALTER TABLE
– 擴大VARCHAR, Rename Index
• 動態設定配置
– 使現有的設定能動態變更
– 是新功能和設定的設計原則
11
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
新世代MySQL為您帶來的價值
• 更好的性能
• 更好的擴充力
• 更高的可用度
• 更高的安全性
• 更豐富的功能
– Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows,
GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 …
• 結論
12
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Copyright 2011 Oracle Corporation 13
MySQL Database
High Availability with MySQL
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Slave
Database
• Session thread: 處理來自應用的查詢 – 將資料
寫到master database 和相關的 binary log
• Dump thread: 自 binary log讀取資料且送到
slave
• I/O thread: 接收複製的事件且存於slave的
relay log
• SQL thread: 自的 relay log讀複製事件且作用
於 slave database
MySQL Replication 的流程
SessionSession
Binary
Log
Master
Database
DumpDump I/O
Relay
Log
SQL
19th February 2015 14Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
複製的效益?
• a 由“master” 複製資料庫到“slave”
– 資料的冗餘帶來高可用
– 將查詢分散到多個伺服器達到橫向擴充
Master
Slaves
Web / App Servers
Writes & Reads Reads
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 15
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• 匯總來自多個主的更新於單一從
– Consolidated view of all shards
– More flexible topologies
– Centralized point for backups
• 和半同步複製相容且加強了多線
程從
• 各主可定篩選
多源複製
BinlogBinlog
Master 1Master 1
BinlogBinlog
Master 2Master 2
……
…
BinlogBinlog
Master NMaster N
IO 1IO 1
Relay 1Relay 1
CoordinatorCoordinator
W1W1 W2W2 … WXWX
IO 2IO 2
Relay 2Relay 2
CoordinatorCoordinator
W1W1 W2W2 … WXWX
……
……
CoordinatorCoordinator
W1W1 W2W2 … WXWX
IO NIO N
Relay NRelay N
CoordinatorCoordinator
W1W1 W2W2 … WXWX
Slave
19th February 2015 16Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• 無共用之實質上的同步資料庫
• 任何一處多主更新
– 衝突偵測和解決 (transaction rollback)
– Optimistic State Machine Replication
• 自動群組成員管理和失敗偵測
– 不需資料庫層的故障移轉
– 彈性的scale out/in
– 無單點故障
– 自動重配置
• 和以下完全整合
– InnoDB
– GTID-based replication
– PERFORMANCE_SCHEMA
MySQL Group Replication
Application
MySQL Masters ReplicationReplication
Plugin
APIAPI
MySQL
Server
Group CommsGroup Comms
(Corosync)
19th February 2015 17Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Fabric 1.6
• 高可用
– 監看資料庫,並且在故障發生時應用端透通
的自動固障移轉
• 可透過資料分片達成橫向擴張
– 應用提供shard key
– Range 或Hash
– Tools for resharding
– Global updates & tables
• 應用端輔以Fabric-aware connectors 或
MySQL Router: Python, Java, PHP, .NET,
C (labs)
– Lower latency, bottleneck-free
• 可用 OpenStack開通/加上新資料庫
High Availability + Sharding-Based Scale-out
MySQL Fabric
Connector
Application
Read-slaves
SQL
HA group
Read-slaves
HA group
Connector
Application
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 18
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• Oracle Clusterware unifies servers
in a server farm to form a cluster
– At the core of Oracle RAC
• Oracle Cluster 12c includes MySQL
Server 5.6 agent
• 計劃性的遷移和故障移轉MySQL
database
– 對應用層是透通的
19th February 2015
MySQL 在 Oracle Clusterware上
19Copyright 2015, Oracle and/or its affiliates. All rights reserved
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Cluster
MySQL Cluster Data Nodes
Clients
Application Layer
Data Layer
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 20
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
引進MySQL Router
Oracle Confidential – Internal/Restricted/Highly Restricted 21
MySQL Router
MySQL Router
Read-slaves
HA group
Read-slaves
HA group
MySQL Fabric
Group Replication-主主复制
MySQL Cluster Clusterware为
基础的主备架构
主从复制
寫操作的
負載均衡
故障移转
讀寫分離
Fabric管理的Server Farm資料分片讀寫
提供Fabric 所管理
的Server Farm之
配置资讯
故障移轉
By DNS
應用程式
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
新世代MySQL為您帶來的價值
• 更好的性能
• 更好的擴充力
• 更高的可用度
• 更高的安全性
• 更豐富的功能
– Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows,
GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 …
• 結論
22
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Block Threats
Auditing
Regulatory Compliance
Login and Query Activities
SSL/TLS
Public Key
Private Key
Digital Signatures
Privilege Management
Administration
Database & Objects
Proxy Users
MySQL
Linux / LDAP
Windows AD
Custom
Oracle Confidential – Internal 23
MySQL 安控概觀
AuthorizationAuthentication
Firewall &
Auditing
Encryption
Security
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: 安控- Encryption, Passwords, Installation
• AES 256 Encryption
– 在MySQL 5.7 為預設
• 密碼輪用政策
– 可為全面的或個別使用者
• 佈署: 安裝時預設就是開啟的
– 隨機產第一次密碼
– 移除無名帳戶
– 沒有test 帳號和schema及demo file
• 更容易初始化和配置一個instance: mysqld --initialize
24
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL 5.7: Security - SSL
• 預設為開啟
• 自動偵測現有的密鑰和證書
• 必要時自動產密鑰和證書
• 新的協助工具: mysql_ssl_rsa_setup
25
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
安控-企業功能
•MySQL 企業監看
–資料庫配置變更,用户權限,資料庫架
構密碼變更都能發通知
•MySQL企業安控認證
–外部認證模組 (Microsoft AD, Linux
PAMs)
•MySQL企業稽核
–留下使用記錄
–用户活動稽核, 遵循法規
26
•MySQL企業防火牆
–查詢監看,比對白名单
–防SQL Injection
•MySQL企業加密
–公/私鑰加密
–非對稱式加密
–數位簽章, 資料驗證
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
新世代MySQL為您帶來的價值
• 更好的性能
• 更好的擴充力
• 更高的可用度
• 更高的安全性
• 更豐富的功能
– Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows,
GitHub, InnoDB Compression, Server Statement Timeout, 中文全文檢索 …
• 結論
27
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
新世代MySQL為您帶來的價值
• 更好的性能
• 更好的擴充力
• 更高的可用度
• 更高的安全性
• 更豐富的功能
– Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows,
GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 …
• 結論
28
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
總結
• MySQL和Internet共生共榮
– MySQL促成Internet的發展
– Internet彰顯MySQL的成功
• Oracle為MySQL所做的努力,以及所規劃的路線更能切中企業的需要
– 代代性能 雙倍以上的提升
– 不斷推出更多更好的高可用方案
– 朝向安全的MySQL發展以滿足企業及大型應用的需要
• Oracle MySQL 全球事務部願意成為您成功的幫手
– 免費的MySQL數據庫健診 (郵箱: mysql-sales_cn_grp@oracle.com)
– 免費的MySQL技朮研討會
– 對台灣MySQL使用者社群的支持
Oracle Confidential – Internal/Restricted/Highly Restricted 29
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• GTID enhancements
– On-line, phased deployment of GTIDs
– No need for binary logging on slave
• 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 filters
• 8x Faster slave throughput
– 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
41
0%
50%
100%
150%
200%
250%
1 8 24 48
Slave Threads
Slave throughput vs. 96 Thread Master
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle 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 ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔
19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 42

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

MySQL High Availibility Solutions
MySQL High Availibility SolutionsMySQL High Availibility Solutions
MySQL High Availibility Solutions
 
MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability Matters
 
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
MySQL InnoDB Cluster - A complete High Availability solution for MySQLMySQL InnoDB Cluster - A complete High Availability solution for MySQL
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
 
10 Razões para Usar MySQL em Startups
10 Razões para Usar MySQL em Startups10 Razões para Usar MySQL em Startups
10 Razões para Usar MySQL em Startups
 
MySQL for Software-as-a-Service (SaaS)
MySQL for Software-as-a-Service (SaaS)MySQL for Software-as-a-Service (SaaS)
MySQL for Software-as-a-Service (SaaS)
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB ClusterMySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
InnoDb Vs NDB Cluster
InnoDb Vs NDB ClusterInnoDb Vs NDB Cluster
InnoDb Vs NDB Cluster
 
MySQL 5.7: Focus on Replication
MySQL 5.7: Focus on ReplicationMySQL 5.7: Focus on Replication
MySQL 5.7: Focus on Replication
 
MySQL 5.6, news in 5.7 and our HA options
MySQL 5.6, news in 5.7 and our HA optionsMySQL 5.6, news in 5.7 and our HA options
MySQL 5.6, news in 5.7 and our HA options
 
MySQL Document Store
MySQL Document StoreMySQL Document Store
MySQL Document Store
 
MySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats new
 
5 razões estratégicas para usar MySQL
5 razões estratégicas para usar MySQL5 razões estratégicas para usar MySQL
5 razões estratégicas para usar MySQL
 
MySQL Enterprise Edition Overview
MySQL Enterprise Edition OverviewMySQL Enterprise Edition Overview
MySQL Enterprise Edition Overview
 
MySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB ClustersMySQL High Availability -- InnoDB Clusters
MySQL High Availability -- InnoDB Clusters
 
MySQL NoSQL Document Store
MySQL NoSQL Document StoreMySQL NoSQL Document Store
MySQL NoSQL Document Store
 
Conference slides: MySQL Cluster Performance Tuning
Conference slides: MySQL Cluster Performance TuningConference slides: MySQL Cluster Performance Tuning
Conference slides: MySQL Cluster Performance Tuning
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB Cluster
 

Destaque

Social networking presentation 5 20
Social networking presentation 5 20Social networking presentation 5 20
Social networking presentation 5 20
Victor Hurdle
 
4 葉金榮-my sql優化 - 20151219
4 葉金榮-my sql優化 - 201512194 葉金榮-my sql優化 - 20151219
4 葉金榮-my sql優化 - 20151219
Ivan Tu
 
7 吕智超-ssd101
7 吕智超-ssd1017 吕智超-ssd101
7 吕智超-ssd101
Ivan Tu
 
My sql cluster_taipei_event
My sql cluster_taipei_eventMy sql cluster_taipei_event
My sql cluster_taipei_event
Ivan Tu
 
My sql overview 2012 04-25 by scott chen - 30min - tw-1
My sql overview 2012 04-25 by scott chen - 30min - tw-1My sql overview 2012 04-25 by scott chen - 30min - tw-1
My sql overview 2012 04-25 by scott chen - 30min - tw-1
Ivan Tu
 
BallCatchingRobot
BallCatchingRobotBallCatchingRobot
BallCatchingRobot
gauravbrd
 
Company Snapshot
Company SnapshotCompany Snapshot
Company Snapshot
waldroncw
 
My sql fabric webinar tw2
My sql fabric webinar tw2My sql fabric webinar tw2
My sql fabric webinar tw2
Ivan Tu
 
My sql introduction for Bestcom
My sql introduction for BestcomMy sql introduction for Bestcom
My sql introduction for Bestcom
Ivan Tu
 
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
Ivan Tu
 
My sql resources_april2012_zht
My sql resources_april2012_zhtMy sql resources_april2012_zht
My sql resources_april2012_zht
Ivan Tu
 
My S Q L Introduction for 1 day training
My S Q L  Introduction for 1 day trainingMy S Q L  Introduction for 1 day training
My S Q L Introduction for 1 day training
Ivan Tu
 

Destaque (18)

Social networking presentation 5 20
Social networking presentation 5 20Social networking presentation 5 20
Social networking presentation 5 20
 
8 彭立勳-double binlog方案
8 彭立勳-double binlog方案8 彭立勳-double binlog方案
8 彭立勳-double binlog方案
 
4 葉金榮-my sql優化 - 20151219
4 葉金榮-my sql優化 - 201512194 葉金榮-my sql優化 - 20151219
4 葉金榮-my sql優化 - 20151219
 
5 古雷my sql源碼與資料庫規範
5 古雷my sql源碼與資料庫規範5 古雷my sql源碼與資料庫規範
5 古雷my sql源碼與資料庫規範
 
7 吕智超-ssd101
7 吕智超-ssd1017 吕智超-ssd101
7 吕智超-ssd101
 
My sql cluster_taipei_event
My sql cluster_taipei_eventMy sql cluster_taipei_event
My sql cluster_taipei_event
 
A crise ambiental - Seminário Integrado - CCTA
A crise ambiental - Seminário Integrado - CCTAA crise ambiental - Seminário Integrado - CCTA
A crise ambiental - Seminário Integrado - CCTA
 
My sql overview 2012 04-25 by scott chen - 30min - tw-1
My sql overview 2012 04-25 by scott chen - 30min - tw-1My sql overview 2012 04-25 by scott chen - 30min - tw-1
My sql overview 2012 04-25 by scott chen - 30min - tw-1
 
Social networking present 5 20
Social networking present 5 20Social networking present 5 20
Social networking present 5 20
 
BallCatchingRobot
BallCatchingRobotBallCatchingRobot
BallCatchingRobot
 
Company Snapshot
Company SnapshotCompany Snapshot
Company Snapshot
 
My sql fabric webinar tw2
My sql fabric webinar tw2My sql fabric webinar tw2
My sql fabric webinar tw2
 
My sql introduction for Bestcom
My sql introduction for BestcomMy sql introduction for Bestcom
My sql introduction for Bestcom
 
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
3 周彦偉-隨需而變 我所經歷的my sql架構變遷﹣周彥偉﹣acmug@2015.12台北
 
2 ivan ma-mysql複製的演進和應用-twn- v1
2 ivan ma-mysql複製的演進和應用-twn- v12 ivan ma-mysql複製的演進和應用-twn- v1
2 ivan ma-mysql複製的演進和應用-twn- v1
 
My sql resources_april2012_zht
My sql resources_april2012_zhtMy sql resources_april2012_zht
My sql resources_april2012_zht
 
My S Q L Introduction for 1 day training
My S Q L  Introduction for 1 day trainingMy S Q L  Introduction for 1 day training
My S Q L Introduction for 1 day training
 
Alimentação e nutrientes
Alimentação e nutrientesAlimentação e nutrientes
Alimentação e nutrientes
 

Semelhante a 1 my sql20151219-kaji_ivan

Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Manuel Contreras
 
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
Geir Høydalsvik
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
Tarique Saleem
 

Semelhante a 1 my sql20151219-kaji_ivan (20)

My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015
 
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
200 million qps on commodity hardware : Getting started with MySQL Cluster 7.4
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
Netherlands Tech Tour - 07 MySQL Whats upcoming in 5.7
Netherlands Tech Tour - 07 MySQL Whats upcoming in 5.7Netherlands Tech Tour - 07 MySQL Whats upcoming in 5.7
Netherlands Tech Tour - 07 MySQL Whats upcoming in 5.7
 
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
 
MySQL Tech Tour 2015 - Intro
MySQL Tech Tour 2015 - IntroMySQL Tech Tour 2015 - Intro
MySQL Tech Tour 2015 - Intro
 
MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15MySQL The State of the Dolphin - jun15
MySQL The State of the Dolphin - jun15
 
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
 
MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of Choice
 
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
MySQL 20 años: pasado, presente y futuro; conoce las nuevas características d...
 
What's New in MySQL 5.7
What's New in MySQL 5.7What's New in MySQL 5.7
What's New in MySQL 5.7
 
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
What's new in MySQL 5.7, Oracle Virtual Technology Summit, 2016
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL Fabric
 
MySQL Tech Tour 2015 - Alt Intro
MySQL Tech Tour 2015 - Alt IntroMySQL Tech Tour 2015 - Alt Intro
MySQL Tech Tour 2015 - Alt Intro
 
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats newMySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats new
 
MySQL 8: Ready for Prime Time
MySQL 8: Ready for Prime TimeMySQL 8: Ready for Prime Time
MySQL 8: Ready for Prime Time
 
MySQL Manchester TT - Performance Tuning
MySQL Manchester TT  - Performance TuningMySQL Manchester TT  - Performance Tuning
MySQL Manchester TT - Performance Tuning
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 
Netherlands Tech Tour 03 - MySQL Cluster
Netherlands Tech Tour 03 -   MySQL ClusterNetherlands Tech Tour 03 -   MySQL Cluster
Netherlands Tech Tour 03 - MySQL Cluster
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

1 my sql20151219-kaji_ivan

  • 1. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 善用新世代MySQL 開拓成功新契機 梶山隆輔,杜修文
  • 2. Copyright © 2015, 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
  • 3. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | A Year of Anniversaries! 20Years: MySQL 10Years: Oracle stewardship of InnoDB 5Years: Oracle stewardship of MySQL Thank You, MySQL Community, for 20 years of Contributions to MySQL! 3
  • 4. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Further developed MySQL according to the same values... ...while ensuring secure behavior The Road to Adulthood... 4
  • 5. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 新世代MySQL為您帶來的價值 • 更好的性能 • 更好的擴充力 • 更高的可用度 • 更高的安全性 • 更豐富的功能 – Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows, GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 … • 結論 5
  • 6. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 新世代MySQL為您帶來的價值 • 更好的性能 • 更好的擴充力 • 更高的可用度 • 更高的安全性 • 更豐富的功能 – Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows, GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 … • 結論 6
  • 7. 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 QueriesperSecond 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 7
  • 8. 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 QueriesperSecond Connections MySQL 5.7 vs 5.6 - InnoDB & Memcached MySQL 5.7 MySQL 5.6 1 Million QPS 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 8
  • 9. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | • 重構Optimizer和Parser – 改進可讀性,維護性和穩定性 – 乾淨的分離parsing, optimizing, 和execution 階段 – 讓新功能更容易加入,同時降低風險 • 新的 hint 架構 – 更容易管理 – 支持更多的 新 hints • 改良的JSON EXPLAIN • EXPLAIN 其他的連線/線程 • 新的Cost based 優化器 • Generated Columns • 支援InnoDB為基礎的temp tables • 更好的ONLY_FULL_GROUP_BY mode • 更好的支援InnoDB 和 GIS • 許多新的優化功能 查詢更快,同時用更少的CPU和磁碟空間! MySQL 5.7: 優化器的改進 9
  • 10. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 新世代MySQL為您帶來的價值 • 更好的性能 • 更好的擴充力 • 更高的可用度 • 更高的安全性 • 更豐富的功能 – Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows, GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 … • 結論 10
  • 11. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL 5.7: InnoDB – 始終處於線上開機 • 線上調整InnoDB Buffer Pool – DBA們可以線上調整buffer size不需關資料庫 – 適應線上變更資料庫的使用型態 • 分開UNDO tablespace – 可自動線上 truncation • 支援更多的線上ALTER TABLE – 擴大VARCHAR, Rename Index • 動態設定配置 – 使現有的設定能動態變更 – 是新功能和設定的設計原則 11
  • 12. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 新世代MySQL為您帶來的價值 • 更好的性能 • 更好的擴充力 • 更高的可用度 • 更高的安全性 • 更豐富的功能 – Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows, GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 … • 結論 12
  • 13. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Copyright 2011 Oracle Corporation 13 MySQL Database High Availability with MySQL
  • 14. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Slave Database • Session thread: 處理來自應用的查詢 – 將資料 寫到master database 和相關的 binary log • Dump thread: 自 binary log讀取資料且送到 slave • I/O thread: 接收複製的事件且存於slave的 relay log • SQL thread: 自的 relay log讀複製事件且作用 於 slave database MySQL Replication 的流程 SessionSession Binary Log Master Database DumpDump I/O Relay Log SQL 19th February 2015 14Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 15. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 複製的效益? • a 由“master” 複製資料庫到“slave” – 資料的冗餘帶來高可用 – 將查詢分散到多個伺服器達到橫向擴充 Master Slaves Web / App Servers Writes & Reads Reads 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 15
  • 16. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | • 匯總來自多個主的更新於單一從 – Consolidated view of all shards – More flexible topologies – Centralized point for backups • 和半同步複製相容且加強了多線 程從 • 各主可定篩選 多源複製 BinlogBinlog Master 1Master 1 BinlogBinlog Master 2Master 2 …… … BinlogBinlog Master NMaster N IO 1IO 1 Relay 1Relay 1 CoordinatorCoordinator W1W1 W2W2 … WXWX IO 2IO 2 Relay 2Relay 2 CoordinatorCoordinator W1W1 W2W2 … WXWX …… …… CoordinatorCoordinator W1W1 W2W2 … WXWX IO NIO N Relay NRelay N CoordinatorCoordinator W1W1 W2W2 … WXWX Slave 19th February 2015 16Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 17. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | • 無共用之實質上的同步資料庫 • 任何一處多主更新 – 衝突偵測和解決 (transaction rollback) – Optimistic State Machine Replication • 自動群組成員管理和失敗偵測 – 不需資料庫層的故障移轉 – 彈性的scale out/in – 無單點故障 – 自動重配置 • 和以下完全整合 – InnoDB – GTID-based replication – PERFORMANCE_SCHEMA MySQL Group Replication Application MySQL Masters ReplicationReplication Plugin APIAPI MySQL Server Group CommsGroup Comms (Corosync) 19th February 2015 17Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 18. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Fabric 1.6 • 高可用 – 監看資料庫,並且在故障發生時應用端透通 的自動固障移轉 • 可透過資料分片達成橫向擴張 – 應用提供shard key – Range 或Hash – Tools for resharding – Global updates & tables • 應用端輔以Fabric-aware connectors 或 MySQL Router: Python, Java, PHP, .NET, C (labs) – Lower latency, bottleneck-free • 可用 OpenStack開通/加上新資料庫 High Availability + Sharding-Based Scale-out MySQL Fabric Connector Application Read-slaves SQL HA group Read-slaves HA group Connector Application 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 18
  • 19. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | • Oracle Clusterware unifies servers in a server farm to form a cluster – At the core of Oracle RAC • Oracle Cluster 12c includes MySQL Server 5.6 agent • 計劃性的遷移和故障移轉MySQL database – 對應用層是透通的 19th February 2015 MySQL 在 Oracle Clusterware上 19Copyright 2015, Oracle and/or its affiliates. All rights reserved
  • 20. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Cluster MySQL Cluster Data Nodes Clients Application Layer Data Layer 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 20
  • 21. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 引進MySQL Router Oracle Confidential – Internal/Restricted/Highly Restricted 21 MySQL Router MySQL Router Read-slaves HA group Read-slaves HA group MySQL Fabric Group Replication-主主复制 MySQL Cluster Clusterware为 基础的主备架构 主从复制 寫操作的 負載均衡 故障移转 讀寫分離 Fabric管理的Server Farm資料分片讀寫 提供Fabric 所管理 的Server Farm之 配置资讯 故障移轉 By DNS 應用程式
  • 22. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 新世代MySQL為您帶來的價值 • 更好的性能 • 更好的擴充力 • 更高的可用度 • 更高的安全性 • 更豐富的功能 – Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows, GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 … • 結論 22
  • 23. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Block Threats Auditing Regulatory Compliance Login and Query Activities SSL/TLS Public Key Private Key Digital Signatures Privilege Management Administration Database & Objects Proxy Users MySQL Linux / LDAP Windows AD Custom Oracle Confidential – Internal 23 MySQL 安控概觀 AuthorizationAuthentication Firewall & Auditing Encryption Security
  • 24. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL 5.7: 安控- Encryption, Passwords, Installation • AES 256 Encryption – 在MySQL 5.7 為預設 • 密碼輪用政策 – 可為全面的或個別使用者 • 佈署: 安裝時預設就是開啟的 – 隨機產第一次密碼 – 移除無名帳戶 – 沒有test 帳號和schema及demo file • 更容易初始化和配置一個instance: mysqld --initialize 24
  • 25. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL 5.7: Security - SSL • 預設為開啟 • 自動偵測現有的密鑰和證書 • 必要時自動產密鑰和證書 • 新的協助工具: mysql_ssl_rsa_setup 25
  • 26. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 安控-企業功能 •MySQL 企業監看 –資料庫配置變更,用户權限,資料庫架 構密碼變更都能發通知 •MySQL企業安控認證 –外部認證模組 (Microsoft AD, Linux PAMs) •MySQL企業稽核 –留下使用記錄 –用户活動稽核, 遵循法規 26 •MySQL企業防火牆 –查詢監看,比對白名单 –防SQL Injection •MySQL企業加密 –公/私鑰加密 –非對稱式加密 –數位簽章, 資料驗證
  • 27. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 新世代MySQL為您帶來的價值 • 更好的性能 • 更好的擴充力 • 更高的可用度 • 更高的安全性 • 更豐富的功能 – Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows, GitHub, InnoDB Compression, Server Statement Timeout, 中文全文檢索 … • 結論 27
  • 28. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 新世代MySQL為您帶來的價值 • 更好的性能 • 更好的擴充力 • 更高的可用度 • 更高的安全性 • 更豐富的功能 – Performance_Schame/SYS, Online Explain, JSON, GIS, Query Rewrite, Windows, GitHub, InnoDB Compression, Server Statement Timeout,中文全文檢索 … • 結論 28
  • 29. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 總結 • MySQL和Internet共生共榮 – MySQL促成Internet的發展 – Internet彰顯MySQL的成功 • Oracle為MySQL所做的努力,以及所規劃的路線更能切中企業的需要 – 代代性能 雙倍以上的提升 – 不斷推出更多更好的高可用方案 – 朝向安全的MySQL發展以滿足企業及大型應用的需要 • Oracle MySQL 全球事務部願意成為您成功的幫手 – 免費的MySQL數據庫健診 (郵箱: mysql-sales_cn_grp@oracle.com) – 免費的MySQL技朮研討會 – 對台灣MySQL使用者社群的支持 Oracle Confidential – Internal/Restricted/Highly Restricted 29
  • 30.
  • 31. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | • GTID enhancements – On-line, phased deployment of GTIDs – No need for binary logging on slave • 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 filters • 8x Faster slave throughput – 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 41 0% 50% 100% 150% 200% 250% 1 8 24 48 Slave Threads Slave throughput vs. 96 Thread Master
  • 32. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Oracle 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 ✔ ✔ ✔ ✔ ✔ ✖ ✔ ✔ 19th February 2015 Copyright 2015, Oracle and/or its affiliates. All rights reserved 42