Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
© Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without no...
Nächste SlideShare
Wird geladen in …5
×

OpenStack Trove 技術解説

7.800 Aufrufe

Veröffentlicht am

日本OpenStackユーザー会 #23

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

OpenStack Trove 技術解説

  1. 1. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
  2. 2. © Copyright 2014 Hewlett-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. 3. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice. • OpenStack Trove 前提知識・豆知識 • アーキテクチャー • 機能 • Kiloでのアップデート項目 • デモ
  4. 4. © Copyright 2014 Hewlett-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. 5. © Copyright 2014 Hewlett-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. 6. © Copyright 2014 Hewlett-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. 7. © Copyright 2014 Hewlett-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. 8. © Copyright 2014 Hewlett-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. 9. © Copyright 2014 Hewlett-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. 10. © Copyright 2014 Hewlett-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. 11. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice. よく聞かれること “Trove上のDBやOSって、 ガチでチューニングでき ますか? いろいろできないと困る んですけど”
  12. 12. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice. いいんだよ、 細けぇ事は
  13. 13. © Copyright 2014 Hewlett-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. 14. © Copyright 2014 Hewlett-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. 15. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice. Horizon GUIから使えます、が
  16. 16. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice. GUI使って うれしいのは、 3回目まで
  17. 17. © Copyright 2014 Hewlett-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. 18. © Copyright 2014 Hewlett-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. 19. © Copyright 2014 Hewlett-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. 20. © Copyright 2014 Hewlett-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. 21. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice. “trove configuration-parameter-list”実行例 (例) MySQL 5.5で設定可能なパラメーターを取得
  22. 22. © Copyright 2014 Hewlett-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. 23. © Copyright 2014 Hewlett-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. 24. © Copyright 2014 Hewlett-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. 25. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.
  26. 26. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice. まとめ • TroveはいろんなDatastoreの操作、管理を標準化する • Datastoreの専門家でなくても、楽に使えるようにする • Computeインスタンスを自由にいじることはできない • Datastoreによって、機能に凸凹がある • 使いたいDatastoreで、できることを確認しましょう • GUIで機能を判断しないで、CLIも見るべし • 意外に、いろんなことができます
  27. 27. © Copyright 2014 Hewlett-Packard Development Company,L.P. The information contained herein is subject to change without notice.

×