mysql製品概要

89
1 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. MySQL 製品概要 日本オラクル株式会社 山崎 由章 / MySQL Senior Sales Consultant, Asia Pacific and Japan

Upload: yoyamasaki

Post on 08-May-2015

1.653 views

Category:

Technology


2 download

DESCRIPTION

MySQLの製品概要です。

TRANSCRIPT

Page 1: MySQL製品概要

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

MySQL 製品概要

日本オラクル株式会社

山崎 由章 / MySQL Senior Sales Consultant,

Asia Pacific and Japan

Page 2: MySQL製品概要

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

以下の事項は、弊社の一般的な製品の方向性に関する概要を説明するものです。また、情報提供を唯一の目的とするものであり、いかなる契約にも組み込むことはできません。以下の事項は、マテリアルやコード、機能を提供することをコミットメント(確約)するものではないため、購買決定を行う際の判断材料になさらないで下さい。オラクル製品に関して記載されている機能の開発、リリースおよび時期については、弊社の裁量により決定されます。

OracleとJavaは、Oracle Corporation 及びその子会社、関連会社の米国及びその他の国における登録商標です。文中の社名、商品名等は各社の商標または登録商標である場合があります。

Page 3: MySQL製品概要

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

The world's most popular open source database

世界で最も普及しているオープンソース データベース

Page 4: MySQL製品概要

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

40%

50%

60%

2007 2008 2009

MySQL 60.5% PostgreSQL 51.9%

出典:「第3回オープンソースソフトウエア活用

ビジネス実態調査(2009年度調査)」 独立行政法人 情報処理推進機構

22%

33%

42%

53%

72%

PostgreSQL

Oracle

SQL Server

IBM DB2

MySQL

出典:「ITmediaリサーチインタラクティブ

第6回調査:DBMS」 ITmediaエンタープライズ、ITR

PostgreSQL

MySQL

Page 5: MySQL製品概要

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

DB-Engines Rankingにて、Oracleに次ぐ第2位! 出展:http://db-engines.com/en/ranking (2013年8月時点)

Page 6: MySQL製品概要

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

Oracle Database & MySQL

• より多くのお客様の要件にお応えするために

• MySQLはWebにおけるデファクトスタンダード

• MySQLとOracleの両方を運用されるお客様にも

より多くのメリット

Complementary 「補完関係」

Web and Cloud computing is not a ‘one size fits all’ model

Page 7: MySQL製品概要

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

Continuous Improvement

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

DRIVING MySQL

INNOVATION

All GA!

MySQL Enterprise Backup 3.7

Oracle VM Template for MySQL

Enterprise Edition

MySQL Enterprise Oracle

Certifications

MySQL Windows Installer

MySQL Enterprise Security

MySQL Enterprise Scalability

MySQL Database 5.6 DMR*

MySQL Cluster 7.2 DMR

MySQL Labs!

(“early and often”)

All GA!

MySQL Cluster 7.2

MySQL Cluster Manager 1.4

MySQL Utilities 1.0.6

MySQL Migration Wizard

MySQL Enterprise Backup 3.9

MySQL Enterprise Audit

MySQL Database 5.6

MySQL Cluster 7.3

MySQL Workbench 6.0

MySQL Enterprise Monitor 3.0

MySQL Database 5.7 DMR

A BETTER

MySQL *Development Milestone Release

2010 2011 2012-13

All GA!

Available Now!

Page 8: MySQL製品概要

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

40% DATA GROWTH PER YEAR

5.9BN MOBILE SUBS IN 2011

OVER 1.2 BILLION iOS & ANDROID

APPS IN 2012

85% HANDSETS

SHIPPED WITH A BROWSER

$1TR BY 2013

$700BN IN 2011

2.2BN USERS

630M WEB SITES

400m TWEETS PER DAY

955M USERS

552M DAILY ACTIVE

72 HOURS UPLOADED EVERY

MINUTE

Page 9: MySQL製品概要

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

MySQLのコミュニティ活動

全世界で1,500万インストール (弊社推計)

Facebookのファン数: 163,000,昨年比+35%増

Twitterのフォロワー数: 25,000, 昨年比+67%増

MySQL Newsletter: 140万サブスクライバ,昨年比+20%増

イベント: MySQL Dev Days & MySQL Tech Tours etc

雑誌などでの認知: CRN, Linux Journal, PHP Architect...

MySQLはクラウドでの利用も拡大中

Page 10: MySQL製品概要

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

WEB

ENTERPRISE

EMBEDDED

CLOUD

業界のトップ企業を支えるMySQL

Page 11: MySQL製品概要

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

クラウドコンピューティングにおけるMySQL

Page 12: MySQL製品概要

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

3,000社以上での組み込み事例

Page 13: MySQL製品概要

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

MySQL Server適用例:Facebook

• 約11億ユーザが参加する世界最大のSNS

– 数千台のMySQLサーバを運用中

• 分散キャッシュmemcachedと組み合わせて負荷分散

• ユーザの急激な増加に対応(2008年1億→2010年4億)

• レプリケーション*で米国大陸を横断するデータ転送

* MySQLの標準機能

• 秒間のトラフィック

– 1,300万クエリ以上

– 参照:3,700万行

– 更新:350万行

– 440万IOPS

Page 14: MySQL製品概要

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

• 艦載機・飛行甲板の運用管理

– 空母に搭載された航空機のメンテナンス、燃料補給計画の管理

– 空母上の飛行甲板の利用を含む、

フライトプランの作成および管理

• MySQL Cluster

– 4ノードのLinux上で利用

– 単一障害点のない完全な冗長性

– 障害を想定したテストでの安定性と

フットプリントの小ささが選択理由

• 世界最大の軍艦 ニミッツ級航空母艦で運用中

MySQL Cluster適用例:

Page 15: MySQL製品概要

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

Aadhaar - インド版国民総背番号制度

• 国民全員のID番号と生体認証情報を管理

• トランザクショナルな処理は全て商用版MySQLを利用

• 統計分析や不正検出にはHadoopを利用

• 2013年1月現在で約2億6,000万ID発行済み

• 将来的には1日3,000億件のID照合、約25PB

アーキテクトによるプレゼンテーション: http://goo.gl/AXmQs

OSS導入の経緯を紹介したニュース記事: http://goo.gl/AmEO9

Page 16: MySQL製品概要

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

コミュニティ版と商用版

→ データベース機能はコミュニティ版にも「全部入り」

プラガブル ストレージエンジン

→ テーブル毎に機能変更可能なMySQL"だけ"の機能

オープンソース&企業としての開発と管理

→ 全てを知るエンジニアによる責任を持ったサポート

Page 17: MySQL製品概要

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

MySQLのコミュニティ版と商用版

• 付加価値として技術サポートや管理機能、拡張機能を 有償の商用版として提供

• コミュニティ版ソフトウェアはGPLでソースコードも提供

• MySQL Community Server

• MySQL Cluster (Community Edition)

• MySQL GUI管理ツール

• MySQLコネクタ (JDBC, ODBC, etc)

• ドキュメント

•フォーラム

コミュニティ版

•Standard Edition

•Enterprise Edition

•MySQL Cluster

Carrier Grade Edition

•商用ライセンス (組み込み用)

• トレーニング

•プロフェッショナルサービス

商用版

Page 18: MySQL製品概要

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

商用版MySQLをご購入いただく理由 費用対効果の高い付加価値

技術 サポート

商用版 MySQL

知財 補償

追加 機能

商用 ライセンス

Page 19: MySQL製品概要

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

商用版MySQLをご購入いただく理由

• 技術サポート: 開発フェーズから本番運用フェーズまで、

問題解決やSQLレビュー、チューニングまで幅広く支援

• 追加機能: 有償版のお客様のみにご利用いただける、

運用性や拡張性、セキュリティを向上させる各種機能

• 知財補償: 著作権を含む全ての知財を企業として

管理しているため提供可能

• 商用ライセンス: 主にMySQLを含んだ製品を配布や

販売する際に利用されるGPLではないライセンス

費用対効果の高い付加価値

Page 20: MySQL製品概要

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

MySQLが組込で採用される理由

• 低コスト: SQL Serverと比較して、コストが90%低い

• クロスプラットフォームの柔軟性: 20以上のプラットフォームをサポート

• ハイパフォーマンス、信頼性、スケーラビリティ:

通信やネットワーク・アプリケーションなどの最も厳しい要求にも、

24時間365日対応可能

• 使い易さ: インストールや設定が簡単で、開発に集中できる

• 管理不要: 専任のデータベース管理者が不要

Page 21: MySQL製品概要

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

ハードウェア構成:

Intel x86_64 Servers: 4、CPU数/Server: 4、コア数/CPU: 8

MySQLとMicrosoft SQL Serverの比較 3年間のTCO

$0

$200,000

$400,000

$600,000

$800,000

$1,000,000

$1,200,000

$1,400,000

$1,600,000

MySQL EnterpriseEdition Microsoft SQL Server

2008 Enterprise Edition Microsoft SQL Server2012 Enterprise Edition

$60,000

$769,860

$1,539,776

Page 22: MySQL製品概要

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

MySQL Strengths

• 世界でもっとも普及している、オープンソースデータベース

• LAMPスタックの“M”

• マルチプラットフォーム対応

– Windows, Linux, Solaris

• 高性能、軽量、高信頼

• 導入や運用の容易性

– ダウンロードからデータベース起動まで15分以内

– 管理不要なシンプルさ

Page 23: MySQL製品概要

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

MySQL Usability

• The MySQL 15 Minutes Rule

– Valid since the early days MySQL

“Download, install and start

using MySQL in 15 minutes.”

Page 24: MySQL製品概要

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

MySQL Usability

Introducing

MySQL Installer for Windows

Page 25: MySQL製品概要

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

MySQL Usability

• 15 Minute Rule down to 3 Minutes for full MySQL stack

– What will you do with all that time?!

>>>

Page 26: MySQL製品概要

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

主要な各種の開発言語およびプラットフォームをサポート

処理効率の高いマルチスレッドモデル

DMLやDDLの解析、コストベースのオプティマイザ、クエリや結果セットなどのキャッシュ

アプリケーションに最適な機能や性能を提供する柔軟性の高い「ストレージエンジン」

各種の物理ストレージを利用可能

MySQL Database Performance, Reliability, Ease of Use

Page 27: MySQL製品概要

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

ストレージエンジンの役割

データ保管 – どこに格納するか、データレイアウト

インデックス – 実装アルゴリズム (Btree, B+, T etc)

メモリ利用 – データキャッシュ、バッファリング

トランザクション – ACID, XA, MVCC, 分離レベル

同時実行性 – ロック、排他制御

Page 28: MySQL製品概要

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

利用可能なエンジンの確認方法

• SHOW ENGINES文

mysql> SHOW ENGINES¥G

************************ 1. row *************************

Engine: MyISAM

Support: YES

Comment: Default engine as of MySQL 3.23 with great

performance

************************* 2. row *************************

Engine: MEMORY

Support: YES

Comment: Hash based, stored in memory, useful for

temporary tables

************************* 3. row *************************

Engine: InnoDB

Support: DEFAULT

Comment: Supports transactions, row-level locking, and foreign keys

...

Page 29: MySQL製品概要

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

ストレージエンジンの指定方法

• テーブル作成時 CREATE TABLE 文で指定

CREATE TABLE t (i INT) ENGINE = InnoDB;

• 指定がない場合はシステムのデフォルトを利用

– --default-storage-engine

– @@storage_engine

• ALTER TABLE文で変更可能

ALTER TABLE t ENGINE = MEMORY;

Page 30: MySQL製品概要

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

ストレージエンジンの確認方法

• テーブルに設定したエンジンの確認

– 例)

SHOW CREATE TABLE City¥G

または

SHOW TABLE STATUS LIKE 'CountryLanguage'¥G

• メタデータ管理スキーマ INFORMATION_SCHEMA にて確認

SELECT TABLE_NAME, ENGINE FROM INFORMATION_SCHEMA.TABLES

WHERE TABLE_NAME = 'City'

AND TABLE_SCHEMA = 'world'¥G

Page 31: MySQL製品概要

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

ストレージエンジン

• MySQLに関する誤解はMyISAMから

• 高速処理だがテーブルロックなどのため非スケーラブル

• 障害に弱くテーブルが壊れやすい

• 非トランザクション、エラー時にロールバック不可

• InnoDB はOracleデータベースに似た特徴

• 書込みおよび参照を高い並列度で実行するスケーラビリティ

• トランザクショナル – 変更コミット、エラー時のロールバック、 スナップショット ( ACID モデル)

• 障害時のクラッシュリカバリ機能

• InnoDB = 5.5以降のデフォルトストレージエンジン

Page 32: MySQL製品概要

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

ストレージエンジン

• MEMORYストレージエンジン

• データをメモリ上に格納

• InnoDBを大きいバッファプールで使用するのと同様の効果

• デフォルトではハッシュインデックスを使用するため、 >, <, BETWEEN などの範囲検索では、USING BTREEの使用を検討

• ARCHIVEストレージエンジン

• データの登録と参照のみができ、データの変更ができない

• CSVストレージエンジン

• データをCSVファイルに格納

• NDBストレージエンジン

• MySQL Clusterで使用されるストレージエンジン

Page 33: MySQL製品概要

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

mysql> create table … engine=csv; [mysql@linux1 gim]$ ls -l total 785848 -rw-rw---- 1 mysql mysql 35 May 1 client_detail_csv.CSM -rw-rw---- 1 mysql mysql 0 May 1 client_detail_csv.CSV -rw-rw---- 1 mysql mysql 291367350000 May 1 flatdata.dat [mysql@linux1 gim]$ mv flatdata.dat client_detail_csv.CSV mysql> flush tables; Query OK, 0 rows affected (0.00 sec) mysql> select count(*) from client_detail_csv; +-------------+ | count(*) | +-------------+ | 1000000000 | +-------------+

Oracleの外部表、他のDBベンダ、オープンソースの

DBでも、こんな機能は実装していない!

※CSVストレージエンジンはインデックス利用不可、トランザクション非対応

CSVストレージエンジンで超高速データローディング!? 10億行のデータをMySQLにロードする最速の手法??

Page 34: MySQL製品概要

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

レプリケーション

• MySQLの標準機能

– シンプルな設定

– マスタ→スレーブ

– 多数Webでの実績

• 非同期型 or 準同期

• 特徴

– 参照性能を向上させる構成

– バックアップ用途での利用も

– 基本は一方向でのデータコピー

だが、双方向や循環型での利用も可能

(データの更新には注意が必要)

– 更新ログ(bin-log)を利用

Webアプリケーションでは参照が95%、 更新が5%というケースも (Digg.com)

> シンプルなスケールアウト構成によって 簡単に20倍以上の性能向上が図れる

Page 35: MySQL製品概要

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

非同期レプリケーション

Page 36: MySQL製品概要

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

準同期レプリケーション

Page 37: MySQL製品概要

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

MySQLの高可用性構成

MySQL

Cluster

MySQL

Cluster

アプリケーション/ APサーバ

負荷分散

双方向 同期複製

• MySQL Cluster シェアードナッシング型高性能クラスタ

MySQL

Server

• MySQL+DRBD ノード間データコピー

アプリケーション/ APサーバ

フェールオーバー

同期複製 MySQL

Server

アプリケーション/ APサーバ

共有ディスク

• 3rdベンダ製HAソフト利用 共有ディスクにデータを格納

フェールオーバー

MySQL

Server

MySQL

Server

アプリケーション/ APサーバ

負荷分散

非同期複製

• レプリケーション(標準機能) 非同期&準同期データレプリケーション

MySQL

Server

MySQL

Server

Page 38: MySQL製品概要

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

複合型の高可用性構成例

• 共有ディスク型構成 +レプリケーション

• MySQL Cluster +レプリケーション

MySQL

Cluster

MySQL

Cluster

アプリケーション/ APサーバ

負荷分散

双方向 同期複製

MySQL

Cluster

MySQL

Cluster 双方向 同期複製

非同期複製

アプリケーション/ APサーバ

共有ディスク

フェールオーバー

MySQL

Server

MySQL

Server

MySQL

Server ・・・

非同期複製

アプリケーション/ APサーバ

参照処理の 負荷分散

MySQL

Server

MySQL

Server

Page 39: MySQL製品概要

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

MySQL Enterprise Edition

最高レベルのMySQLスケーラビリティ、セキュリティおよび稼働時間

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 Database MySQL Cluster

Manager

MySQL Enterprise Audit

Page 40: MySQL製品概要

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

MySQL Enterprise Edition

MySQL Database • 高信頼性、高性能

• 運用の容易性

MySQL Workbench • データベース設計 & アプリ開発

• 管理ツール MySQL Administration

MySQL Enterprise Backup • 高速オンラインホットバックアップ

• ポイントインタイムリカバリ

MySQL Enterprise Monitor • 全MySQLサーバの一括監視

• MySQL Query Analyzer

MySQL Enterprise Scalability • Thread Pooling

• 持続可能な高性能

MySQL Enterprise Security • External Authentication 外部認証

• LDAP, Kerberos, Windows AD など

MySQL Enterprise Audit • 監査ログ取得

MySQL Enterprise High Availability • 高可用性構成

Oracle Premier Support • 24x7, 無制限インシデント

• コンサルティングサポート

Page 41: MySQL製品概要

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

New MySQL Editions Standard

SE Enterprise

EE Cluster

CGE

機能概要 MySQL Database ✔ ✔ ✔ MySQL Connectors ✔ ✔ ✔ MySQL Replication ✔ ✔ ✔ MySQL Partitioning ✔ ✔ MyISAM, MEMORY, ARCHIVE ✔ ✔ ✔ InnoDB ✔ ✔ ✔ NDB (ndbcluster) ✔ MySQL Workbench SE* ✔ ✔ ✔ MySQL Enterprise Monitor* ✔ ✔ MySQL Enterprise Backup* ✔ ✔ MySQL Enterprise Audit* ✔ ✔ 外部認証サポート* ✔ ✔ スレッドプール* ✔ ✔ MySQL Enterprise High-Availavility* ✔ ✔ MySQL Cluster Manager* ✔ MySQL Cluster Geo-Replication ✔ Oracle Premium Support 24時間365日サポート ✔ ✔ ✔ インシデント数無制限 ✔ ✔ ✔ ナレッジベース ✔ ✔ ✔ バグ修正&パッチ提供 ✔ ✔ ✔ コンサルティングサポート ✔ ✔ ✔

*商用版のみで

利用可能な機能

Page 42: MySQL製品概要

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

MySQL Workbench • MySQLの公式GUIツール

• MySQL Databaseの統合開発環境

• Windows, OS X, Linux 対応

Page 43: MySQL製品概要

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

MySQL Workbenchで出来ること

• 管理

– Server起動/停止、Serverステータス診断、システム/ステータス変数確認、

ログ確認、ユーザ管理、セッション管理、オブジェクト管理、データ編集、など

• 開発

– SQLエディタ、SQL整形、SQLコード補完、SQLシンタックスハイライト、

SQL Snippets(ステートメント再利用)、ビジュアルExplain、など

• 設計

– E-R図作成、フォワードエンジニアリング、リバースエンジニアリング、など

MySQL Workbenchの主要機能一覧

http://www-jp.mysql.com/products/workbench/features.html

Page 44: MySQL製品概要

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

MySQL Workbenchで出来ること

• マイグレーション

– 他DBからMySQLへの移行を支援できるマイグレーションウィザード

• DBドキュメント出力(※)

– データベーススキーマの情報をドキュメント化(テーブル定義書を自動作成)

• データモデルの検証(※)

– DB設計上の間違いや懸念事項を提示

• MySQL Enterprise BackupのためのGUI(※)

– バックアップジョブの作成/実行/スケジュール、クイック・リカバリ

• MySQL Enterprise AuditのためのGUI(※)

– 監査ログの確認

※商用版のみの機能

Page 45: MySQL製品概要

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

DBドキュメント出力(商用版のみ)

• データベーススキーマの情報をドキュメント化

– テーブル定義書を自動作成

– フォーマットは4種類から選択可能

Page 46: MySQL製品概要

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

データモデルの検証(商用版のみ)

• DB設計上の間違いや懸念事項を提示

検証結果の例

例)film_textテーブルについている外部キーfk_film_textが、

inventoryテーブルの主キー以外の列を参照している

Page 47: MySQL製品概要

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

MySQL Enterprise Backup

• 旧称 “InnoDB Hot Backup”

• オンラインバックアップ & リカバリ – 表、インデックス

– サーバレベル、データベースレベル、オブジェクトレベル

• 論理 or 物理バックアップ

• フル or 差分バックアップ

• ポイントインタイムリカバリ

• バックアップデータの圧縮

• MyISAMのバックアップも可能

• マルチプラットフォーム(Windows, Linux, Unix)

Page 48: MySQL製品概要

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

高速なバックアップ

0

5

10

15

20

25

30

26GB - 8 Tables 32GB - 33 Tables

Min

ute

s

Backup Target

Backup

mysqldump

MySQL Enterprise Backup

mysqldumpよりも3.5倍以上速くバックアップ

Page 49: MySQL製品概要

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

高速なリストア

0

20

40

60

80

100

120

140

26GB - 8 Tables 32GB - 33 tables

Min

ute

s

Restore Target

Restore

mysqldump

MySQL Enterprise Backup

mysqldumpよりも16倍速くリストア

Page 50: MySQL製品概要

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

“バーチャルなMySQL DBA”

アシスタント

MySQL Enterprise Monitor

• 複数のMySQLサーバを一括監視可能な ダッシュボード

• システム中のMySQLサーバやレプリケー ション構成を自動的に検出し監視対象に 追加

• ルールに基づく監視と警告

• 問題が発生する前に通知

• 問題のあるSQL文の検出、統計情報の 分析が可能なQuery Analyzer

Page 51: MySQL製品概要

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

クエリ解析機能 - MySQL Query Analyzer

• 全てのMySQLサーバの

全てのSQL文を一括監視

• vmstatなどのOSコマンドやMySQLの

SHOWコマンドの実行、

ログファイルの個別の監視は不要

• クエリの実行回数、エラー回数、実行時間、

転送データ量などを一覧表示

• チューニングのための解析作業を省力化

Page 52: MySQL製品概要

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

アドバイザ、ルール、グラフ

管理全般 • 最適な設定を監視・アドバイス

• 確実なリカバリ

セキュリティ • 計画されていないセキュリティ設定変更を監視・アドバイス

• セキュリティの抜けを検出

アップグレード • インストール済みのバージョンに影響を与えるバグを監視・アドバイス

• MRU/QSP収集のためのパスを更新

レプリケーション

• マスタ/スレーブ間の同

期状況を監視・アドバイス

• より良いレプリケーション構成を提案

メモリ使用状況 • メモリ/キャッシュの利用状況を監視

• パフォーマンス向上のためのメモリチューニングをアドバイス

スキーマ • 計画されていないスキーマ設定変更を監視・アドバイス

• セキュリティの抜けを検出

パフォーマンス • 適切な性能パラメータ設定を監視・アドバイス

• 潜在的なパフォーマンスのボトルネックを検出

• お客様企業個別のベストプラクティス

• ニーズに合わせて、MySQL アドバイザを新規作成あるいは修正

カスタマイズ

250以上のルール、70以上のグラフ カスタムスクリプトの作成、展開、バージョニング、管理にかかる時間を短縮。

データベース管理者だけでは発見不可能な問題やチューニング方法をアドバイス。

Page 53: MySQL製品概要

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

• 設定 スケジューリング • 警告や通知 • ビジュアルな監視 • クエリ解析

サービスエージェントは全てのMySQL Enterpriseプラット

フォームをサポート

サービスマネージャ (Javaサーブレット)はLinux, Solaris, Mac OSX, Windowsで稼働

Enterprise Dashboard(JSP)

Webベース

レポジトリは分析用のパフォーマンスの履歴情報を格納

MySQL Enterpriseサーバ +

サービスエージェント

Enterprise Dashboard

サービス

マネージャ

レポジトリ

Customer Datacenter

• アドバイザでの監視 • イベント毎の警告や通知 • 統計情報の収集とレポジトリ への格納

MySQLやOS、クエリの

統計情報を収集し、マネージャに送信

MySQLやOS、クエリの

統計情報の履歴を格納

Enterprise Monitorのアーキテクチャ

Master-Slave

レプリケーション

Page 54: MySQL製品概要

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

• MySQLデフォルト・スレッド処理 パフォーマンスは高いが、接続数が拡大するとスケーラビリティに制約が出る可能性がある

• MySQL Thread Pool ユーザ接続数の増加に対応し、 パフォーマンスとスケーラビリティを維持

• Thread Pool API

MySQL Enterprise Scalability Thread Pool

Page 55: MySQL製品概要

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

デフォルトのスレッド処理

内部クライアント

デフォルト・スレッド処理

接続

/ステートメントが

永続的にスレッドに

割り当てられる

• 接続は永続的に1スレッドに割り当てられ、すべてのステートメントに同じスレッドが使用

• スレッド、ステートメントの実行に優先順位付けは行わない

• 多数の同時接続

= サーバー・メモリのを大量に消費し、スケーラビリティに制約が出る可能性

接続実行スレッド

外部クライアント

Page 56: MySQL製品概要

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

Thread Poolの有効化

内部クライアント

接続実行スレッド

外部クライアント

Thread Pool

Thread Group 1

Threads 1 - 4096

Thread Group 2

Threads 4097 - 8193

Thread Group N

Threads 8194 - N

• スレッド・グループ数を設定可能(デフォルト = 16)、4096スレッド

• ラウンド・ロビンによって各接続をスレッド・グループに割り当てる

• スレッドは優先付けされる。ステートメントはキューに挿入することで同時 実行を制限し、

サーバの負荷や接続増加に対応したスケーラビリティを確保

Thread Group 1

Thread Group 2

Thread Group N

Page 57: MySQL製品概要

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

MySQL Enterprise Edition

Thread Pool有り

MySQL Community Edition

Thread Pool無し

MySQL Enterprise Edition

Thread Poolでスケーラビリティが18倍向上

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 DDR RAM

Page 58: MySQL製品概要

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

MySQL Enterprise Edition

Thread Pool有り

MySQL Community Edition

Thread Pool無し

MySQL Enterprise Edition

Thread Poolでスケーラビリティが60倍向上

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 DDR RAM

Page 59: MySQL製品概要

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

• PAM(Pluggable Authentication Modules)

• 外部認証方式へのアクセス

• 標準のインタフェース(Unix、LDAP、Kerberosなど)

• プロキシ/非プロキシユーザー

• Windows

• ネイティブWindowsサービス(WAD)へのアクセス

• Windowsにログイン済みユーザを認証

• プラガブル認証API

MySQL Enterprise Security MySQLの外部認証

MySQLアプリケーション を既存のセキュリティ・インフラストラクチャ/SOPと統合

Page 60: MySQL製品概要

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

MySQL Enterprise Audit ポリシーベースの監査機能を提供

• ログオン、クエリーの情報を監査可能

• ユーザがポリシーを設定可能:フィルタリング、ログローテーション

• 動的に設定を変更可能:Audit設定時にサーバの再起動が不要

• Oracleの仕様に合わせてXMLベースの監査ログを出力

• MySQL 5.5のAudit APIを使って実装

• MySQL 5.5.28 以上で使用可能

監査が必要なアプリケーションでもMySQLを利用可能

Page 61: MySQL製品概要

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

Oracle VM Template for MySQL

• Oracle Linux、Unbreakable Enterprise Kernelを搭載

• Oracle VM & Oracle VM Manager

• Oracle Cluster File System 2 (OCFS2)

• MySQL Database (Enterprise Edition)

プレインストール、事前構成済

完全な統合および QAテスト

サポートの一元化*

Windows Server フェール

オーバークラスタリング • MySQLまたは基盤になっているサーバーの障害が検出された場合; MySQLはスタンバイ・ノードで再起動

• メンテナンス作業のための手動でのフェールオーバー

ネイティブWindows Clusteringサービスを使用してビジネス・クリティカ ル・アプリケーションを構築

Windows上でHAソリューションを拡張

MySQL Enterprise High Availability

•Oracle LinuxおよびOracle Virtual Machineの技術サポートには、

Unbreakable Linux Networkのサブスクリプションが必要

Page 62: MySQL製品概要

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

• 認定構成だからこそ実現できる、Oracleによる フルスタックサポート – Oracle Linux Unbreakable Enterprise Kernel R2 に

統合されたDRBD

– Oracle Linux6.2以上で使用可能

– オラクルのULN (Unbreakable Linux Network)から

パッケージを更新

– クラスタリングとフェイルオーバーのために、

Pacemaker と Corosync を使用

• 分散ストレージを利用するため、共有ディスクや SAN不要 – 同期レプリケーションによってデータを失うリスクを回避

• オープンソースで実績の多いソリューション

MySQL Enterprise High Availability Oracle Linux + DRBD Stack

※ホワイトペーパー : DRBD - Configuration and Deployment Guide

http://www.mysql.com/why-mysql/white-papers/mysql_wp_drbd.php

Page 63: MySQL製品概要

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

MySQL Enterprise High Availability Oracle Solaris Clustering

• カーネルレベルでのハートビートと監視

• SPARCおよびx86。 Solaris Virtualization と組み合わせ可能

• MySQL向けのエージェントがOracle Solaris Cluster に含まれている

• 詳細は: http://www.oracle.com/technetwork/server-storage/solaris-cluster/overview/index.html

Page 64: MySQL製品概要

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

MySQLの高可用性ソリューション

MySQL 5.6

レプリケーション

Oracle VM

Template

Solaris

Cluster

Windows

Cluster DRBD

MySQL

Cluster

自動フェイルオーバー ✔ ✔ ✔ ✔ ✔ ✔

データロス無し Semi-Sync ✔ ✔ ✔ ✔ ✔

サポートOS All Linux Solaris Windows Linux All

クラスタモード Master +

Slaves

Active/

Passive

Active/

Passive

Active/

Passive

Active/

Passive

Multi-

Master

共有ディスク 不要 必要 必要 必要 不要 不要

可用性デザイン 99.9% 99.99% 99.99% 99.95% 99.99% 99.999%

単一ベンダサポート ✔ ✔ ✔ ✖ ✔ ✔

Page 65: MySQL製品概要

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

• Oracle Fusion MiddleWare

• WebLogic Server

• Database Adapter for Oracle SOA

Suite

• Oracle Business Process Management

• Oracle Virtual Directory

• Oracle Data Integrator

• Oracle Enterprise Performance

Management

• Oracle Identity Analytics

• Open SSO STS, Open SSO Fedlet

• Oracle Linux

• Oracle VM

• Oracle VM Template for MySQL

Enterprise Edition

• Oracle Solaris Clustering

• Oracle GoldenGate

• Oracle Secure Backup

• Oracle Audit Vault and Database Firewall

• MyOracle Online Support

MySQL EnterpriseとOracle製品との動作保証 対応済み

Page 66: MySQL製品概要

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

• Oracle Fusion MiddleWare

• WebCenter Suite

• Enterprise Content Management

• Oracle Business Intelligence Suite

• Oracle Clusterware

• Oracle Enterprise Manager

• その他…

MySQL EnterpriseとOracle製品との動作保証 対応中

Page 67: MySQL製品概要

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

MySQL Supportの特徴

• 「パフォーマンス・チューニング」や

「SQLチューニング」まで通常サポートの範囲内

– コンサルティングサポートが含まれており、「クエリ・レビュー」、「パフォーマンス・チューニング」、「レプリケーション・レビュー」、「パーティショニング・レビュー」

などに対応可能

– 詳細はこちらを参照下さい

http://www-jp.mysql.com/support/consultative.html

• ソースコードレベルでサポート可能

– ほとんどのサポートエンジニアがソースを読めるため、対応が早い

– 開発エンジニアとサポートエンジニアも密に連携している

Page 68: MySQL製品概要

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

•物理サーバー単位課金

– CPU数、コア数に依存しない価格体系

•オラクルのライフタイムサポート

–詳細はこちらを参照下さい http://www.oracle.com/jp/support/lifetime-support/index.html

http://www-jp.mysql.com/support/

MySQL Supportの特徴

Page 69: MySQL製品概要

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

MySQL Cluster Carrier

Grade Edition

Page 70: MySQL製品概要

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

MySQL Clusterとは?

• MySQLとは開発ツリーの異なる別製品

• 共有ディスクを使わずに、アクティブ-アクティブのクラスタ構成が組める

• 元々はSQLを使わないデータベースだったが、MySQLと統合され

SQLも使えるようになった

(NoSQL(KVS)とSQLの両方が使えるデータベース)

向いているシステム

• 高可用性が求められるシステム

• 同時多発的に大量のトランザクションが発生するシステム

• 読込み処理だけでなく、書込み処理に対しても拡張性が求められるシステム

Page 71: MySQL製品概要

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

MySQL Cluster: Overview

• 自動シャーディング、マルチマスター

• ACID 準拠のトランザクション, OLTP + Real-Time Analytics

読込み/書込み処理

に対する高い拡張性

• シェアードナッシング、単一障害点無し

• 自動修復 + オンラインオペレーション 99.999% の高可用性

• オープンソース + 商用版

• コモディディハードウェア + 充実した管理ツール、監視ツール 低い TCO

• Key/Value + SQL の柔軟性

• SQL + Memcached + JavaScript + Java + JPA + HTTP/REST & C++ SQL + NoSQL

• インメモリデータベース + ディスクデータ

• 非常に低いレイテンシ、短いアクセス時間 リアルタイム

Page 72: MySQL製品概要

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

導入事例: 携帯電話ネットワーク

HLR / HSS

課金, 認証, VLR

認証, 追跡接続サービス, 課金

位置情報 の更新

プリペイ& ポストペイ課金

• 大量の書き込みトランザクション

• 3ms未満のデータベースレスポンス

• 停止時間 & トランザクション消失 = ビジネスの損失

MySQL Cluster in Action: http://bit.ly/oRI5tF

Page 73: MySQL製品概要

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

導入事例: 航空機管制システム • 米国海軍航空母艦

• 包括的航空機運用管制システム • メンテナンス記録

• 燃料搭載量管理

• 気象状況

• 飛行甲板管理

• システム要件 • 単一障害点無し

• 完全な冗長性

• 小さなフットプリント & 過酷な利用環境での利用

• 4台のMySQL Clusterノード LinuxおよびWindows

MySQL User Conference Session: http://bit.ly/ogeid3

Page 74: MySQL製品概要

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

Who’s Using MySQL Cluster?

Page 75: MySQL製品概要

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

MySQL Cluster アーキテクチャ

データ・ノード

ノード・グループ1

F1

F3

F3

F1

ノード

1

ノード

2

ノード・グールプ 2

F2

F4

F4

F2

ノード

3

ノード

4

アプリケーション・ノード

管理ノード 管理ノード

REST JPA

Page 76: MySQL製品概要

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

SQLとNoSQL それぞれのベストを採用 SQL と NoSQLの組み合わせ

• SQL: 複雑なリレーショナル・クエリ

• HTTP / memcached: キー・バリュー型Webサービス

• Java: エンタープライズ・アプリケーション

• NDB API: リアルタイム・サービス

• Node.js: 非同期処理

様々な

組み合わせ

データ・ノード

NDB API

クライアント

ネイティブ memcached HTTP/REST

JDBC / ODBC

PHP / PERL

Python / Ruby Node.js

Page 77: MySQL製品概要

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

MySQL Cluster ベンチマーク結果 7.1と比べて8倍の性能向上

1分間に10億回の読取り(SELECT)

- 8x Intel Xeon x5670, NoSQL C++ API, flexAsynch benchmark

0

2

4

6

8

10

12

14

16

18

20

MySQL Cluster 7.1 MySQL Cluster 7.2

Re

ads

pe

r Se

con

d (

Mill

ion

s)

Page 78: MySQL製品概要

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

MySQL Cluster ベンチマーク結果

1分間に43億回の読取り(SELECT)

- 30x Intel Xeon E5-2670, NoSQL C++ API, flexAsynch benchmark

Page 79: MySQL製品概要

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

0

5

10

15

20

25

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30

Mil

lio

ns o

f U

PD

AT

Es

per

Se

co

nd

MySQL Cluster Data Nodes

MySQL Cluster ベンチマーク結果 非常に高いスケーラビリティ

1分間に12億回の書込み(UPDATE)

- 30x Intel Xeon E5-2670, NoSQL C++ API, flexAsynch benchmark

Page 80: MySQL製品概要

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

MySQL Cluster 7.3: Connection Thread Scalability

データノードへのコネクションのスループット向上

mutexの分割により、スループットが向上

設定をより簡単に

スケーラビリティの向上

最大ノード数は256ノードまで

接続毎に7.5倍の性能向上

SQL & NoSQL の両方において

MySQL Cluster Data Nodes

MySQL Cluster Data Nodes

With Connection

Thread Scalability

Page 81: MySQL製品概要

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

MySQL Cluster Connection Thread Scalability

• DBT2 Benchmark

– Single MySQL Server

– Single Data Node

– 128 client connections

8.5x

Page 82: MySQL製品概要

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

監視 &

リカバリ

無停止

メンテナンス

管理作業

の自動化

低コストでより柔軟性をもった

高可用性データベース環境を構築&管理可能に

MySQL Cluster Manager

Page 83: MySQL製品概要

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

MySQL Cluster Manager

例: MySQL Cluster 7.0 から 7.2へのアップグレード

• 1 x クラスタの事前状態チェック • 8 x ssh コマンド/サーバー • 8 x 停止コマンド/プロセス • 4 x 構成ファイルの転送 - scp

(2 x mgmd & 2 x mysqld) • 8 x プロセスごとの開始コマンド • 8 x 開始または再参加プロセスの確認 • 8 x 完了確認処理 • 1 x クラスタ全体の完了確認 • 各構成ファイルの手動による編集を除

合計: 46 コマンド- 2.5 時間の作業

MySQL Cluster Manager 導入前 MySQL Cluster Manager では

upgrade cluster --package=7.2 mycluster;

合計: 1 コマンド -

完全自動処理 – データベース・クラスタ管理の負荷および複雑さを削減

– 管理エラーによるダウンタイムのリスクを排除

– クラスタ管理のベストプラクティスを自動化

Page 84: MySQL製品概要

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

MySQL Enterprise Edition & Cluster CGEの評価

• Oracle Software Delivery Cloud

http://edelivery.oracle.com/

• 製品パックを選択: “MySQL Database”

• 製品マニュアル http://dev.mysql.com/doc/index-enterprise.html

30日間トライアル

Page 85: MySQL製品概要

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

MySQLの最新情報配信

• MySQLホームページ

http://www-jp.mysql.com/

• MySQL イベント

http://www-jp.mysql.com/news-and-events/events/

• MySQLニュースレター(月刊)※マイプロファイル内からMySQLを選択ください

http://www.oracle.com/jp/syndication/subscribe/index.html

• MySQL Twitter

@mysql_jp

• OTN セミナー オンデマンド コンテンツ

http://www-jp.mysql.com/news-and-events/generate-article.php?id=1709

Page 86: MySQL製品概要

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

Oracle University MySQL研修コース • MySQL管理 I

– 日数:3日間 – 内容:インストール、設定、管理操作、ストレージエンジンの特徴、ユーザー管理

• MySQL管理 II – 日数:2日間

– 内容:テーブルメンテナンス、エクスポートインポート、ストアドルーチン、ビュー、 バックアップ・リカバリ

• MySQL Performance Tuning – 日数:4日間

– 内容:チューニング戦略、サーバー設定変数、 ステータス変数、クエリ最適化 ※英語テキスト

• MySQL Cluster – 日数:3日間

– 内容:クラスタの管理 ※英語テキスト

オラクルMySQL研修コース : www.oracle.com/jp > 研修/資格 > 研修サービス > Database > MySQL

http://education.oracle.com/pls/web_prod-plq-dad/ou_product_category.getFamilyPage?p_family_id=406

管理 I 管理 II

Tuning HA Cluster

Cluster資格対応

Administrator資格対応

Page 87: MySQL製品概要

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

お問合せ先

• [MySQL お問い合わせ窓口]

0120-065556

【受付時間】 平日 9:00-12:00/13:00-18:00

(祝日及び年末年始休業日を除きます)

[email protected]

Page 88: MySQL製品概要

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

Page 89: MySQL製品概要

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

89