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
RDSでGraviton2インスタンスを試してみた
Search
hmatsu47
PRO
December 27, 2020
Technology
710
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RDSでGraviton2インスタンスを試してみた
JAWS-UG 名古屋 コンテナと "re:Invent" の復習 2020/12/28 LT
hmatsu47
PRO
December 27, 2020
Transcript
14 slides
RDS で Graviton2 インスタンスを試してみた (+RDS / Aurora 関連アップデート) JAWS-UG 名古屋
コンテナと "re:Invent" の復習 2020/12/28 まつひさ(hmatsu47)
自己紹介 松久裕保(@hmatsu47) https://qiita.com/hmatsu47 名古屋で Web インフラのお守り係をしています MySQL 8.0 の薄い本を作って配っています ◦
Qiita の記事: https://qiita.com/hmatsu47/items/ceb75caf46e3c761095d ◦ GitHub リポジトリの他、印刷版を勉強会などで無料配布していました ◦ 新型コロナウイルスの関係でオフライン勉強会ができなくなったので、 現在は BOOTH でも配布しています(100円+送料)8.0.22対応版配布中 https://booth.pm/ja/items/2524481 2
今日のテーマ(1 年ぶりの JAWS-UG 名古屋 LT 登壇です) • re:Invent 2020 で発表・RDS
/ Aurora 関連 Update ◦ …のうち、気になったもの • RDS の Graviton2 インスタンスを試してみた ◦ PostgreSQL 12.4-R1(M6g vs M5) ◦ MySQL 8.0.21(同上+MySQL on EC2 との比較) 3
[1] RDS / Aurora 関連 Update(re:Invent 2020 発表) • サーバーワークスのブログ記事でまとめられている
◦ https://blog.serverworks.co.jp/reinvent2020-newupdate-aurora-rds • 個人的に気になったのはこの 2 つ ◦ Babelfish for Aurora PostgreSQL(プレビュー) ◦ Aurora Serverless v2(プレビュー) • その他、記事を探しても見つからなかった話として ◦ Aurora MySQL 8.0(どこかで言及があった模様?) 4
[1-1] Babelfish for Aurora PostgreSQL • SQL Server 互換レイヤを Aurora
PostgreSQL に ◦ T-SQL・通信プロトコルの提供(SQL Server 2014 互換) ◦ https://www.publickey1.jp/blog/20/aurora_postgresqlsql_serverbabelfish_ for_aurora_postgresqlaws_reinvent_2021.html • Babelfish for PostgreSQL は OSS としても提供 ◦ Apache License, Version 2.0 ◦ https://babelfish-for-postgresql.github.io/babelfish-for-postgresql/ 5
[1-2] Aurora Serverless v2 • スケールが速くなった Aurora Serverless ◦ インスタンス入れ替え方式のスケーリングをやめた
◦ やっと開発環境だけでなくプロダクト環境に使えるように…? • 機能面でも本家 Aurora に近づいた ◦ 複数 AZ・Global Database・リードレプリカ・backtrack etc. https://dev.classmethod.jp/articles/reinvent-2020-new-launch-aurora-serverless-v2/ 6
[2] RDS の Graviton2 インスタンスを試してみた • 今秋(10 月頃?)GA になった模様 ◦
M6g・R6g ◦ MySQL は 8.0 のみ対応 ◦ Aurora はプレビュー • 性能比較をしてみた ◦ PostgreSQL 12.4-R1(M6g vs M5) ◦ MySQL 8.0.21(同上+MySQL on EC2 との比較) 7
[2-1] 性能比較をしてみた(RDS M6g vs M5 / Single-AZ) • PostgreSQL 12.4-R1
で比較 ◦ ひたすら INSERT(xlarge 4vCPU・メモリ 16GiB) ◦ pgbench(同上+4xlarge 16vCPU・メモリ 64GiB) • MySQL 8.0.21 で比較 ◦ mysqlslap(4xlarge) ◦ MySQL 8.0.22 on EC2 の mysqlslap と比較 8
https://qiita.com/hmatsu47/items/139640aea998f6602b6e →結果は「引き分け」(詳細は↑のリンク先を参照) [2-1] 性能比較をしてみた(結果 1 : ひたすら INSERT) 9
https://qiita.com/hmatsu47/items/139640aea998f6602b6e (12/26 追記分) →M6g 優勢(4xlarge の 40 スレッド以上→ IOPS 上限に当たる)
[2-1] 性能比較をしてみた(結果 2 : pgbench) 10
[2-1] 性能比較をしてみた(結果 3 / 4 : mysqlslap / EC2) https://qiita.com/hmatsu47/items/bbe1034b078435c31d00
→RDS は M6g 優勢、EC2 は M5 優勢(結果が逆転) 11
[2-1] 性能比較をしてみた(Graviton2 vs Intel x86_64) • 少なくとも 16vCPU あたりまでは Graviton2
が優勢 ◦ 事前に↓で確認した範囲では、MySQL on EC2(CentOS 8.3)の 環境で 2 vCPU なら Graviton2 優勢、8vCPU 超のあたりから Intel x86_64 が優勢になっていた https://qiita.com/hmatsu47/items/e20c4d69b0af465b0b12 • RDS では Graviton2 向けに最適化されている? ◦ 逆に Intel x86_64 は on EC2 比で遅くなっている? 12
[2-2] おまけ • RDS では Graviton2 ⇔ Intel x86_64 の変更が可能
13
おしまい 来年も良い DB ライフを! 14
More Decks by hmatsu47
See All by hmatsu47
中小企業に就職して転職せず30年。結果どうなった?
hmatsu47
PRO
0
100
JAWS ミート 2026 の「出し物」のゲームを Kiro と AI-DLC v2 で作った話
hmatsu47
PRO
0
35
ゲームで挑戦!VPC の気持ちになって IPv4/v6 パケットをルーティングしよう!
hmatsu47
PRO
0
42
続・名古屋城とデータセンター
hmatsu47
PRO
0
41
【再演】IPv6 VPC の実装パターンをいくつか
hmatsu47
PRO
0
50
名古屋城とデータセンター
hmatsu47
PRO
0
58
IPv6 に関する話
hmatsu47
PRO
0
41
さいきんの光ファイバーの話
hmatsu47
PRO
0
87
低いほうのレイヤを見てみる話
hmatsu47
PRO
0
45
Other Decks in Technology
See All in Technology
コーディングできない僕にBobが舞い降りた
shumpei3
0
140
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
120
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
170
常時稼働エージェントの作り方(Claude公式ブログを資料化)
minorun365
PRO
18
29k
Datadog の権限統制 〜Org 統合に向けて調べた注意点 / JDDUG-Meetup_24
visional_engineering_and_design
1
200
現地速報! Microsoft Ignite アップデートレポート
kasada
0
390
「任されビリティ」で引き受けて「よしなりてぃ」に頼らず任せる / Accept tasks with "makasarebility" and hand them over without relying on "yoshinarily"
pauli
1
870
AIネイティブ組織の作り方。1人のPOとAIから始める、自社での実験
ama_ch
2
1.3k
サーバーラックは作る時代! 3Dプリンターで作る10インチラックのススメ
jacopen
2
490
マネジメントされる側の仕事は「文句」を言うこと
riyaamemiya
7
6k
設計手法を「道具」として使いこなすために
a_suenami
7
1.6k
マネージャーをエスパーにしない マネジメントされる側から始める、働きやすい現場づくり
comi190327
1
840
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
4
570
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
380
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
630
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Curse of the Amulet
leimatthew05
4
17k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
310
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
AI: The stuff that nobody shows you
jnunemaker
PRO
12
1.3k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
Typedesign – Prime Four
hannesfritz
42
3.2k
Six Lessons from altMBA
skipperchong
29
4.6k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k