2021年10月8日に開催された、Cloud Native Database Meetup #2 でのLT資料です。 https://cndata.connpass.com/event/222535/
革新的な新しいウルトラ・ハイ・パフォーマンス並列処理クエリーエンジンである、HeatWaveの仕組みについて紹介しています。
革新的な新しいウルトラ・ハイ・パフォーマンス並列処理クエリーエンジン、HeatWaveの仕組みCloud Native Database Meetup #2 LT2021年10月8日MySQL Global Business Unit山﨑 由章 / Yoshiaki Yamasaki
View Slide
Copyright © 2021, Oracle and/or its affiliates2タイトルの元ネタ
Copyright © 2021, Oracle and/or its affiliates3FY21の年間の決算報告でのLarry Ellisonの発言より※FY:Financial Year (会計年度)
Copyright © 2021, Oracle and/or its affiliates4"The world's two most popular databases are the Oracle AutonomousDatabase and Oracle MySQL," said Oracle Chairman and CTO, LarryEllison. "The Oracle Database once again delivered solid revenuegrowth in FY21. And while our Oracle Database business as measuredby revenue currently dwarfs our MySQL database business—that is about to change because the latest version of Oracle MySQLhas been upgraded to include a revolutionary new ultra-high-performance parallel processing query engine called HeatWave.”出典:https://investor.oracle.com/investor-news/news-details/2021/Oracle-Announces-Fiscal-2021-Fourth-Quarter-and-Fiscal-Full-Year-Financial-Results/default.aspx
Copyright © 2021, Oracle and/or its affiliates5"a revolutionary new ultra-high-performanceparallel processing query engine calledHeatWave.”出典:https://investor.oracle.com/investor-news/news-details/2021/Oracle-Announces-Fiscal-2021-Fourth-Quarter-and-Fiscal-Full-Year-Financial-Results/default.aspx
Copyright © 2021, Oracle and/or its affiliates6革新的な新しいウルトラ・ハイ・パフォーマンス並列処理クエリーエンジン
Copyright © 2021, Oracle and/or its affiliates7HeatWave
Copyright © 2021, Oracle and/or its affiliates8HeatWaveとは?
Copyright © 2021, Oracle and/or its affiliates9MySQL Database Service 専用のクエリーアクセラレーター
Copyright © 2021, Oracle and/or its affiliates10MySQL Database Serviceとは?
Copyright © 2021, Oracle and/or its affiliates11オラクルクラウド上で提供しているMySQLのマネージドサービス
Copyright © 2021, Oracle and/or its affiliates12HeatWaveの仕組み
Copyright © 2021, Oracle and/or its affiliates13MySQL Database Serviceのバックエンドで動作する
Copyright © 2021, Oracle and/or its affiliates14HeatWaveノード × 2台~64台HeatWave専用のMySQL Database Serviceオラクルクラウド上のサーバー(クライアント)HeatWaveバックグラウンド通信ユーザーによるアクセス
Copyright © 2021, Oracle and/or its affiliates15ユーザーはMySQLに接続してSQLを実行するだけで、自動的に高速化される
Copyright © 2021, Oracle and/or its affiliates16更新処理を実行した場合は、HeatWaveノード上のデータも自動的に更新される
Copyright © 2021, Oracle and/or its affiliates17HeatWaveノードでのデータの持ち方
Copyright © 2021, Oracle and/or its affiliates18列指向
Copyright © 2021, Oracle and/or its affiliates19インメモリ
Copyright © 2021, Oracle and/or its affiliates20複数ノードに分散配置(最低ノード数2台、最大64台)
Copyright © 2021, Oracle and/or its affiliates21HeatWaveノードでの処理
Copyright © 2021, Oracle and/or its affiliates22超並列処理
Copyright © 2021, Oracle and/or its affiliates23ベースになっている技術
Copyright © 2021, Oracle and/or its affiliates24RAPID
Copyright © 2021, Oracle and/or its affiliates25RAPID Analytics Processing In DRAM(メモリ上での高速分析処理)
Copyright © 2021, Oracle and/or its affiliates26Oracle Labsで長年研究していた技術https://labs.oracle.com/pls/apex/f?p=94065:12:2257546553334:14
Copyright © 2021, Oracle and/or its affiliates27RAPIDでは
Copyright © 2021, Oracle and/or its affiliates28最大限並列処理できるアーキテクチャーになっている
Copyright © 2021, Oracle and/or its affiliates29例えば、、、
Copyright © 2021, Oracle and/or its affiliates30列指向でデータを持つ時に、マルチコアで並列処理できるようにチャンク分割
Copyright © 2021, Oracle and/or its affiliates31column 1column 2column 3column Npartition 1partition P. . .. . .Chunk MChunk 1. . .vector 1vector 2vector 3vector Ntile 1tile KRAPIDColumn-storeノード数追加による性能拡張性チャンク分割によりマルチコア環境で性能向上チャンク単位で複数レコードを1度に処理
Copyright © 2021, Oracle and/or its affiliates32CPUCoreCPUCoreCPUCoreChunknResultsチャンク単位で処理した結果を集約
Copyright © 2021, Oracle and/or its affiliates33待ち時間を最小限にする最適化
Copyright © 2021, Oracle and/or its affiliates34※次の資料はHeatWave開発中に作成された資料なので、秒数の絶対値は気にせずに見て下さい(2018年秋頃の資料)
Copyright © 2021, Oracle and/or its affiliates35ネットワーク通信による待ちが発生
Copyright © 2021, Oracle and/or its affiliates36待ちが発生しないようにタスクを最適化
Copyright © 2021, Oracle and/or its affiliates37オラクルクラウドのハードウェアに合わせた最適化
Copyright © 2021, Oracle and/or its affiliates38例:JOIN処理
Copyright © 2021, Oracle and/or its affiliates39Each CPU core executes a join kernel between small R and S partitionsHash tables are typically compact and fits into lower level CPU cacheskSh1(key)...1p......Rh1(key)1pk...① Partition ① Partition② Build ③ Probeh2(k)join kernelこのデータが通常はCPUの下位のキャッシュに収まるサイズ
Copyright © 2021, Oracle and/or its affiliates40などなど、
Copyright © 2021, Oracle and/or its affiliates41HeatWaveでは
Copyright © 2021, Oracle and/or its affiliates42ハードウェアリソースを最大限活用して超並列処理できるアーキテクチャーになっています
Copyright © 2021, Oracle and/or its affiliates43今日の話を聞いてHeatWaveに興味を持って頂けた方へ
HeatWave、オラクルクラウドのチュートリアルがあります!!Copyright © 2021, Oracle and/or its affiliates44オラクルクラウドのチュートリアルページにMySQL Database Service、HeatWaveのチュートリアルも掲載されています!画面キャプチャー付きで詳細に手順を解説しています!入門編 - Oracle Cloud Infrastructure を使ってみようhttps://oracle-japan.github.io/ocitutorials/beginners/チュートリアル : Oracle Cloud Infrastructure を使ってみようhttps://oracle-japan.github.io/ocitutorials/
Copyright © 2021, Oracle and/or its affiliates45今月ハンズオンセミナーを開催します!!
• ハンズオン1:HeatWaveを活用した驚異的なパフォーマンスを持つ分析基盤構築• 開催日:2021年10月15日(金) 15:00 – 17:00• ハンズオン2:オンプレミスのMySQLからOracle Cloud Infrastructure上のMySQL Database Serviceへのレプリケーションによるデータ連携• 開催日:2021年10月20日(水) 15:00 – 17:00• ハンズオン3:Oracle Analytics CloudとMySQL HeatWaveによるデータ分析• 開催日:2021年10月27日(水) | 15:00 – 17:00• セミナー詳細、申し込み:https://go.oracle.com/LP=116603• 参加費は無料HeatWaveハンズオンセミナーCopyright © 2021, Oracle and/or its affiliates46
Copyright © 2021, Oracle and/or its affiliates47HeatWaveの速さを是非体感してください!!
48 Copyright © 2021, Oracle and/or its affiliates.ご清聴ありがとうございました!!