Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Trying AWS Aurora Serverless.
Search
Dassimen
April 22, 2022
Technology
260
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Trying AWS Aurora Serverless.
Dassimen
April 22, 2022
Transcript
30 slides
Aurora Serverlessを触ってみた 株式会社ゆめみ 鈴木智也 a.k.a だっしー / @anchor_cable April 22,
2022 | #yumemi_note v2のGAを一緒に楽しみにしよう......というつもりでした
2 About Me 鈴木 智也 / だっしー • サーバーサイドエンジニア • メイン業務はPHP、Golangでの開発
• ゆめみで働いてもうすぐ3年 • 毎週月水金に負荷試験の勉強会を主催 ◦ AWSサンドボックス環境を使い倒しています #yumemi_note
皆様 1
ついに 1
Aurora Serverless v2のGAが 来ました!!!!! 1
……。 1
Aurora Serverless v2のGAを 今朝知りました... 1
今日のゴールは 「v2使おう」と思う人が増えること 1
9 今日しゃべること Aurora Serverlessの設定・機能紹介 Auto Scalingを見てみる Aurora Serverless is 何?
1 2 3 #yumemi_note
Aurora Serverless is 何? 1
11 Aurora Serverless is 何? Auto ScalingするAmazon Aurora #yumemi_note Amazon
Aurora Serverless は、Amazon Auroraのオンデマンドの Auto Scaling 設定です。 アプリケーションニーズに応じて、自動的に起動、シャットダウン、および容量を拡大または縮小し ます。Aurora Serverless を使用すると、データベース容量を管理せずにクラウド内でデータベース を実行できます。 (中略) Aurora Serverless では、データベースエンドポイントを作成し、必要に応じてデータベースの容量 範囲を指定し、アプリケーションを接続するだけです。 公式ドキュメントより
12 Aurora Serverless is 何? 覚えることはほぼ無い 管理側のやることは、設定時に「ACU」(後述)の範囲を決めるのみ アプリケーション側から見ると通常のAuroraのように使う事ができる #yumemi_note OK!
実はServerless!
13 Aurora Serverless is 何? Aurora Serverless v1 ユースケースとしては、アクセス頻度の低い個人ブログサイトや、開発環境、テスト環境を想定されてい るようです。
#yumemi_note Amazon Aurora Serverless v1 では、使用頻度が低い、断続的、または予測不能なワークロード向け のシンプルでコスト効率の良いオプションです。 公式ドキュメントより
14 Aurora Serverless is 何? Aurora Serverless v2 既存のAuroraを置換出来る可能性が高まります #yumemi_note
Aurora Serverless v2 (プレビュー) は、開発およびテスト環境、ウェブサイト、使用頻度が低い、断 続的、または予測不能なワークロードを有するアプリケーションから、大規模で高可用性を必要とす る最も要求の厳しいビジネスクリティカルなアプリケーションまで、あらゆる態様のデータベース ワークロードをサポートします。グローバルデータベース、マルチ AZ 配置、リードレプリカなど、 Aurora の幅広い機能をサポートします。 公式の説明
15 Aurora Serverless is 何? ACU:Aurora Capacity Unitとは #yumemi_note ACUは、約2ギガバイト(GB)のメモリ、対応するCPU、およびネットワークの組み合わせです。
(中略) 最小および最大ACUを指定できます。Auroraの最小容量単位は、DBクラスターがスケールダウンでき る最小のACUです。Auroraの最大容量単位は、DBクラスターをスケールアップできる最大のACUで す。設定に基づいて、Aurora Serverless v1は、CPU使用率、接続、および使用可能なメモリのしき い値のスケーリングルールを自動的に作成します。 公式ドキュメントより
16 Aurora Serverless is 何? ACU:Aurora Capacity Unitとは DB作成時に選択し、この範囲でオートスケールする 作成後もDBを立ち上げたまま変更可能、即時反映できる
#yumemi_note
Aurora Serverlessの設定・機能紹介 2
18 Aurora Serverlessの設定・機能紹介 v1:オートスケーリングのタイムアウトとアクション #yumemi_note
19 Aurora Serverlessの設定・機能紹介 v1:非アクティブ後に一時停止 #yumemi_note
20 Aurora Serverlessの設定・機能紹介 v1:一時停止からの自動起動 約30秒ほどで立ち上がることを確認しました #yumemi_note $ time mysql -u
*** -h *****.cluster-*****.ap-northeast-1.rds.amazonaws.com -p$mysql_password speed_check < select.sql 1 1 real 0m28.617s user 0m0.006s sys 0m0.000s
21 Aurora Serverlessの設定・機能紹介 v2:自動停止・起動オプション / 強制スケールは消滅 v1にあった2つのオプションは消滅 使用しない状態で2時間放置した限り、 v2は0ACUにはならず、最低のACUで稼働し続けました (24時間でどうなるのか見ておきます!)
#yumemi_note
22 Aurora Serverlessの設定・機能紹介 v2:AmazonAuroraの全機能をサポート • リードレプリカ • グローバルデータベース • マルチAZ
#yumemi_note
23 Aurora Serverlessの設定・機能紹介 v2:クラスター内でServerlessとそうでないインスタンスを混合できる 既存のAurora DB ClusterにServerlessのインスタンスを追加することも可能 #yumemi_note
Auto Scalingを見てみる 3
25 Auto Scalingを見てみる v1 : オートスケールのメトリクス #yumemi_note 1→2→4→8と 倍々に増えていく 0→16までスケールする
のに25分ほど掛かる
26 Auto Scalingを見てみる v2 : オートスケールのメトリクス ※DeepDiveの動画より引用 #yumemi_note 負荷開始から 約5分で最大まで
27 Aurora Serverlessの設定・機能紹介 v2の主要な変更点 • オートスケールの高速化 “in a fraction of
a second”(一瞬に) • 0.5ACU単位での細かいスケールが可能になった ◦ v1だと2の累乗数ずつしかスケールしない #yumemi_note
28 まとめ • Aurora Serverlessとは ◦ Auto ScalingするAurora ◦ 新しいことを覚えなくても使えるのがイイ
• Aurora Serverlessの機能 ◦ v1は自動シャットダウンができコスパ◦ ◦ v2からAurora標準機能にも対応し、既存のAurora Clusterとの混合もできる • Auto Scalingについて ◦ v1だとやはり少し遅い ◦ v2は高速 #yumemi_note
ご清聴頂き ありがとうございました 1
30 参考資料 • 公式ブログ ◦ https://aws.amazon.com/jp/blogs/aws/amazon-aurora-serverless-v2-is-generally-ava ilable-instant-scaling-for-demanding-workloads/ • AWS re:Invent
2020: Amazon Aurora Serverless v2: Instant scaling for demanding workloads ◦ https://www.youtube.com/watch?v=PQHZrtIgdiA #yumemi_note
More Decks by Dassimen
See All by Dassimen
Write code with "Test First"
anchorcable
0
77
Dialogue for Design
anchorcable
1
350
How to manage a good work environment
anchorcable
0
150
TDD is not slowly.
anchorcable
1
670
3日坊主でも勉強したい
anchorcable
5
6.1k
Design It! is good for architect.
anchorcable
0
170
今だからこそ分かる報連相 / How to do Hou/Ren/Sou!
anchorcable
0
820
TDD supports us all the time.
anchorcable
0
410
I read Tokumaru book on ABD.
anchorcable
1
130
Other Decks in Technology
See All in Technology
おうち環境でも「なるべく止めたくない!」 ― おうち環境の機器冗長化の理想と現実
yuutosi
1
280
IP重複は"ランディングVPC"で受け止める ― PrivateLink と Transit Gatewayによるマルチテナント接続基盤の設計
hatahata021
2
160
複数システムが同居した 15 年物の AWS アカウントを解体するための考古学
wa6sn
3
150
あの日、見つかっていなかったらどうなっていたか
kazzpapa3
2
220
LLM 基盤と kagent v0 を全部 k8s に入れてみた / Deploy both LLM and kagent v0 in k8s
kota2and3kan
0
220
ラクスル会社紹介資料|エンジニア向け / RAKSUL Introduction for Engineers
raksulrecruiting
0
110
人間+AIを「チーム」としてプロセスを再設計する
littlehands
4
2.9k
思考過程から秘密が漏れる:Amazon Bedrock上のKimi K3を5つの方法で攻めたら、25回中22回漏洩した話
yama3133
1
160
E2E Test というハーネス — AI時代の自動テスト民主化
daishukojima
1
760
並列度を下げたら速くなった — go build の重複コンパイルを実測で見る
tomoaki25
2
1.2k
Claude Securityを使ってみた / claude-security-claude-code-meetup-nagoya
tnir
0
120
Bots in Kiro Crew (One point of contact for ongoing work) | Kiro: Zero to Hero 12
inariku
PRO
1
140
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
350
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Test your architecture with Archunit
thirion
2
2.5k
Speed Design
sergeychernyshev
33
2.2k
Faster Mobile Websites
deanohume
310
32k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
Mind Mapping
helmedeiros
1
440
Building Adaptive Systems
keathley
44
3.3k