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
2019年のAdvent Calendar参加ついでにPOLARDBを試してみた話
Search
hmatsu47
PRO
January 30, 2020
Technology
73
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
2019年のAdvent Calendar参加ついでにPOLARDBを試してみた話
hmatsu47
PRO
January 30, 2020
More Decks by hmatsu47
See All by hmatsu47
中小企業に就職して転職せず30年。結果どうなった?
hmatsu47
PRO
0
90
JAWS ミート 2026 の「出し物」のゲームを Kiro と AI-DLC v2 で作った話
hmatsu47
PRO
0
19
ゲームで挑戦!VPC の気持ちになって IPv4/v6 パケットをルーティングしよう!
hmatsu47
PRO
0
31
続・名古屋城とデータセンター
hmatsu47
PRO
0
28
【再演】IPv6 VPC の実装パターンをいくつか
hmatsu47
PRO
0
34
名古屋城とデータセンター
hmatsu47
PRO
0
41
IPv6 に関する話
hmatsu47
PRO
0
32
さいきんの光ファイバーの話
hmatsu47
PRO
0
77
低いほうのレイヤを見てみる話
hmatsu47
PRO
0
36
Other Decks in Technology
See All in Technology
AIに書かせて、プラットフォームで縛る ― EKSプラットフォームで実践した責任境界と権限設計
elmodev09
1
1k
.NET WebAssemblyで実現するクライアントサイドAI推論:NuGetからViteまで、2つのエコシステムを繋ぐビルド戦略
yamachu
1
1.1k
あなたの知らないAmazon VPC Route Server/Amazon VPC Route Server you don't know about
masakiokuda
0
140
Databricksメトリクスビューはじめてのもくもく会
taka_aki
0
130
Apache Iceberg が拓く AI 時代のオープンレイクハウス
tomtanaka
0
190
AIは推し活である。
kurazuuuuuu
2
1k
全社共通データ基盤をつくる。ソニーのDatabricks活用とデータガバナンス設計の裏側
sony
0
200
GitHub Agentic Workflows を触ってみる
htkym
2
860
AI臭い文章とは何なのか
nasuvitz
36
72k
Claude起点の仕様駆動開発
tanakaseiya
0
120
なぜAI任せのゲームは面白くならないのか?
hirohasuyoutube
0
290
ScotSecure West 2026 - Glasgow
raybugg
0
200
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
490
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
430
The Mindset for Success: Future Career Progression
greggifford
PRO
0
520
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
240
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
76k
Transcript
2019 年の Advent Calendar 参加ついでに POLARDB を試してみた話 Alibaba Cloud in
Nagoya #4 2020/01/30 まつひさ(hmatsu47)
自己紹介 松久裕保(@hmatsu47) https://qiita.com/hmatsu47 名古屋でWebインフラのお守り係(非DBA) ◦ 会社ではAmazon Aurora(MySQL 5.6互換版)を 使ってます MySQLとAlibaba
Cloudは趣味で使ってます ◦ MySQL 8.0の薄い本を作って配っています https://qiita.com/hmatsu47/items/ceb75caf46e3c761095d ◦ 現在8.0.19対応版です 2
POLARDB とは? Alibaba Cloud が「次世代 RDB」として提供している マネージドサービスです(ApsaraDB for POLARDB) https://www.alibabacloud.com/ja/products/apsaradb-for-polardb
3
POLARDB とは? MySQL 互換版(5.6 / 8.0)と PostgreSQL 互換版(11)、 Oracle 互換版(EDB
Postgres Advanced Server みたいなの?) があります。 4
出典: https://www.alibabacloud.com/help/doc-detail/58766.htm • 前段に Proxy(R/W & Read LB) • DB
Server とストレージ層を分離 • Log structured storage • Shared distributed storage • 25Gbps x 2ch RDMA • 32Gb/s NVMe SSD • Parallel-Raft Protocol POLARDB のアーキテクチャ 5
6
POLARDB を試してみた(Advent Calendar編) 1. MySQL 8.0 互換版起動編 2. MySQL 8.0
互換版のバッファプールまわりを中心に 3. MySQL 8.0 互換版でパラレルクエリを試す 4. PostgreSQL 11 互換版起動+パラレルスキャン編 5. MySQL 8.0 互換版でパラレルクエリ(2) 6. PostgreSQL 11 互換版で Ganos を試す [おまけ] Aurora PostgreSQL 11.4 互換版がひっそりと出ていた ので試してみた 7
わかったこと(1/2) • MySQL 8.0 互換版のベースバージョンは 8.0.13(2019/12時点) ◦ InnoDB Cluster 対応バージョンではなかったので「POLARDB
で InnoDB Cluster」のようなジョークは試せず… • PostgreSQL 11 互換版のベースバージョンは 11.2(同上) ◦ Aurora PostgreSQL 11 互換版は 11.4 • MySQL 8.0 互換版のオリジナル機能、パラレルクエリは割と まともに機能する ◦ 4core 16GB・4 並列で 2 ~ 3 倍速 • Aurora PostgreSQL 互換版との特性の違い ◦ CPU コア数とストレージ帯域・I/O レイテンシの差が割とそのまま 8
わかったこと(2/2) • 公式マニュアルに書いてある機能の一部が使えず(2019/12時点) ◦ PostgreSQL 11 互換版の oss_fdw ◦ 同・TimescaleDB
plug-in(途中までは行けたけれど…) 9
ところで:POLARDB の名前の由来は? • 公式のコメント等は見つからず • 「Aurora」は高緯度の地域で発生するもの ◦ でも、北極 or 南極よりは低緯度(が中心)
• 「Polar」=北極 or 南極 • ということは…? 10
おや? 11
!! aurora さんが POLARDB の中で Log Sequence Number を Push
してる!! …ここに Alibaba Cloud のメッセージが隠されているのでは? (注:妄想です) 12