MySQL 高可用方案及成功案例
-
Upload
- -
Category
Technology
-
view
603 -
download
1
description
Transcript of MySQL 高可用方案及成功案例
<Insert Picture Here>
MySQL 高可用方案及成功案例Web Scale Performance, Carrier-Grade Availability
杜修文Oracle MySQL Sales [email protected]
MySQL Cluster – 用戶和應用High Scale, Transactional, Real-Time with HA: Web & Telecoms
http://www.mysql.com/customers/cluster/
• Web• High volume OLTP• eCommerce• User Profile Management• Session Management & Caching• Content Management• On-Line Gaming
• Telecoms• Subscriber Databases (HLR / HSS)• Service Delivery Platforms• VAS: VoIP, IPTV & VoD• Mobile Content Delivery• Mobile Payments• LTE Access
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. | 3
高可用和擴充性MySQL複製
在資訊中心之內和之間橫向擴充
自我療癒和不受失敗影響
支援多種架構– Master/Slave, Cascading,
Circular
預設是非同步,半同步是另一種選項
複製工具以快速推進資料
支持監看和最佳實踐Relay Log
MySQL
Cluster
MySQL
Cluster
MySQL
Server
Application /
Web / Web AP
• MySQL ReplicationAsynchronous replication
• MySQL+DRBD (for Linux)Shared Nothing Active/Passive
Application /
Web / Web AP
Application /
Web / Web AP
Shared disk
• Shared Disk Based Active/Passive
Application /
Web / Web AP
• MySQL ClusterShared Nothing Active/Active
MySQL
Server
MySQL
Server
MySQL
Server
MySQL
Server
MySQL
Server
Asynchronous
Replication
Synchronous
Replication
Fail Over on failure
Fail Over on failure
Load Balancing
Synchronous
Replication
Load Balancing
MySQL的高可用方案
MySQL Cluster 的架構
Data Nodes
Node Group 1
F1
F3
F3
F1
No
de
1N
ode
2
Node Group 2
F2
F4
F4
F2
No
de
3N
od
e 4
Application Nodes
Cluster Mgr
Cluster Mgr
LDAPREST
SQL Node(MySQL)
• Standard SQL Interface• Scale-out for Performance• Enables Replication
• High Performance• C, C++ & Java, LDAP, HTTP API• Developer’s Guide
• Data Storage (Memory/Disk)• Automatic & User-Defined Partitioning• Local & Global Checkpoints• Scale-out or scale-up for Capacity & Redundancy• Scale dynamically with on-line add node
• Administration and Configuration• Arbitration• Use Two for Redundancy
NDB API(Application)
Data Node(NDB Storage Engine)
Management
Node
MySQL Cluster 的組成
MySQL Cluster - 極佳的存活力
Data Nodes
Node Group 1
F1
F3
F3
F1
No
de
1N
ode
2
Node Group 2
F2
F4
F4
F2
No
de
3N
od
e 4
Application Nodes
Cluster Mgr
Cluster Mgr
LDAPREST
Cluster 1
Synchronousreplication
Cluster 2
InnoDB InnoDB InnoDB
Asynchronousreplication
複製的彈性
• Synchronous replication within a Cluster node group for HA
• Bi-Direction asynchronous replication to remote Cluster for geographic redundancy
• Asynchronous replication to non-Cluster databases for specialised activities such as report generation
• Mix and match replication types
© 2010 Oracle Corporation
這些年來大中華區的重要客戶
在大型晶圓製造廠獲得了重大成就
Master
Slave
Slave/Read Slave/Read
Replication
Replication
評估 自四種不同的資料庫評比中勝出
技術取得 Oracle MySQL為客戶開了四次的研討會
建立和遷移 測試
在 Slave Server進行備份和管理 納入標准
客戶的技術評議委員會核定MySQL是唯二標準資料庫
投入生產 企業資料庫儀表板納入MySQL
布署 隨著 ICOP, MySQL一布署到所有晶圓廠
加強及擴大應 用 用 SSD加強效能
Passive
全球最大的代工晶圓廠,總部在新竹 , 全球超過三萬名員工, Oracle/Sun,
Nvida, VIA 均是其客戶,您的手機 ,遊戲機 ,筆電中一定有 TSMC的產品
Service Portal資料庫架搆- MySQL Cluster with Replication
MySQL-Slave(Reporting)
MySQL-Cluster
MySQL-Cluster
MySQL-Slave(Reporting)
MySQL-Slave(Reporting)
MySQL-Cluster
In SiteReplication
In SiteReplication
Cross SiteReplication
Cross SiteReplication
Cross SiteReplication
In SiteReplication
SQL Node SQL Node
Data Node Data Node
Load balancer
MySQL-EnterpriseMonitor
ManagementNode
Switch/Proxy
Fail over
SQL SQL
Data Data
Presentation/Logial Layer
Data Access Layer (JPA)
Sharding Layer (HiveDB...)
U-Cloud完整資料庫架構
设备资源设备资源 基础网基础网 专业网专业网
Cluster/J
SQL SQL
Data Data
ETL
BIDW
公共资源码号资源Lookup &Authentication
MySQL Cluster
U-Cloud測試結果
场景名称 并发数 响应时间S( Cluster)
响应时间 S(單機)
查询 BSC设备 100 0.123 0.252查询 BSC设备 300 0.58 0.56城域网设备查询 100 0.375 0.43城域网设备查询 300 0.856 1.2地址查 100 0.089 NA地址查 300 0.406 NA地址查 500 0.397 NA地址查 1000 0.5 NA随机读 3000 0.004 0.004随机写 1000 0.032 0.22随机写 3000 0.042 2.584
批量资料录入 100 4.112 73.451预算编制 100 24.271 67.667预算编制 200 33.347 155.016预算编制 300 46.719 NA
更多的資訊
mysql.com● 總成本計 算器 http://www.mysql.com/tcosavings/● 白皮書 https://www.mysql.com/why-mysql/white-papers/● 客戶 成功案例 http://www.mysql.com/customers/
dev.mysql.com● 下載 http://dev.mysql.com/downloads● 文件 http://dev.mysql.com/doc/● 論壇 http://http://forums.mysql.com/● PlanetMySQL http://http://planet.mysql.com/
eDelivery.oracle.com• 下載及試 用所有 MySQL 產品 http://edelivery.oracle.com
<Insert Picture Here>
MySQL ClusterWeb Scale Performance, Carrier-Grade Availability
杜修文Oracle MySQL Sales [email protected]