Upload
others
View
15
Download
0
Embed Size (px)
Citation preview
<Insert Picture Here>
MySQL:推动ISV/OEM的成功快速前行
Kevin Ding 丁雪峰MySQL GBU, Greater China
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 2
行业大趋势,互联网思维:颠覆传统IT
• 互联网
• 移动互联网
• 互联网金融
• 云:DBaaS
• 大数据:NoSQL
Hot !
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 3
去 IOE ?
• 高并发实时性能
• 分布式水平扩展能力
• 高可用与安全性
• 底成本:数据库采购成本、开发成本、运维成本
• 容易使用和管理,快速开发及交付
• 大数据价值与云计算平台
• 与传统数据平台互联互通
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 4
开源生态圈:LAMP Stack
Operating
System
Application
Server
Database
Scripting
L
A
M
P
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 5
关于MySQL:全球最流行的开源数据库
• 1995年成立于瑞典并发布第一个版本
• 2008年2月被Sun收购
• 2010年1月被Oracle公司收购
• 全球最流行的开源数据库 (没有之一)全球超过一亿次拷贝装机量
每天7万次下载
• 市场领导地位用户部署的关键应用中31%采用MySQL
作为主要数据库 (Eclipse Community Survey, 2010)
• 2010年12月发布MySQL Serve 5.5
• 2012年2月发布MySQL Cluster 7.2
• 2013年2月发布MySQL Server 5.6
• 2013年6月发布MySQL Cluster 7.3
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 6
DB-Engines 最新数据库排名 - Dec. 2013
http://db-engines.com/en/ranking
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 7
谁在用 MySQL – Top 20 Websites
11. Amazon
12. Taobao
13. Blogspot
14. Google India
15. Wordpress
16. Sina
17. Yandex
18. Yahoo Japan
19. Bing
20. Hao123
1. Google
2. Facebook
3. Youtube
4. Yahoo
5. Baidu
6. Wikipedia
7. QQ
8. LinkedIn
9. Live.com
10. Twitter
http://www.alexa.com/topsites
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 8
Cloud
Web & Enterprise OEM & ISVs
行业翘楚采用MySQL构建关键应用
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 9
Reliability
Lower TCO Performance
Ease of Use
为什么选择 MySQL?
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 10
MySQL 大幅节省总体拥有成本(TCO )
$0
$500,000
$1,000,000
$1,500,000
$2,000,000
$2,500,000
$3,000,000
$3,500,000
$4,000,000
$4,500,000
$5,000,000
MySQL Enterprise Edition Microsoft SQL
Server Enterprise Edition
Sybase ASE Enterprise Edition
$60,000
$1,539,776
$4,703,245
3 Year Database TCO
- Term: 3 Years
- Users: Unlimited
- MySQL EE
- Microsoft SQL EE
- Sybase ASE EE
- Hardware: Intel x86
- Servers: 4
- Sockets/Server: 4
- Cores/Socket: 8
Over 90%
Lower TCO
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 11
MySQL:性能与可扩展性
• 独特的可插拔存储引擎架构及优化器适应不同应用场景对性能的苛刻
要求
• 单机读写性能超越 Sybase 30%(华为计费系统 Benchmark 测试)
,其灵活的分布式计算部署更远胜其他数据库
• Shared-Nothing 及内存计算的集群架构保证性能线性扩展,达到每分
钟12亿次写操作
• 支持 NoSQL 及列式数据引擎,MySQL 对大数据库处理性能从容自如
• MySQL集群3秒内成功处理来自所有 Zynga 每日6000万活跃用户的更
新,在1分钟内处理所有来自 Facebook 10亿活跃用户的更新
• 2012年美国总统大选,MySQL支撑1.4亿 Twitter活跃用户创纪录的
874,560 TPM考验
• 2012年双十一光棍节,MySQL支撑淘宝、支付宝经受住一天41亿个
事务,执行285亿次SQL,生成15TB日志,一天创纪录交易191亿人
民币 -可能是地球上最繁忙的数据库;2013年,350亿!
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 12
扩展无止境:Scale-Out & Scale-Up
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 13
扩展无止境:复制、读写分离、应用分区
Master
Slave
Clie
nts
Slaves
Shards
Reads
Writes
Partitioning Logic
1 2 3 4 5
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 14
MySQL:可靠性与安全性
• 全球第二大数据库,最受欢迎的开源数据库,用户基数强大及广泛的应用场景,久经考验的健壮性和安全性,社区资源丰富– Google 搜索 MySQL : 找到约 354,000,000 条结果 ;
– Google 搜索 Oracle: 找到约 273,000,000 条结果
– Google 搜索 SQL Server:找到约 151,000,000 条结果;
– Google 搜索 DB2: 找到约 30,300,000 条结果
– Google 搜索 Sybase:找到约 17,500,000 条结果;
– Google 搜索 PostgresQL:找到约 26,400,000 条结果
• Oracle 顶级数据库厂商专业开发,原厂提供世界级的全球7*24全方位技术支持和顾问服务
• 满足业界最高的99.999%高可用要求,即一年宕机时间不超过5分钟
• 严密的鉴权访问和数据加密,完全满足企业级及云环境下对数据库的安全要求
• MySQL企业版安全审计模块,顺应对电子数据的隐私和安全法规要求
• 整合Oracle数据库安全产品,如 Audit Vault,Database Firewall,Security Backup 等,让 MySQL 更安全、更可靠
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 15
数据节点
节点组1
F1
F3
F3
F1
No
de
1N
od
e 2
节点组2
F2
F4
F4
F2
No
de
3N
od
e 4
应用节点
管理节点管理节点
LDAPREST
MySQL 集群应用节点
NDB API
MySQL 集群满足业界最高的高可用要求Parallel Clustered Database, High Performance, 99.999% uptime
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 16
MySQL:敏捷开发、快速交付和易于维护
• 容易使用:15分钟即可安装好MySQL,不需要专门技术积累,工程师很快就可以熟悉开发产品,门槛低
• MySQL完全支持ANSI-SQL标准,跨平台、多语言支持,方便开发、迁移和交付
• 超过3,000 OEM/ISVs 厂商将 MySQL 作为“零管理”的嵌入式数据库打包在他们的应用产品中,静默安装,一键式部署,不需要专门的DBA来安装维护MySQL数据库,减少风险和故障率
• MySQL 技术和支持资源在市场上垂手可得,Oracle 公司提供世界一流的数据库技术支持服务。
• MySQL 企业版工具作为“虚拟DBA”以帮助企业监控、管理MySQL
数据库及敏捷开发和维护
MySQL Enterprise Monitor
MySQL Query Analyzer
MySQL Workbench
MySQL Enterprise Backup
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 17
• 针对整体MySQL环境的单一整合视图
• 自动搜索 MySQL 环境内的数据服务器及复制关系
• 基于规则的客户化监控及报警
• 及时发现,防范问题的发生
• 降低down机风险
• 易于扩展
“Virtual MySQL DBA”
Assistant
MySQL企业版监控器
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 18
Database Design
- Visual Design, modeling
- Forward/Reverse Engineer
- Schema validation, Schema doc
SQL Development
- SQL Editor - Color Syntax
Highlighting
- Objects - Import/Export, Browse/Edit
Database Administration
- Status, Configuration, Start/Stop
- Users, Security, Sessions
- Import/Export Dump Files
New! Database Migration Wizardfor SQL Server, Sybase, PostgreSQL
MySQL 工作台
Saves you time developing and managing your MySQL applications.
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 19
MySQL 企业级备份
• Online Backup for InnoDB
• Support for MyISAM (Read-only)
• High Performance Backup & Restore
• Compressed Backup
• Full Backup
• Incremental Backup
• Partial Backups
• Point in Time Recovery
• Unlimited Database Size
• Cross-Platform
– Windows, Linux, Unix
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 20
• PAM (Pluggable Authentication Modules)
• Access external authentication methods
• Standard interface (Unix, LDAP, Kerberos, others)
• proxied and non-proxied users
• Windows
• Access native Windows services
• Authenticate users already logged into Windows (Windows Active Directory)
• Pluggable Authentication API
MySQL 企业版安全特性MySQL External Authentication
Integrates MySQL with existing security infrastructures and SOPs.
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 21
Out-of-the-box logging of connections, logins, query activity across all or specific MySQL servers
User defined policies, filtering and log rotation
Dynamically enabled, disabled: no server restart
XML-based audit stream per Oracle audit specification
Easily implemented via MySQL 5.5 Audit API
MySQL 5.5.28 and higher
Adds regulatory compliance to MySQL applications.HIPAA, Sarbanes-Oxley, PCI, etc.
MySQL 企业版审计功能Policy-based Auditing for MySQL Applications
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 22
• MySQL default thread-handling – excellent performance, can limit scalability as user connections grow
• MySQL Thread Pool improves sustained performance/scale as user connections grow
• Thread Pool API
MySQL 企业版可扩展性MySQL Thread Pool
Ensures better, sustained performance as user loads continue to grow.
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 23
Oracle Premier Lifetime Support
Oracle Product Certifications/Integrations
MySQL Enterprise High Availability
MySQL Enterprise Security
MySQL Enterprise Scalability
MySQL Enterprise Backup
MySQL Enterprise Monitor/Query Analyzer
MySQL Workbench
MySQL 企业版Highest Levels of Security, Performance and Availability
MySQL Enterprise Audit
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 24
MySQL High Availability Solutions
%9 9 9 9935 days 4 days 50 mins 5 mins8 hours
Unmanaged
Replication Technologies
Clustering Technologies
Clustering & GeographicalRedundancy
Well-Managed
SmallBusiness
ISPs &Mainstream
Business
DataCenters
BankingMedical
TelcoMilitary
Defense
.
MySQLCluster
MySQL +Shared-Disk
MySQLReplication
DRBD
Copyright © 2012, Oracle and / or its affiliates. All rights reserved. September 29th, 2012
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 26
MySQL 集群特点
• 符合ACID 事务规范的关系型数据库– SQL & NoSQL interfaces
• 写伸缩性与实时性– Distributed, auto-partitioning (sharding), multi-master
– Memory computing
• 99.999% 的可用性– Shared-nothing, integrated clustering & sub-second recovery,
local & geographic replication, on-line operations
• 低 TCO
– Open-source, management & monitoring tools, scale-out on
commodity hardware
© 2012 Oracle Corporation The World’s Most Popular Open Source Database 27
数据节点
节点组1
F1
F3
F3
F1
No
de
1N
od
e 2
节点组2
F2
F4
F4
F2
No
de
3N
od
e 4
应用节点
管理节点管理节点
LDAPREST
MySQL 集群应用节点
NDB API
MySQL 集群高可用架构Parallel Clustered Database, High Performance, 99.999% uptime
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 28
Data Node 1 Data Node 2
Need more throughput?
集群的水平扩展
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 29
Data Node 1 Data Node 2
Need more throughput?
集群的水平扩展
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 30
Data Node 1 Data Node 2
Need more throughput?
Oops, need to increase capacity as well!
集群的水平扩展
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 31
Data Node 1 Data Node 2
Data Node 3 Data Node 4
集群的水平扩展
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 32
Data Node 1 Data Node 2
Data Node 3 Data Node 4
集群的水平扩展
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 33
Data Node 1 Data Node 2
Data Node 3 Data Node 4
集群的水平扩展
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 34
集群的水平扩展
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 35
每分钟43亿次查询、12亿次修改MySQL Cluster 7.2
0
5
10
15
20
25
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
MillionsofUPDATEsperSecond
MySQLClusterDataNodes
1.2BillionUPDATEsperMinuteDataNodes
UPDATEsper
Second(Millions)
2 1.43
4 2.66
16 10.4
30 19.5
2个节点和30个节点的线性扩展相比较,速度将增加15倍。MySQL 集群在集群上速度增加13.6
倍。从2个节点扩展到4个节点速度提升 1.9 倍,从4 个节点扩展到 16 个节点速度提升 3.9 倍。
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 36
MySQL + Hadoop: Widely Adopted Solution
Cloudera Partner Management
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 37
Binlog API
Hadoop Applier
BI Solutions
ACQUIRE
ORGANIZEANALYZE
DECIDE
MySQL in the Big Data Lifecycle
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 38
NoSQL: NotOnlySQL
• High performance web services creating demand for
simple Key-Value access to database– NoSQL access for simple queries
– Maintain advantages of SQL / ACID / RDBMS
• Extensive NoSQL access methods already exist for
MySQL Cluster
• Community development with HandlerSocket
• Oracle complements community innovation by
providing memcached interface– Implementations for InnoDB and MySQL Cluster
• MySQL becomes a “Not-Only-SQL” solution– Offering flexibility in a range of access options
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 39
Performance: SQL vs. NoSQL
Up to 9x Higher “SET / INSERT” Throughput
0
10000
20000
30000
40000
50000
60000
70000
80000
8 32 128 512
TP
S
Client Connections
MySQL 5.6: NoSQL Benchmarking
Memcached API
SQL
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 40
MySQL列式数据引擎:InfoBright
•基于MySQL的数据仓库(Data Warehouse)解决方案
•基于列式存储的存储引擎
•海量数据存储
•数据压缩比例高
•高速的数据装载性能
•预处理的信息->优化的统计算法(sum /group/count …)
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 41
MySQL云: 数据库即服务DBaaS
41© 2011 Oracle Corporation
•On-Demand Scalability: Scale-up & Scale-out•MySQL Replication
•MySQL Partitioning & Sharding
•High availability•MySQL Replication
•Linux DRBD
•MySQL Cluster
•Monitoring and Management•MySQL Enterprise Monitor
•MySQL Advisor
•MySQL Query Analyzer
•MySQL Enterprise Backup
•Oracle Premier Support (24*7*365)
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 42
Oracle Database 与 MySQL优势互补,互联互通
• Oracle DB 与 MySQL 共同服务于用户广泛多样的需求
• Oracle 数据库是企业级应用和数据中心数据库的最佳选择
• MySQL 数据库适合于互联网、云计算、移动应用、嵌入式产品应用,以及新业务的快速开发和部署
• 用户可以结合Oracle DB 及 MySQL 的互补特性,在应用部署和成本控制,及产品互通和一站式服务上获益
• 超过70%的Oracle DB 用户同时也是MySQL用户
• Oracle 提供统一的技术支持接口。
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 43
GPL与MySQL的双许可模式
• Oracle公司拥有MySQL产品所有权,是基于GPLv2的开源协议
• GPL授权许可模式:用户下载MySQL开源社区版本,进行自主开发与自行维护,是不需要付费的,但不能用于分销和其他商业目的,开发的软件源代码同样必须开源。Oracle不负责GPL许可模式下产生的相关责任
• 商业授权许可模式:Oracle公司为所有嵌入或者绑定了MySQL软件的应用提供了一份商业授权。这份商业授权允许OEM、ISV和VAR厂商分销他们含有MySQL软件的产品而不受GPL协议的约束,不需要公开他们产品源码
• 所有使用MySQL的软件开发商需要遵守GPLv2的开源精神:也就是说如果想将免费的使用MySQL数据库当作您的解决方案时,也需要将您所开发的软件源代码免费开源给客户或是开源世界,假如违反了GPLv2的开源精神,则需购买MySQL的商业授权
• MySQL企业版仅在商业授权许可下使用
• 更多资料– 关于MySQL嵌入式数据库:http://www.mysql.com/oem/
– 关于GPLv2: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
– 关于MySQL版权与商业许可:http://www.mysql.com/about/legal/licensing/oem/
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 44
What is embedding?
• Including MySQL as part of a commercial application
or appliance for distribution.
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 45
MySQL OEM
• Embedding
• Bundling
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 46
Embedding MySQL (ESL)
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 47
Bundled MySQL (ASFU)
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 48
Why MySQL Embedded“Batteries Included”
• Focus on your application/solution
• Lower the total cost of your solution
– Remove “database tax”
• Rely on MySQL Strengths
– Easy to install and administer
– High performance and reliability
– Robust feature set
Optimize customers’ experience
and lower your CoGS!
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 49
• Reduced Product Risk
– #1 Open Source DB
– Mature, Proven Technology
• Reduced Vendor Risk
– Oracle is #1 RDBMS, #1 in Embedded RDBMS
– Proven commitment to MySQL
– Commercial license and indemnification
– 24x7 Global Support from the source
Why MySQL EmbeddedReduce Risk
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 50
MySQL OEM Products
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 51
总结:MySQL数据库
• 并发性能与水平扩展
• 高可用与安全性
• 底成本
• 容易使用和管理,快速开发及交付
• 大数据与云平台
• 与传统数据平台互联互通
• 信息安全与开源
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 52
Ask Kevin
+86-18952881429
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 53
Q & A
• MySQL 企业版有哪些特点?
• MySQL 实现高可用有哪些解决方案?
• MySQL集群有哪些特点?
• MySQL 嵌入式使用有什么好处?
© 2013 Oracle Corporation The World’s Most Popular Open Source Database 54
For More Information
• mysql.com– Download MySQL 5.6, MySQL Cluster 7.3 GA, GPL Products
– MySQL Products, Editions, Licensing Options
– TCO calculator
– Upcoming Events
– Customer use cases and success stories
• dev.mysql.com– Download MySQL 5.7 DMR and Labs “early access” features
– Developer Zone Articles, How to’s
• OEM / ISV– http://www.oracle.com/us/products/mysql/mysqlembedded/index.html
– http://www.mysql.com/oem/