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
MySQL_Technology_Cafe-MDSのHA構成検証報告.pdf
Search
kenjiro
May 24, 2021
Technology
490
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
MySQL_Technology_Cafe-MDSのHA構成検証報告.pdf
kenjiro
May 24, 2021
More Decks by kenjiro
See All by kenjiro
リソースマネージャを使ってはまったポイント
otsuka04
1
65
In the final chapter of Service Request
otsuka04
0
79
oci-cli-tips
otsuka04
1
890
Service Request Aword 2022
otsuka04
0
67
BaseDBはすごい
otsuka04
0
75
Oracle CloudだけでOracleDB運用したい
otsuka04
0
52
Service Request Award
otsuka04
0
51
OCIJP_LT#2
otsuka04
0
110
OCIjp-LT Oracle Cloud-SRworst3
otsuka04
0
200
Other Decks in Technology
See All in Technology
OpenTelemetry eBPF Instrumentationの舞台裏 / Behind the Scenes of OpenTelemetry eBPF Instrumentation
ymotongpoo
4
1.2k
おい、エージェントを使って終わらせろ
nwiizo
0
120
消えない 動かない 効かない
yama3133
1
120
データ界隈LT祭 第1回LT登壇
taromatsui_cccmkhd
1
1.1k
range over func 2年間の軌跡 Issue #56413 はGoのエコシステムをどう変えたか
ryujicre8ive
0
140
顧客に向き合う開発組織へ。リアーキテクチャとフィーチャーチーム化で挑む組織改革
safie
0
620
越境するなら専門用語を使うな高校校歌 / If you wanna cross border, you shouldn't use jargon
vtryo
0
130
DEFCON34-Write-up_HYCu-MYCu
daikiokazaki
0
160
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
3
360
Oracle Cloud Infrastructure IaaS 新機能アップデート 2026/6 - 2026/8
oracle4engineer
PRO
0
200
アプリログインとWeb認証基盤をつなぐ ASWebAuthenticationSession 作法
shimastripe
1
290
Claude in Chrome 入門 / Introduction to Claude in Chrome
cielo1985
0
680
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
390
Designing for Timeless Needs
cassininazir
1
470
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
720
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
880
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
530
How to train your dragon (web standard)
notwaldorf
97
6.8k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
230
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Making Projects Easy
brettharned
120
6.7k
The untapped power of vector embeddings
frankvandijk
2
1.9k
Automating Front-end Workflow
addyosmani
1369
210k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Transcript
1ステップでデプロイ! MDSのHA構成検証報告 - MySQL Technology Café #12 -
2 Copyright ©2021 AtomitechInc. All rights reserved. 1 2 3
Introduction MDSレビュー & DEMO まとめ Agenda
3 Copyright ©2021 AtomitechInc. All rights reserved. 昨年の10月23日に MDSのレビューについてお話させていただきました! 当時の資料アップロードしてます!
MySQL_Technology_Cafe_#10 中の方へ いるかさんのご来訪お待ちしてますw (いるかさん親子で来て頂けるのですか??) 早く行きたいな~ 行きたいね~
4 Copyright ©2021 AtomitechInc. All rights reserved. 大塚 健治朗 @koko_kotsu
株式会社アトミテック クラウドサービス事業である (クラウディ)を担当 埼玉県 在住(ホボ・リモート) インフラエンジニア3年目 趣味:カメラとラーメン 好きなサービス: OracleDatabase(DBCS) のちのちMDSのHA ※今後増やす! ↑6年前の似顔絵
5 Copyright ©2021 AtomitechInc. All rights reserved. OCIjpはOCIエキスパートによるユーザーコミュニティです。 毎月第3火曜日ごろに開催しています。 大規模な構築事例や初心者向けハンズオンなど
OCIに関わることなら何でも取り上げます! OCI初心者歓迎!! 毎月第3火曜日 イベント実施 twitter connpass
6 Copyright ©2021 AtomitechInc. All rights reserved. @Cloudii_jp https://cloudii.jp/ ハッシュタグ
#Cloudii Cloudii Blog
7 Copyright ©2021 AtomitechInc. All rights reserved. Cloudii の プロダクト
8 Copyright ©2021 AtomitechInc. All rights reserved. プロダクト | Cloudii
CM Portalとは ◆クラウドサービス管理を統合したWebアプリケーション ステータス 可視化 コスト分析 マルチクラウド 対応 ガバナンス • Oracle Cloud • AWS • Microsoft Azure ...etc • インスタンス稼働状況 • OS情報 • 各構成管理 ...etc • 部署毎 • コンパートメント毎 • タグ毎 ...etc • イベントログ ※操作ログ等 • アラート通知 ...etc
9 Copyright ©2021 AtomitechInc. All rights reserved. お話することの元ネタ Cloudii MDS
HA で検索! もしくは、QRコードから!
10 Copyright ©2021 AtomitechInc. All rights reserved. 今日お話すること • 検証してみた結果報告
• スイッチオーバー検証 • レプリケーション検証 • スイッチオーバー中にクエリ流してみた検証 • HA構成のデプロイデモ • MDSへの要望 • まとめ
11 Copyright ©2021 AtomitechInc. All rights reserved. MDSのスイッチオーバー検証 ▪目的 ・スイッチオーバーが簡単にできるのかを確認
▪やること ・管理コンソール画面からボタンを押す ・管理コンソール画面とMySQL clientから確認 ▪結果 ・できた! <イェーイ
12 Copyright ©2021 AtomitechInc. All rights reserved. 確認観点 • 簡単な操作
• 切り替わり時間の測定 • クリック2回だけで可能 • コンソール画面上は5分 内部は30秒以内 MDSのスイッチオーバー検証
13 Copyright ©2021 AtomitechInc. All rights reserved. 確認観点 • 簡単な操作
• 切り替わり時間の測定 • クリック2回だけで可能 • コンソール画面上は5分 内部は30秒以内 MDSのスイッチオーバー検証
14 Copyright ©2021 AtomitechInc. All rights reserved. MDSのレプリケーション検証 ▪目的 ・レプリケーションが簡単にできるのかを確認
▪やること ・簡易アプリ(?)を作成し、テーブルを確認 ▪結果 ・できた! <ヤッタ-!
15 Copyright ©2021 AtomitechInc. All rights reserved. 確認観点 • 参照クエリを実行し
スイッチオーバー前後で 同じ結果が参照可能か確認 • 同じ結果を参照することができた MDSのレプリケーション検証
16 Copyright ©2021 AtomitechInc. All rights reserved. 確認観点 • 参照クエリを実行し
スイッチオーバー前後で 同じ結果が参照可能か確認 • 同じ結果を参照することができた MDSのレプリケーション検証
17 Copyright ©2021 AtomitechInc. All rights reserved. MDSスイッチオーバー中の検証① ▪目的 ・大量のクエリを実行中に、スイッチオーバーをするとどう
なるのか気になった ▪やること ・繰り返し(for文)で、ひたすらinsertクエリを投げる ※ブログにサンプル書いてます。 ▪結果 ・予想回数分実行されなかった
18 Copyright ©2021 AtomitechInc. All rights reserved. 確認内容 • スイッチオーバー中にインサート処理を実施
→所定のテーブルに毎秒インサートするような仕組みを作成 • 30秒後にインサート処理が停止 • 仕組み内にトランザクション処理は必須 ※今回だと30行分のデータがテーブルに残ってしまった MDSスイッチオーバー中の検証①
19 Copyright ©2021 AtomitechInc. All rights reserved. MDSスイッチオーバー中の検証② ▪目的 ・クエリ実行中に、スイッチオーバーをするとどうなるのか
気になった ▪やること ・スロークエリを流してすぐにスイッチオーバー ▪結果 ・クエリが返ってこなくなった ピエン
20 Copyright ©2021 AtomitechInc. All rights reserved. 確認内容 • スロークエリ実行中にスイッチオーバー
MDSのスイッチオーバー中の検証② • 応答しなくなった ※ Ctrl+Cしても反応なし… • 切り替わりを検知するような仕組みは必須 ※ どんな仕組みかは皆さんで……! 補足 上の赤枠:スイッチオーバー無し 下の赤枠:途中でスイッチオーバー
21 Copyright ©2021 AtomitechInc. All rights reserved. 検証結果もお伝えしたところで サクッとHA作ります!
22 Copyright ©2021 AtomitechInc. All rights reserved. 要望 • 「構成」の変更HAのMDSにも対応してほしい!
※シングル構成には対応しているので期待! • スケールアップ対応してほしい! ※近日中には…とのこと? • HeatWaveのHA構成も対応してほしい! ※こちらも近日中…?
23 Copyright ©2021 AtomitechInc. All rights reserved. • 簡単にサクッとHA構成が作成可能 ‣もちろんメンテナンス不要!!
‣HA構成ならではのアプリ制御は忘れずに • MDSは機能やバージョンのアップデート頻度が多い(嬉しい) ‣IPアドレスの静的付与 ‣オブジェクトストレージからデータインポート ‣現在のバージョンは「8.0.25」 →こちらもメンテナンス不要 まとめ
Copyright ©2020 AtomitechInc. All rights reserved. 24
[email protected]
宛先:人事担当