introduction of azure database for mysql / postgresql

19
Introduction of Azure Database for MySQL / PostgreSQL 2017/06/17 浅見 城輝 Japan Azure User Group 株式会社 pnop / Cloudlive 株式会社

Upload: kuniteru-asami

Post on 21-Jan-2018

511 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Introduction of Azure Database for MySQL / PostgreSQL

Introduction ofAzure Database forMySQL / PostgreSQL2017/06/17

浅見城輝

Japan Azure User Group

株式会社 pnop / Cloudlive 株式会社

Page 2: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

© 2011 Microsoft CorporationAll Rights Reserved.

About me

kuniteru.asamiFind me

Database

Azure 2012~

Microsoft Azure

Page 3: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

2017年5月ついに MySQL, PostgreSQL のマネージドサービスがリリース(Preview)

Page 4: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

注意

ここにある情報は、2017/06/17 時点のものです。

最新の状況は適宜確認してください。

現在、Azure Database for MySQL, Azure Database for PostgreSQL はプレビューリリースです。

Page 5: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

利用するメリット可用性が高い構成が組まれている

フェールオーバー時の停止時間はほぼない

PITR のできるバックアップが自動でされている

バックアップからリストアしなければならないような障害が発生しても、Azure が(Microsoftが)リストアしてくれる(ユーザーの責任による障害の場合は自分で)

スケールアップ/ダウンによる性能の調整が容易

構築、運用コストが激減する

Page 6: Introduction of Azure Database for MySQL / PostgreSQL

PostgreSQL

(preview)

MySQL

(preview)

Po

wer

BI,

Ap

p S

erv

ices,

Data

Fact

ory

, Analy

tics

, ML,

Co

gnitiv

e, B

ot…

Global Azure with 38 Regions

Compute & Service Fabric

SQL DW

Storage

SQL Database

Flexible: On-demand scaling, Resource governance

Trusted: HA/DR, Backup/Restore, Security, Audit, Isolation

Intelligent: Advisors, Tuning, Monitoring

Azure Managed

Database

Service

Page 7: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

ポイント!Azure SQL Database と共通基盤である。すなわち、以下が実装されている or 今後期待できる

フェールオーバー

セキュリティ

Firewall

ストレージ暗号化

バックアップ暗号化

Geo リストア

Geo レプリケーション

Page 8: Introduction of Azure Database for MySQL / PostgreSQL

・ユーザからはひとつの論理データベースが見える・障害、パッチ適用等のタイミングでフェイルオーバー(リコンフィグレーション)

・この仕組みがMult-AZ等なしに SLA 99.99%(52分/年) を設定できる大きな理由のひとつ

論理データベース

Write

Write Ack

Ack

Read

value write

Ack

Page 9: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

接続のセキュリティFirewall

Azure により Firewall が提供され、接続元を制限することができる

SSLSSL 接続を強制することができる

認証MySQL / PostgreSQL それぞれの標準に準ずる

ユーザー名 = 設定したユーザー名 + “@ “+ 設定したサーバー名

設定したユーザー名 = asami

サーバー名 = mydbsv.mysql.database.azure.com

接続時のユーザー名 = asami@mydbsv

Page 10: Introduction of Azure Database for MySQL / PostgreSQL

ワークロードに合わせたサービス階層

サービスレベル

想定ユースケース低めのワークロード

IOPSが可変でも問題ないケース全体スループットを重視し、IOとCPUのバランスを取りたいケース

レイテンシを重視した、IOワークロードに大きく寄るケース

コンピュートユニット 50, 100 100, 200, 400, 800,1600, 2000 100, 200, 400, 800, 1600, 2000

ストレージ50GB

磁気メディア125GB

リモートSSD125GB

ローカルSSD

IOPS 可変375

3:1 (IOPS:GB)1250

10:1 (IOPS:GB)

追加オプション

99.99% SLA | フルマネージド | 組み込みフェイルオーバー | オンラインでパフォーマンス変更

ストレージ 最大 1 TB 最大 10 TB 最大 4 TB

IOPS 提供なし ストレージ追加に応じて増加 最大 40K IOPS

Page 11: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

コンピューティングユニット

CPU とメモリリソースの割り当て

100 コンピューティングユニット = 1 CPU コア

Page 12: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

サービス階層ごとの制限

同時接続数

(基本的に)選択したコンピューティングユニット値と同数

Page 13: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

※要注意

Page 14: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

(参考) ClearDB

Azure リリース初期からサードパーティであるClearDB 社から提供される MySQL サービス

最大 20MB の無料プランからある

http://w2.cleardb.net/azure/

Page 15: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

バージョンMySQL

5.7 or 5.6

PostgreSQL

9.6 or 9.5

マイナーバージョンのアップデートは自動で実施される

メジャーバージョンのアップグレードはサポートされない

Page 16: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

ストレージエンジン (MySQL)

innodb

MyISAM は一見サポートされているように見えるが使うことができない

MEMORY は使えるけど BLACKHOLE は使えないなどがあるので要確認

Page 17: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

sql_mode (MySQL)「サーバーパラメーター」で設定変更可能

デフォルトは何も設定されていない

Page 18: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

PITR最大

Page 19: Introduction of Azure Database for MySQL / PostgreSQL

©2017 pnop, Inc.

http://www.pnop.co.jp/