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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Dassimen
April 22, 2022
Technology
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Trying AWS Aurora Serverless.
Dassimen
April 22, 2022
More Decks by Dassimen
See All by Dassimen
Write code with "Test First"
anchorcable
0
72
Dialogue for Design
anchorcable
1
340
How to manage a good work environment
anchorcable
0
140
TDD is not slowly.
anchorcable
1
650
3日坊主でも勉強したい
anchorcable
5
6k
Design It! is good for architect.
anchorcable
0
160
今だからこそ分かる報連相 / How to do Hou/Ren/Sou!
anchorcable
0
810
TDD supports us all the time.
anchorcable
0
400
I read Tokumaru book on ABD.
anchorcable
1
120
Other Decks in Technology
See All in Technology
データ品質を壊しながらSnowflakeのAIに分析させてみた
kawanago
0
520
事業活動を AI Ready にする攻めと守りのデータエンジニアリング / data-engineering-for-ai-ready-business
pei0804
3
1.1k
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
130
AI時代に必要な脅威モデリング― 変化の速度に負けない理解とリスク判断
masakane55
4
1.1k
Incremental HTTP
kazuho
5
2.1k
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
230
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
1
560
BedrockとLambdaで作る リアルタイム進行型推理ゲーム
kawametho
0
190
Kernel testing frameworks
ennael
PRO
0
110
分析AIエージェントを育てる、動く環境を育てる
codatum
0
110
契約書画像からの情報抽出に特化した視覚接地モデルを育てる話
sansantech
PRO
1
150
AI駆動開発、viviONの1年 ── うまくいったこと・いかなかったこと
vivion
0
260
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
610
Fantastic passwords and where to find them - at NoRuKo
philnash
52
4k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
260
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
970
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
4 Signs Your Business is Dying
shpigford
187
23k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
260
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Transcript
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