75
© 2014 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. AWS Black Belt Tech Webinar 2014 (旧マイスターシリーズ) Amazon Relational Database Service (Amazon RDS) 2014.04.16(2014.9.30更新) アマゾンデータサービスジャパン株式会社 ソリューションアーキテクト 松尾康博 テクニカルトレーナー 江川大地

AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

Embed Size (px)

DESCRIPTION

AWS Black Belt Tech Webinar 2014 (旧マイスターシリーズ) Amazon Relational Database Service (RDS)

Citation preview

Page 1: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

AWS Black Belt Tech Webinar 2014(旧マイスターシリーズ)

Amazon Relational Database Service(Amazon RDS)

2014.04.16(2014.9.30更新)アマゾンデータサービスジャパン株式会社

ソリューションアーキテクト 松尾康博テクニカルトレーナー 江川大地

Page 2: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

2

今日のAgenda

Amazon RDSの概要Amazon RDSの主要機能についてAmazon RDSの新機能紹介料金モデルTips (参考情報)まとめ

Agenda

Page 3: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

3

お客様のアプリケーション

認証 AWS IAM

モニタリングAmazon

CloudWatch

Web管理画面Management

Console

デプロイと自動化AWS Elastic Beanstalk

AWS CloudFromation

IDEプラグインEclipse

Visual Studio

ライブラリ & SDKsJava, PHP, .NET,

Python, Ruby

Development & Administration

AWS グローバルインフラGeographical Regions, Availability Zones, Points of PresenceAZRegion

ネットワーク & ルーティングAmazon VPC / Amazon Elastic Load Balancer / Amazon Route 53 /AWS Direct Connect

InfrastructureService

コンピュータ処理 Amazon EC2

Auto Scale

ストレージ Amazon S3Amazon EBS

Amazon GlacierAWS StorageGateway

データベースAmazon RDS

Amazon DynamoDBAmazon Redshift

コンテンツ配信Amazon CloudFront

メッセージAmazon SNSAmazon SQSAmazon SES

分散処理Elastic MapReduce

検索エンジン Amazon Cloud Search

キャッシングAmazon Elasticache

ワークフロー管理Amazon SWF

Application Service

Page 4: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

4

AWS が提供するデータベースサービス

完全マネージド型で、セットアップ、運用、拡張が容易なリレーショナル・データベースサービス

Amazon RDS

Amazon DynamoDB

完全マネージド型で、高速なパフォーマンス、シームレスな拡張性と信頼性をNoSQLサービス

Amazon Redshift

高速で管理も万全なペタバイト規模のデータウェアハウスサービス

Amazon ElastiCache

完全マネージド型で、セットアップ、運用、拡張が用意なキャッシュサービス

Page 5: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

5

典型的Webアーキテクチャ(他のサービスとの組み合わせ)

東京リージョン

AZ-1a AZ-1c

RDSマスタ RDSスレーブ自動同期

ELB(ロードバランサ)

Amazon Route 53(ドメイン名割り当て)

静的コンテンツ

S3

CloudFront(コンテンツ 配信)

EC2EC2

Page 6: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

6

Amazon RDSとは?

構築• 数クリック or APIでDBサーバを操作• EC2同様、初期費用無し、時間単位の従量課金

移行• 4種類のエンジンをサポート• 既存アプリケーションの変更不要

運用• 可用性向上のための機能• モニタリング、障害検出/復旧、パッチ、スケーリングが容易

セキュリテイ• セキュリティグループ、VPC対応

https://aws.amazon.com/jp/rds/ 

Page 7: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

7

自社構築 vs. RDS

Power, HVAC, netRack & stack

Server maintenance

OS patches

DB s/w patchesDatabase backups

ScalingHigh availability

DB s/w installs

OS installation

App optimization

Power, HVAC, netRack & stack

Server maintenance

OS patches

DB s/w patchesDatabase backups

ScalingHigh availability

DB s/w installs

OS installation

App optimization

Power, HVAC, netRack & stack

Server maintenance

OS patches

DB s/w patchesDatabase backups

ScalingHigh availability

DB s/w installs

OS installation

App optimization

オンプレミス On EC2 RDS

お客様がご担当する作業 AWSが提供するマネージド機能

Page 8: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

8

インスタンスクラス

8GB

16GB

32GB

60GB

122GB

244GB

4core 8core 16core 32core

r3.8xl

2core1core

r3.4xl

r3.2xl

r3.xl

r3.large

m3.2xl

m3.xl

m3.large

4GB

t2.small

t2.micro

R3:メモリ/コア 多めM3:メモリ/コア 普通T2: 小さめ(バースト可能)

t2.medium

Page 9: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

9

DBインスタンスクラスとスペックDB Instance Class メモリ(GiB) vCPU PIOPS

最適化ネットワーク

db.t2.micro※ 1 1 低 – 中db.t2.small※ 1 2 低 – 中db.t2.medium※ 2 4 低 – 中db.m3.large 7.5 2 中

db.m3.xlarge 15 4 500Mbps 高

db.m3.2xlarge 30 8 1000Mbps 高

db.r3.xlarge※ 30.5 4 中

db.r3.2xlarge※ 61 8 500Mbps 中

db.r3.4xlarge※ 122 16 1000Mbps 高

db.r3.8xlarge※ 244 32 10Gbit

http://aws.amazon.com/jp/rds/details/ 

※ PostgreSQL, MySQL5.6, SQL Serverのみサポート

Page 10: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

10

DBエンジン

現在4種類をサポートMySQL• 5.1.x、5.5.x、5.6.xを選択可能

PostgreSQL• 9.3.xを選択可能

Oracle• 11g R2 (11.2.0.x )• BYOL:SE1, SE, EEをサポート• ライセンス込み:SE1

SQL Server• 2008 R2, 2012を選択可能• BYOL: Standard Edition, Enterprise Edition• ライセンス込み:Express, Web Edition, Standard Edition

Page 11: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

11

今日のAgenda

Amazon RDSの概要Amazon RDSの主要機能についてAmazon RDSの新機能紹介料金モデルまとめ

Agenda

Page 12: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

12

主要な機能

信頼性向上運用性能セキュリティ

Page 13: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

13

主要な機能

信頼性向上運用性能セキュリティ

Page 14: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

14

可用性スループット増

レイテンシ

スケールアップ

Multi AZ

リードレプリカ

プロビジョンドIOPS

リードレプリカスケールアップ プロビジョンド IOPS

Region

Multi-AZ

Availability zone

Availability zone

簡単に高性能・可用性の構成を実現

Page 15: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

15

RDS(MySQL) アーキテクチャアベイラビリティゾーンA アベイラビリティゾーンB

自動バックアップスナップショット(自動/手動)

データ同期

非同期レプリケーション

自動フェイルオーバー

Binlog(トランザクション

ログ)(5分間隔)

Binlog(トランザクション

ログ)(5分間隔)

Binlog

S3 Availability Zone A Availability Zone B

Page 16: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

16

RDS(MySQL) アーキテクチャ

16

アベイラビリティゾーンA アベイラビリティゾーンB

自動バックアップ

スナップショット

自動バックアップ

スナップショット

データ同期

非同期レプリケーション

自動フェイルオーバー

マルチAZデプロイメント(Multi-AZ)

Page 17: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

17

マルチAZデプロイメントとは(Multi-AZ)ワンクリックで耐障害性を向上可能なソリューション• 高い技術力を持つDBAが行っていた設計をそのままサービス化

同期レプリケーション+自動フェイルオーバ• アプリ側での対処は必要なし(エンドポイントは変わらない)

フェイルオーバのタイミング• パッチ適用などのメンテナンス計画停止• インスタンスやハードウェア障害• 手動reboot時に強制フェイルオーバー指定

Region

Multi-AZ

Availability zone

Availability zone

http://aws.amazon.com/jp/rds/mysql/#Multi-AZ 

Page 18: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

18

RDS(MySQL) アーキテクチャアベイラビリティゾーンA アベイラビリティゾーンB

自動バックアップ自動バックアップ

データ同期

非同期レプリケーション

自動フェイルオーバー

リードレプリカBinlog

(トランザクションログ)

(5分間隔)

Binlog(トランザクション

ログ)(5分間隔)

Page 19: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

19

リードレプリカ(RR)とは?

読み込み専用コピー• MySQL固有のレプリケーション機能で実現• 各RRは個別のエンドポイントを持つ• デフォルトで最大5台まで増設可能• マルチAZとの組み合わせも可能

想定ユースケース• Read(select)のスケーリングや、BI等の解析処理※ Multi-AZの耐障害性の代替の機能ではない

新機能• リージョンをまたいだリードレプリカ構成• オンプレミス/EC2 と組み合わせたレプリケーション• リードレプリカをマスターに昇格• 多階層リードレプリカ構成

リードレプリカ

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html 

Page 20: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

20

RDS(MySQL) アーキテクチャアベイラビリティゾーンA アベイラビリティゾーンB

自動バックアップ

スナップショット

自動バックアップ

スナップショット

データ同期

非同期レプリケーション

自動フェイルオーバー

自動バックアップ機能

Page 21: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

21

自動バックアップとリストア

RDS標準機能• 自動スナップショット+トランザクションログをS3に保存

自動スナップショット• 1日1回自動取得 (バックアップウインドウで指定した時間帯)• 保存期間は最大35日分 (0日~35日の間で設定可能)• (任意のタイミングで、手動取得も可能)

2種類のリストア方法• リストア:任意のスナップショットを元にDBインスタンス作成• Point-In-Time-Recovery:

• 指定した時刻(直近5分)の状態のDBインスタンス作成

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_CommonTasks.BackupRestore.html

Page 22: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

22

スナップショット利用シーン

Production.xxx.amazonaws.com

本番インスタンス障害後に、スナップショットから新たにインスタンス起動。アプリケーションは新しいエンドポイントに接続するように修正

自動Snapshot本番インスタンス

Production2.xxx.amazonaws.com

リストア or Point-in-time-recovery

Page 23: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

23

スナップショット利用シーン

Production.xxx.amazonaws.com

テーブル変更などを伴う大きなアプリケーションアップデートを実施する前に手動でスナップショットを取得しておく。スナップショットから旧バージョンのインスタンス起動・接続することで切り戻しを実現

手動Snapshot本番インスタンス

Production2.xxx.amazonaws.com

リストア or Point-in-time-recovery

Update Ver.Old Ver.

Issue?

Page 24: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

24

スナップショット利用シーン

スナップショットのリージョン間コピー• 別リージョンにスナップショットをコピー可能。• 別リージョンで、スナップショットからインスタンス起動可能

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CopySnapshot.html 

Page 25: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

25

主要な機能

信頼性向上運用性能セキュリティ

Page 26: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

26

ソフトウェアメンテナンス

RDS標準機能• メンテナンスウインドウで指定した曜日・時間帯に自動実施

メンテナンス内容• 安全性・堅牢性に関わるソフトウェアパッチを自動適用• Rebootを伴う場合も

TIPS• メンテナンスは数ヶ月に一度の頻度で発生(毎週必ずではない)• 指定した時間帯の数分間で実施(メンテナンス内容に依存)• アプリケーション側で、DBアクセス出来ない場合にSorryペー

ジを返す仕組みを入れておく• トラフィックが少ない曜日・時間帯を指定しておく• Event 通知を運用監視に組み込んでおく

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_TerminologyandKeyConcepts.html#Concepts.DBMaintenance

Page 27: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

27

イベント通知 (DB Event Subscriptions)

RDSで発生した40以上のイベントをSNS経由でPush通知• シャットダウン、再起動、バックアップ開始終了、フェイルオーバー、設

定変更、メンテナンス開始終了、etcアプリケーションと組み合わせた自動化やログ保存が容易に

DB event

Alarm

Queue

Email Notification

Message

HTTP Notification

Amazon SNS

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Events.html 

Page 28: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

28

DBエンジン ログ種別 保持期間

PostgreSQL  - (ログ種別という概念がない) 7日間※2

MySQL Error, Slow Query※1, General※1 24時間

Oracle Alert, Trace 7日間※2

SQL Server Error, Agent, Trace 7日間※2

ログアクセス機能

各種ログを直接参照する機能• API経由 でダウンロード or マネジメントコンソールで表示

※1 Parameter Groupで有効化するとアクセス可能※2 Parameter Groupで調整可能

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html

Page 29: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

29

Rename

Production.xxx.amazonaws.com

Old.xxx.amazonaws.com

EC2からRDSに接続する際に使用するエンドポイント(FQDN)を切り替える機能

・障害復旧(リストア・リカバリ)したインスタンスの名前変更

・大規模変更からの切り戻し

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_RenameInstance.html 

Page 30: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

30

Rename ケース1

Production.xxx.amazonaws.com

Old.xxx.amazonaws.com

障害後の復旧として

Snapshot

本番インスタンス

prod2.xxx.amazonaws.com

Prodduction.xxx.amazonaws.com

Page 31: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

31

Rename ケース2

Production.xxx.amazonaws.com

Old.xxx.amazonaws.com

大型リリース時の切り戻し対策として

本番インスタンス

rr1.xxx.amazonaws.com

Prodduction.xxx.amazonaws.com

Update Ver.Old Ver.

Issue

Page 32: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

32

Renameの注意点

DNS 切り替え• すぐに切り替わるわけではない。目安は数分(3分程度)• 当然だが、ある時点で、同一リージョン内にて名前の重複はできない

Renameすると引き継がないもの(APIで取得している場合は注意)• CloudWatchの MetricName(古いMetricは別レコードとして残る)• DB Eventsの Identifier

Renameしてもそのまま引き継ぐもの• MasterとRRの関係• Tag、Snapshot

その他• http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Rena

meInstance.html

Page 33: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

33

主要な機能

信頼性向上運用性能セキュリティ

Page 34: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

34

CloudWatch対応

各種メトリクスを60秒間隔で取得・確認可能• ホスト層のメトリクス( CPU, Memory, etc. )• ストレージのメトリクス(IOPS, Queue Depth, etc.)

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Monitoring.html 

Page 35: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

35

設定パラメータのカスタマイズ

パラメータグループ• 複数のDBインスタンスに一括適用可能なパラメータ群• DBエンジンごとにデフォルト設定を用意。

カスタマイズ• 新たにパラメータグループを作成・編集し、DBインスタンスに

適用することでカスタマイズ可能制約事項• 一部パラメータは、変更不可

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithParamGroups.html 

Page 36: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

36

スケールアップ機能マネージメントコンソールやAPIからスケールアップ可能• インスタンスrebootを伴う• コマンドライン(AWS CLI)からも可能

スケールダウンももちろん可能• 一時的に大きくして、その後戻す、といった運用• 開発DBを日中だけ大きくして使わない夜間は小さくする運用

スペックの範囲• 最小: db.t2.micro (1vCPU, 1GBメモリ) • 最大: db.r3.8xlarge( 32vCPU, 244GBメモリ)

$ aws rds modify-db-instance \       --db-instance-identifier test-db \       --db-instance-class db.m2.4xlarge \       --apply-immediately

スケールアップ

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeInstance.html 

Page 37: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

37

標準ストレージ

EBSボリュームベースのDBストレージ• データベースとログの格納に利用• ストライピングした複数のEBSボリュームで構成• サイズを増量するとボリューム数が増え、IOPS性能が向上• ストレージサイズを動的に(オンラインで)増量可能

DBエンジン サイズ 動的増量

PostgreSQL 5GB-3TB

MySQL 5GB-3TB

Oracle 10GB-3TB

SQL Server( Web , Ex) 20GB-1TB

SQL Server (SE, EE) 200GB-1TB

Page 38: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

38

プロビジョンドIOPS (PIOPS)ストレージ高性能なストレージオプション• ストレージパフォーマンスの性能(IOPS)を指定可能• 低レイテンシと高スループットを安定して実現• 標準ストレージからオンラインでPIOPSに変更可能• フェイルオーバー、クラッシュリカバリの時間短縮にも有効

DBエンジン IOPS サイズ 動的増量

PostgreSQL 1000-30,000 100GB-3TB

MySQL 1000-30,000 100GB-3TB

Oracle 1000-30,000 100GB-3TB

SQL Server( Web , Ex) 1000-10,000 100GB-1TB

SQL Server (SE, EE) 1000-10,000 200GB-1TBhttp://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.html

Page 39: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

39

プロビジョンドIOPS ストレージ(続き)IOPSについての注意点• 各DBエンジンの仕様、Page Sizeや仮想化技術の違いで実際の

IOPSは以下の表のような目安になる• 大きいPIOPSで、低レイテンシ・高スループットが増す• 小さなインスタンスタイプではストレージとのN/W帯域不足で

設定したIOPSに達しない場合がある(m3.xlarge以上を推奨)DBエンジン(最大サイズ、IOPS)

Page Size Max IOPS

PostgreSQL(3TB, 30,000) 8KB 25,000

MySQL(3TB, 30,000) 16KB 20,000

Oracle(3TB, 30,000) 8KB 25,000

SQL Server(1TB, 10,000) 8KB 10,000

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.ProvisionedIOPS.html#USER_PIOPS.Realized

※ Read 50%, Write 50%の場合

Page 40: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

40

主要な機能

信頼性向上運用性能セキュリティ

Page 41: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

41

VPC対応

VPC内部の任意のサブネットで起動可能• 起動する先のサブネットを、DB Subnet Groupで事前に定義• Default VPC環境ではデフォルトで定義済み

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.html 

Page 42: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

42

アクセス制御

Security Groupで実現• EC2インスタンスからDBインスタンスへのアクセス制御を実現• アクセス元 EC2 インスタンスに適用しているSecurity Groupとの紐付け

によりアクセス可能になる注意事項• DBインスタンスの起動場所によって設定対象が異なる• VPC Default環境では DB Security Groupの替りにSecurity Groupを使う• DB Security Groupでは、アクセス元としてSecurity Groupのみ指定可能

起動場所 設定対象

EC2 Classic DB Security GroupEC2 VPC VPC Security GroupVPC Default VPC Security Group

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html 

Page 43: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

43

DBエンジンごとの主要機能まとめ

※ Virginia, Oregon, Irelandリージョンでのみ可能

PostgreSQL MySQL Oracle SQL Server

Multi-AZ ✔ ✔ ✔ △※

リードレプリカ ✔ (GOLDEN GATE)

クロスリージョンレプリカ

✔ (GOLDEN GATE)

Point-In-Time-Recovery 

✔ ✔ ✔ ✔

VPC ✔ ✔ ✔ ✔

Max Storage 3TB 3TB 3TB 1TB

Provisioned IOPS 30,000 30,000 30,000 10,000

Page 44: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

44

今日のAgenda

Amazon RDSの概要Amazon RDSの主要機能についてAmazon RDSの新機能紹介料金モデルまとめ

Agenda

Page 45: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

45

RDSアップデート一覧(2013-2014)2013.4.18 Microsoft SQL Serverメジャーバージョンアップ機能2013.4.18 Oracle Advanced Securityが利用可能に2013.5.23 MySQLのリードレプリカの状態監視をサポート2013.6.7 GA および SLAの発表2013.6.10 料金値下げ(MySQL, Oracle Database, SQL Server)2013.6.20 MySQLのメジャーバージョンアップグレード機能2013.7.1 MySQL 5.6のサポート2013.7.9 Amazon RDS のすべてのリソースにタグ付けをサポート2013.7.9 Amazon RDS のリソースにリソースレベルのアクセス許可をサポート2013.8.29 MySQLのリードレプリカ機能の拡張

(並列レプリカ作成、スナップショットとポイントインタイムリカバリ、2層のレプリカ)2013.9.4 MySQL5.6で cr1インスタンスをサポート2013.9.5 オンプレミス、RDS間のデータインポート/エクスポート機能2013.9.18 モバイル版AWSコンソールがRDSをサポート2013.9.26   Oracle Statspackが利用可能に2013.10.31 リージョン間スナップショットコピーが利用可能に2013.11.7 Microsoft SQL ServerでTDEが利用可能に2013.11.14 PostgreSQLをサポート2013.11.26 MySQLでクロスリージョン・リードレプリカを作成可能に2014.1.13 Oracle Databaseでタイムゾーンオプションが利用可能に2014.1.22 PostgreSQLでXML型とXML関数が利用可能に2014.2.20 M3インスタンスをサポート2014.4.1 料金値下げ(MySQL, Oracle Database, SQL Server, PostgreSQL)2014.4.5 Oracle GoldenGateが利用可能に2014.4.24 MySQL 5.5 から MySQL 5.6へのアップグレードをサポート2014.5.21 SQL Serverにて、Multi-AZが利用可能に(一部リージョン)2014.5.29 R3インスタンスをサポート2014.7.23 PostgreSQLにて、Service Level Agreement とGeneral Availabilityを発表2014.8.4 T2インスタンスをサポート2014.9.4 MySQL 5.6でキャッシュウォーミング機能が利用可能に

http://aws.amazon.com/releasenotes/Amazon-RDS 

Page 46: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

46

RDS全般(エンジン共通) インスタンス• R3追加• M3追加• T2追加

ボリューム• gp2追加

可用性• リージョン間スナップショットコピー機能• GA化 (SLA対応)

運用• モバイル版AWSコンソールに対応• タグ対応

セキュリティ• リソースレベルアクセス許可

Page 47: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

47

DBエンジン – MySQL-

バージョン• 5.6対応• 5.1から 5.5へのメジャーバージョンアップ機能• 5.5から 5.6へのメジャーバージョンアップ機能

可用性• クロスリージョンレプリカ機能• 階層レプリカ 構成対応• 並列レプリカ作成

性能• キャッシュウォーミング機能

Page 48: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

48

キャッシュウォーミング機能MySQL5.6新機能、バッファプールのダンプ/リストアが使用可能に!• 起動直後のDBに対するアクセス性能劣化を防止

ダンプ/リストアのイメージ

使いどころ• 再起動直後のパフォーマンス劣化を防止

— 停止前のダンプ、起動後のリストアで、再起動で消えるキャッシュを復元— フェールオーバー、メンテナンス時の再起動の際に有用

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.InnoDBCacheWarming

Availability zone

Buffer Pool

ダンプ

リストア

Page 49: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

49

キャッシュウォーミング機能

注意点• DB異常終了時、シャットダウン時のダンプ実行がされない可能性あり

使い方1. 再起動時に自動的にバッファプールのダンプとリストアを行う場合

• 下記の設定値をParameter Groupsで設定する– innodb_buffer_pool_dump_at_shutdown = 1– innodb_buffer_pool_load_at_startup = 1

2. 任意のタイミングでバッファプールのダンプ、リストアを行う場合• 下記の関数を実行する

– mysql.rds_innodb_buffer_pool_dump_now– mysql.rds_innodb_buffer_pool_load_now– mysql.rds_innodb_buffer_pool_load_abort

• 実行例

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.InnoDBCacheWarming

=> CALL mysql.rds_innodb_buffer_pool_dump_now();

Page 50: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

50

DBエンジン – Oracle -

標準機能• 11.2.0.3に対応• Character Set ( JA16SJISTILDE, AL32UTF8, etc. )選択• Oracle GoldenGate 利用可能

対応オプション• Oracle Statspack• Oracle Advanced Security(Native Network Encryption, Transparent Data Encryption)• Oracle Time Zone• Oracle Enterprise Manager Database Control• Oracle XML DB• Oracle Application Express (APEX, APEX-DEV)

Enterprise Option ( BYOLでサポート)• Partitioning• Management Packs (Diagnostic, Tuning)• Advanced Compression• Total Recall

詳細情報• https://aws.amazon.com/jp/rds/oracle/

Page 51: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

51

Oracle StatspackOracle StatspackによるDBの性能監視が可能に!• Oracle Statspackとは

• 必要な期間におけるパフォーマンス統計データを出力するツール• スリークエリの発見やチューニングに役立つ情報を取得可能

• RDSでの使い方• RDS for Oracleの全てのバージョン、エディションで利用可能• Option Groupで有効にする• 詳細は以下を参照

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.Options.html#Appendix.Oracle.Options.Statspack

Page 52: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

52

Oracle GoldenGateOracle GoldenGateを使用したレプリケーションが可能に!• Oracle GoldenGateとは

• DB間のデータ連携を提供するツール• ログからデータを抽出し、リモートのデータベースへ転送

• RDSでの使い方• RDS for Oracleの全てのバージョン、エディションで利用可能• EC2上にGoldenGate hubを立てる• 詳しくは以下を参照

• 利用シナリオの例• オンプレミスのDBデータをRDSへ• EC2上のDBデータをRDSへ• RDS上のDBデータを別のRDSへ(別リージョンへも可能!)• RDS上のDBデータをオンプレミスのDBへ

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.OracleGoldenGate.html

Page 53: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

53

DBエンジン – SQL Server - 標準機能• SQL Server Migration Assistant• Database Engine Tuning Advisor (SE, EE, Web)• SQL Server Agent• SSL接続• Multi-AZ対応(Virginia, Oregon, Irelandリージョン)

RDS オプション• Transparent Data Encryption

バージョンアップ• 2008 R2から 2012へのメジャーバージョンアップ機能

詳細情報• https://aws.amazon.com/jp/rds/sqlserver/

Page 54: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

54

DBエンジン – PostgreSQL -

バージョン• 9.3.1 - 9.3.3

標準機能• SSL接続がデフォルトで有効• 多くの拡張モジュールをインストール可能

• 拡張モジュールをインストールすることで利用できる機能の例– プロシージャ– データ暗号化– 外部DBからのデータ取得

• PostGISをRDSオリジナルの拡張モジュールとして提供RDS機能• Multi-AZ, プロビジョンドIOPSなどの主要なRDSの機能をサポート

詳細情報• https://aws.amazon.com/jp/rds/postgresql/

Page 55: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

55

拡張モジュール(contrib)

btree_gin earthdistance pgrowlocks sslinfobtree_gist fuzzystrmatch pg_trgm tablefuncchkpass hstore plperl tsearch2citext intagg plpgsql unaccentcube intarray pltcl uuid-osspdblink isn postgisdict_int ltree postgis_tiger_geocoderdict_xsyn pgcrypto postgis_topology

=> SHOW rds.extensions;

Page 56: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

56

拡張モジュール(contrib)

btree_gin earthdistance pgrowlocks sslinfobtree_gist fuzzystrmatch pg_trgm tablefuncchkpass hstore plperl tsearch2citext intagg plpgsql unaccentcube intarray pltcl uuid-osspdblink isn postgisdict_int ltree postgis_tiger_geocoderdict_xsyn pgcrypto postgis_topology

手続き言語(プロシージャ)を使用できる。

GIS (地理情報システム) オブジェクトを扱うことができる

データを暗号/複合化できる

Key-Value形式でデータを格納できる

外部のPostgreSQLにアクセスできる

• その他の拡張モジュールについては以下を参照。http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#SQLServer.Concepts.General.FeatureSupport

=> SHOW rds.extensions;

Page 57: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

57

拡張モジュールのインストール方法

下記のSQLで拡張モジュールをインストールできる=> CREATE EXTENSION [拡張モジュール名];

=> CREATE EXTENSION dblink;CREATE EXTENSION

(例)

Page 58: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

58

Tips

ロケールの設定• RDS for PostgreSQLのデフォルトのロケール:「en_US」→ 日本語を使う場合、インデックスが使われないなど、問題となる可能性があるため、データベースLaunch後に、ロケールを設定したデータベースを作り直す必要がある。

=> CREATE DATABASE newdb WITH template template0 encoding 'utf8' lc_collate 'C' lc_ctype 'C’;

※ 日本語を使用する場合は、ロケールにCを設定するとよい

Page 59: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

59

Tips

タイムゾーンの設定• デフォルトは UTC• パラメータグループで

Asia/Tokyo を設定するとJSTに変更可能

Page 60: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

60

Tips

クライアント認証設定• pg_hba.confではなく、Security Groupで制御→ アクセス元は、Security Groupで設定 データベースごと、DBユーザごとのアクセス権限設定が 必要な場合は、EC2上にPostgreSQLをたてる必要がある。

Page 61: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

61

今日のAgenda

Amazon RDSの概要Amazon RDSの主要機能についてAmazon RDSの新機能紹介料金モデルまとめ

Agenda

Page 62: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

62

RDSの料金体系

DBインスタンス利用時間 ($/時間)• 標準配備 or Multi-AZ• BYOL or ライセンス込 ( Oracle, SQL Server )

ストレージ• ストレージ容量($/GB/月) とI/O料金

• 標準ストレージ or PIOPS• 標準配備 or Multi-AZ

• バックアップストレージ容量($/GB/月)• I/Oリクエスト数(標準ストレージ) or PIOPS

ネットワーク• RDSからインターネット経由で送信したバイト数 ($/GB)

http://aws.amazon.com/jp/rds/pricing/

Page 63: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

63

2つの価格モデル

オンデマンド DB インスタンス• 通常の時間単位の課金

Amazon RDS リザーブドインスタンス(RI)• 予約金を支払うことで時間当たり価格を割引(最大70%節減)• 全てのエンジンに対応• RI購入時に以下を指定

• リージョン、DBエンジン、DBインスタンスクラス、デプロイメントタイプ(マルチAZ or シングルAZ)、期間(1年 or 3年)

• Oracle, SQL Serverは、ライセンス込みかBYOLを指定

http://aws.amazon.com/jp/rds/reserved-instances/

Page 64: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

64

Multi-AZ 値下げ!

2013年6月 最大28%の値下げ。2014年4月 平均28%の値下げ。

http://aws.typepad.com/aws_japan/2013/06/amazon-rds-price-reduction-on-demand-and-reserved.html http://aws.typepad.com/aws_japan/2014/03/aws-price-reduction-42-ec2-s3-rds-elasticache-and-elastic-mapreduce.html 

Page 65: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

65

Simple Monthly Calculator

Webフォームで概算費用を試算できます§ http://calculator.s3.amazonaws.com/index.html?lng=ja_JP

Page 66: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

66

AWS無料試用枠

AWSでは、無料試用枠( Free Tier)を用意しています• http://aws.amazon.com/jp/free/ 

RDSでの無料試用枠 適用条件• PostgreSQL, MySQL, Oracle (BYOL), SQL Server Express• Single-AZ db.t1.micro 750時間/月• スタンダードストレージ20GB (スナップショット20GB含む)• 1,000万 I/O• https://aws.amazon.com/jp/rds/free/ 

Page 67: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

67

今日のAgenda

Amazon RDSの概要Amazon RDSの主要機能についてAmazon RDSの新機能紹介料金モデルまとめ

Agenda

Page 68: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

68

DBエンジンごとの主要機能まとめ(再掲)

※ Virginia, Oregon, Irelandリージョンでのみ可能

PostgreSQL MySQL Oracle SQL Server

Multi-AZ ✔ ✔ ✔ △※

リードレプリカ ✔ (GOLDEN GATE)

クロスリージョンレプリカ

✔ (GOLDEN GATE)

Point-In-Time-Recovery 

✔ ✔ ✔ ✔

VPC ✔ ✔ ✔ ✔

Max Storage 3TB 3TB 3TB 1TB

Provisioned IOPS 30,000 30,000 30,000 10,000

Page 69: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

69

各種制限

デフォルトで制限がかかっています。• http://docs.aws.amazon.com/general/latest/gr/aws_servi

ce_limits.html#limits_rds • (例)

• RDSインスタンス数: 40• リードレプリカ数: 5• 手動スナップショット数: 50• ストレージ総量: 100TB

必要に応じて、上限緩和申請をお願いします• https://aws.amazon.com/jp/contact-us/ 

Page 70: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

70

参考文献Amazon RDS• http://aws.amazon.com/jp/rds/

Amazon RDS ドキュメント• http://aws.amazon.com/jp/documentation/rds/

Amazon RDS チュートリアル• http://aws.amazon.com/articles/Amazon-RDS

ディスカッション・フォーラム• https://forums.aws.amazon.com/forum.jspa?forumID=60 

ブログ• Amazon Web Services Japan blog• http://aws.typepad.com/aws_japan/• AWS Solutions Architect ブログ• http://aws.typepad.com/sajp/

Page 71: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

71

24時間・365日での日本語サポートの提供日本語でのサポートをご提供しております http://aws.amazon.com/jp/premiumsupport/

ベーシック デベロッパー ビジネス エンタープライズ

受付時間 24時間 / 365日(年中無休)

初回応答時間 セルフサービス 12時間(営業時間内) 1時間 15分

サポート連絡先 N/A 1人 5人 無制限

チャット 不可 不可 可能 可能

TEL 不可 不可 可能 可能

専任スタッフ なし なし なし あり

料金(月額) 無料(AWSの利用料に含まれる) $49/月

AWS利用総額の10%~

※最低料金:$100/月

AWS利用総額の10%~

※最低$15,000/月

Page 72: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

72

Webinar資料の配置場所

AWS クラウドサービス活用資料集• http://aws.amazon.com/jp/aws-jp-introduction/

Page 73: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

73

ご参加ありがとうございました。

Page 74: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

74

Appendix ~ RDS for PostgreSQL

RDS 独自のパラメータ• 素のPostgreSQLにはないRDS独自のパラメータを以下に示しま

す。

パラメータ 概要 変更可否

rds.extensions RDSで使用できる拡張モジュール

の一覧。不可

rds.log_retention_period ログの保持期間 可

Page 75: AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)

© 2014 Amazon.com, Inc. and its affiliates.  All rights reserved.  May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

75

Appendix ~ RDS for PostgreSQL

日本語での全文検索• RDSではPostgreSQL組み込みのテキスト検索機能やcontrib/trgm

が使用できます。しかし、これらは日本語での検索に対応していないため、現状、日本語の全文検索をRDS上で行うことはできません。

ストリーミング・レプリケーション• PostgreSQL組み込みのレプリケーションを使用することはできま

せん。そのため、リードレプリカを持つこともできません。