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
84
JAWS ミート 2026 の「出し物」のゲームを Kiro と AI-DLC v2 で作った話
hmatsu47
PRO
0
15
ゲームで挑戦!VPC の気持ちになって IPv4/v6 パケットをルーティングしよう!
hmatsu47
PRO
0
29
続・名古屋城とデータセンター
hmatsu47
PRO
0
28
【再演】IPv6 VPC の実装パターンをいくつか
hmatsu47
PRO
0
33
名古屋城とデータセンター
hmatsu47
PRO
0
40
IPv6 に関する話
hmatsu47
PRO
0
29
さいきんの光ファイバーの話
hmatsu47
PRO
0
76
低いほうのレイヤを見てみる話
hmatsu47
PRO
0
35
Other Decks in Technology
See All in Technology
[2026-09-11]SREは誰のもの?運用エンジニアが始める 「SRE領域への越境」とチームの進化の軌跡 〜Road to NEXT CRE
tosite
0
230
Claude in Chrome 入門 / Introduction to Claude in Chrome
cielo1985
0
790
Adaptive Warehouse を今すぐ導入すべき理由と迷ったときの判断基準
__allllllllez__
0
230
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
600
Snowflakeのコスト最適化を支えるアーキテクチャ設計
ktatsuya
1
1.6k
Podは生きているのにGoだけが落ちる:GOGCとGOMEMLIMITで追うInvisible OOM Killの謎
tkc66buzz
1
730
Snowflakeで実現する全社横断の顧客の声(VOC)分析・活用基盤@Snowflake World Tour Tokyo 2026
yuto16
0
210
iOSDC Japan 2026 day1 TrackC 10:50
feedtailor
1
160
2026-09-11 【Snowflake World Tour Tokyo 2026】Snowflakeを起点に、AI Agentが自律稼働し続ける未来へ / Driving AI Agents with Snowflake
civitaspo
0
400
負債のメタファと2026年 / Debt Metaphor in Agentic Engineering Age 202609 Edition
twada
PRO
3
1.4k
作品が生態系になった ─ Mini Tokyo 3D から世界へ
nagix
0
190
HRC_Frontend_Conference_Fukuoka_2026.pdf
ts020
0
720
Featured
See All Featured
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
480
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
490
The Curious Case for Waylosing
cassininazir
1
510
Test your architecture with Archunit
thirion
2
2.4k
Prompt Engineering for Job Search
mfonobong
0
450
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Six Lessons from altMBA
skipperchong
29
4.5k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
500
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