More Related Content
PDF
[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi Umeda PPTX
Oracleからamazon auroraへの移行にむけて PDF
初心者向けWebinar AWS上でのネットワーク構築 PDF
Kubernetes 疲れに Azure Container Apps はいかがでしょうか?(江東区合同ライトニングトーク 発表資料) PDF
C34 Always On 可用性グループ 構築時のポイント by 小澤真之 PDF
第15回 Solr勉強会 #SolrJP Amazon CloudSearch Deep Dive PDF
2025年現在のNewSQL (最強DB講義 #36 発表資料) PDF
OpenStack超入門シリーズ いまさら聞けないSwiftの使い方 What's hot
PPTX
Introduction to OpenStack Trove & Database as a Service PDF
[Cloud OnAir] Google Networking Deep Dive ! その技術と設計の紹介 2018年8月9日 放送 PDF
マネージドPostgreSQLの実現に向けたPostgreSQL機能向上(PostgreSQL Conference Japan 2023 発表資料) PDF
Yahoo! JAPANにおけるApache Cassandraへの取り組み PDF
react-scriptsはwebpackで何をしているのか PDF
Amazon Redshift パフォーマンスチューニングテクニックと最新アップデート PDF
[Cloud OnAir] 【Anthos 演習】 解説を聞きながら Anthos を体験しよう 2020年11月5日 放送 PDF
ストリーム処理を支えるキューイングシステムの選び方 PDF
PDF
PDF
NetflixにおけるPresto/Spark活用事例 PDF
PPTX
PPTX
マルチクラウドDWH(Snowflake)のすすめ PPTX
Oracle Container Engine for Kubernetes (OKE) ご紹介 [2021年5月版] PDF
PDF
OAuth 2.0 Web Messaging Response Mode - OpenID Summit Tokyo 2015 PPTX
PDF
C12 AlwaysOn 可用性グループとデータベースミラーリングのIO特製の比較 by 多田典史 PDF
オススメのJavaログ管理手法 ~コンテナ編~(Open Source Conference 2022 Online/Spring 発表資料) More from Toru Makabe
PDF
PDF
Ingress on Azure Kubernetes Service PDF
細かすぎて伝わらないかもしれない Azure Container Networking Deep Dive PDF
Demystifying Identities for Azure Kubernetes Service PDF
Azure Blueprints - 企業で期待される背景と特徴、活用方法 PDF
ミッション : メガクラウドを安全にアップデートせよ! PDF
俺の Kubernetes Workflow with HashiStack PDF
Resilience Engineering on Kubernetes PDF
PDF
PDF
Azure Kubernetes Service 2019 ふりかえり PDF
PDF
NoOps Japan Community 1st Anniversary 祝辞 PDF
ZOZOTOWNのCloud Native Journey PDF
PDF
PDF
インフラ野郎 Azureチーム at クラウド boost PDF
ダイ・ハード in the Kubernetes world PDF
PDF
インフラエンジニア エボリューション ~激変する IT インフラ技術者像、キャリアとスキルを考える~ at Tech Summit 2018 OpenStack Trove 技術解説
- 1.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
- 2.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
•自己紹介
• 真壁 徹 (まかべ とおる)
• HP クラウドチーフテクノロジスト
• Japan OpenStack User Group
ボードメンバー
• 2015年 執筆活動
• IT Media TechTarget連載“エンタープライズ
のためのOpenStack検討ガイド”
• http://techtarget.itmedia.co.jp/tt/news/150
1/21/news04.html
• 翔泳社 “OpenStackクラウドインテグレー
ション オープンソースクラウドによるサー
ビス構築入門”
• http://www.shoeisha.co.jp/book/detail/9784
798139784
- 3.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
• OpenStack Trove 前提知識・豆知識
• アーキテクチャー
• 機能
• Kiloでのアップデート項目
• デモ
- 4.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
Troveのミッション
https://wiki.openstack.org/wiki/Trove
The OpenStack Open Source Database as a Service Mission: To provide scalable
and reliable Cloud Database as a Service provisioning functionality for both
relational and non-relational database engines, and to continue to improve its
fully-featured and extensible open source framework.
超訳: いろんなDBがあるけど、それらに共通で使えるよ
うな、プロビジョニング機能を提供したいね!!
- 5.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
Datastore
“Datastore”
TroveはOpenStack “DB as a Service”プロジェクトではあり
ますが、対応するデータ管理ソフトウェアを”Datastore”
と表現しています。
「それって”DB”なん?」という不毛な論争を避けるためだと思います。
MySQL
PostgreSQL
Redis
Cassandra
MongoDB
Couchbase
- 6.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
Troveにできること
• Launch インスタンスの起動
• Reboot インスタンスの再起動
• Terminate インスタンスの削除
• Resize インスタンスと記憶域のサイズ変更
• Backup バックアップ取得
• Restore バックアップからのインスタンス作成
• Replication 複製インスタンスの作成
• Clustering クラスタ化インスタンスの作成
ここで言うインスタンス = Compute Instance + Datastore Instance
- 7.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
Datastoreによって機能に凸凹があります
Feature MySQL Redis Cassandra MongoDB PostgreSQL Couchbase
Launch ✔ ✔ ✔ ✔ ✔ ✔
Reboot ✔ ✔ ✔ ✔ ✔ ✔
Terminate ✔ ✔ ✔ ✔ ✔ ✔
Resize ✔ ✔ ✔ ✔ ✔ ✔
Backup ✔ ✔ ✔** ✔ ✔ ✔
Restore ✔ ✔ ✔** ✔ ✔ ✔
Replication ✔ - - - ✔** -
Clustering - ✔** ✔** ✔ - ✔**
API Matrix
https://wiki.openstack.org/wiki/Trove/DatastoreCompatibilityMatrix
** = Datastore supports it -- but it is currently Work in Progress in Trove.
(Datastore自身にその機能はあるが、まだ現在はTroveを通じて使うことができないもの)
- 8.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
語源と読み方
Trove: Originally in the phrase treasure trove, from Anglo-
Norman tresor trové (“found treasure”), where the past
participle trové was interpreted in English as a noun.
http://ejje.weblio.jp/content/trove
http://en.wiktionary.org/wiki/trove
“Treasure”とくっつけて、「宝の山」として使われることが多い模様。
読み方は「トローブ」としましょう。本格派は「トウローブ」で。
- 9.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
Troveの歴史
• 黎明期(~Havana)
• Project “Red Dwarf”としてHPやRackspaceが立ち上げ、自社サー
ビスで採用
• 大人の都合により改名
• 育成期(Havana~Icehouse)
• Incubation宣言し、Integratedプロジェクトを目指す
• 本格化(Icehouse~)
• IcehouseでIntegratedプロジェクトに昇格
• Junoでレプリケーションやクラスターに対応し、いよいよ本格化
- 10.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
Troveの開発に貢献している企業、組織
http://stackalytics.com/ (Metric: Commit, Release: Kilo, Date: 2015/04/01)
- 11.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
よく聞かれること
“Trove上のDBやOSって、
ガチでチューニングでき
ますか?
いろいろできないと困る
んですけど”
- 12.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
いいんだよ、
細けぇ事は
- 13.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
要件に合わせて使い分ける
要件が細かい 楽したい、速く作りたい
設計 DB管理者に相談 テンプレート化
プロビジョニング
(Compute Instance)
プロジェクトによる アプリ開発者がセルフサービス
プロビジョニング
(DB)
DB管理者が実施 アプリ開発者がセルフサービス
運用 プロジェクト個別 基盤で標準化
チューニング OS、DBレベルでパラ
メータチューニング
DBレベルでパラメーター
チューニング
もしくはインスタンスのリサイズ
Nova/Ironic上にDB構築 Troveでやっちゃう
- 14.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
アーキテクチャー
Trove Other OpenStack Components
NovaAPI
Task Manager
Conductor(*)
Message
Bus
DB
Keystone
Neutron
Glance
Compute Instance
Datastore
Swift
Swift Container
Datastore Backup
Agent
Cinder
Cinder Volume
Datastore data
コントロール 実体
(*)Datastoreのステータスを管理し、Task Managerへ提供する。
以前はAgentが直接Trove DBとやりとりしていた。
- 15.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
Horizon GUIから使えます、が
- 16.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
GUI使って
うれしいのは、
3回目まで
- 17.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
CLIのほうが、機能豊富 (1/2)
• trove backup-{copy, create, delete, list, list-instance, show}
• trove cluster-{create, delete, instances, list, show}
• trove configuration-{attach, create, default, delete, detach, instances, list,
parameter-list, parameter-show, patch, show, update}
• trove create
• trove database-{create, delete, list}
• trove datastore-{list, show, version-list, version-show}
• trove delete
• trove detach-replica
• trove eject-replica-source
• trove flavor-{list, show}
• trove limit-list
http://docs.openstack.org/cli-reference/content/troveclient_commands.html
- 18.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
CLIのほうが、機能豊富 (2/2)
• trove list
• trove metadata-{create, delete, edit, list, show, update}
• trove promote-to-replica-source
• trove resize-{instance, volume}
• trove restart
• trove root-{enable, show}
• trove secgroup-{add-rule, delete-rule, list, show}
• trove show
• trove update
• trove user-{create, delete, grant-access, list, revoke-access, show, show-
access, update-attributes}
http://docs.openstack.org/cli-reference/content/troveclient_commands.html
- 19.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
“trove create” 作成関連CLI
usage: trove create <name> <flavor_id>
[--size <size>]
[--databases <databases> [<databases> ...]]
[--users <users> [<users> ...]] [--backup <backup>]
[--availability_zone <availability_zone>]
[--datastore <datastore>]
[--datastore_version <datastore_version>]
[--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,port-id=port-uuid>]
[--configuration <configuration>]
[--replica_of <source_instance>] [--replica_count <count>]
• Compute Instance、Datastore Instanceともに作成
• バックアップから作成できる
• 既に起動しているインスタンスのレプリカを作成できる
- 20.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
“trove configuration-xxx” 設定関連CLI
usage: trove configuration-create <name> <values>
[--datastore <datastore>]
[--datastore_version <datastore_version>]
[--description <description>]
usage: trove configuration-parameter-list <datastore_version>
[--datastore <datastore>]
usage: trove configuration-patch <configuration_group> <values>
• Datastoreで設定可能なパラメーターを <values>で指定
• (例) trove configuration-create conf1 '{"max_connections" : 500}' --datastore mysql
• 同じ設定を使い回すことができる、設定を統一できる
• patchコマンドでパラメーターの追加、更新が可能
- 21.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
“trove configuration-parameter-list”実行例
(例) MySQL 5.5で設定可能なパラメーターを取得
- 22.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
“trove backup-xxx”バックアップ関連CLI
usage: trove backup-create <instance> <name>
[--description <description>] [--parent <parent>]
usage: trove backup-copy <name> <backup>
[--region <region>] [--description <description>]
usage: trove backup-list [--limit <limit>] [--datastore <datastore>]
usage: trove backup-list-instance [--limit <limit>] <instance>
• バックアップデータはSwiftに保存される
• --parent指定で増分バックアップ
• copy機能で別リージョンへバックアップをコピーできる (Swiftがマルチリー
ジョン構成であれば)
- 23.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
“trove cluster-xxx”クラスター関連CLI
usage: trove cluster-create <name> <datastore> <datastore_version>
[--instance <flavor_id=flavor_id,volume=volume>]
usage: trove cluster-delete <cluster>
usage: trove cluster-list [--limit <limit>] [--marker <ID>]
usage: trove cluster-show <cluster>
• Troveクラスター機能に対応したDatastoreのクラスターを作成
• JunoではMongoDBのみ
• --instanceオプションを複数並べることで、台数を指定
- 24.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
Kiloでの主要アップデート項目
• Replication v2
• manual failover, slave count, and incremental snapshot
• HP Vertica
• 新Datastore
• Clustering対応
• IBM DB2
• 新Datastore
• CouchDB
• 新Datastore
https://blueprints.launchpad.net/trove/kilo
- 25.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
- 26.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
まとめ
• TroveはいろんなDatastoreの操作、管理を標準化する
• Datastoreの専門家でなくても、楽に使えるようにする
• Computeインスタンスを自由にいじることはできない
• Datastoreによって、機能に凸凹がある
• 使いたいDatastoreで、できることを確認しましょう
• GUIで機能を判断しないで、CLIも見るべし
• 意外に、いろんなことができます
- 27.
© Copyright 2014Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.