SlideShare a Scribd company logo
1 of 26
© 2016 NTT Software Innovation Center
Masakari と HA コミュニティの状況
2016/03/24
室井 雅仁
2Copyright©2016 NTT corp. All Rights Reserved.
自己紹介
• 室井 雅仁 (むろい まさひと)
• 所属: NTT
• OpenStackを利用したOSSクラウドのアーキテクトを担当
• 社内向け OpenStack 環境の運用、コミュニティへのアップスト
リーム
• OpenStack Congress Core Reviewer
• https://wiki.openstack.org/wiki/Congress
• https://thinkit.co.jp/article/8381
• IRC: masahito
• エディタ: Emacs 派
3Copyright©2016 NTT corp. All Rights Reserved.
http://www.slideshare.net/masahito12/openstack-
masakari
4Copyright©2016 NTT corp. All Rights Reserved.
本日のお品書き
• Masakari
• OpenStack HA コミュニティの現状
• Masakari デモ (時間があれば)
5Copyright©2016 NTT corp. All Rights Reserved.
Masakari
6Copyright©2016 NTT corp. All Rights Reserved.
What’s Masakari
Copyright © いらすとや. All Rights Reserved.
まさかり
7Copyright©2016 NTT corp. All Rights Reserved.
What’s Masakari in OpenStack
• Virtual Machine High Availability (VM-HA) service
• Rescue Virtual Machine when any errors occur
• Published as OSS at github https://github.com/ntt-sic/masakari
8Copyright©2016 NTT corp. All Rights Reserved.
Motivations
• Pets vs Cattle
• Unable to change all Apps to Cloud Native at once
• Open Source
9Copyright©2016 NTT corp. All Rights Reserved.
Requirements for Pets Model
• Detect 3 types of VM down
• VM instance down
• VM manager down
• Host down
• Recover VM within 5 mins
• Work automatically
10Copyright©2016 NTT corp. All Rights Reserved.
Architecture Overview
ComputeNodesControllerNodes
&BackendNodes
11Copyright©2016 NTT corp. All Rights Reserved.
How to detect the 3 down
• VM down
• Monitoring libvert’s events
• Manager Process down
• Monitoring manager process
• Host down
• Monitoring Pacemaker status
12Copyright©2016 NTT corp. All Rights Reserved.
Detect VM Down
Libvirt
Masakari
1. Notify down VM’s Info
(VM-ID, Host Name, etc.)
Libvirt Monitor
Detect VM down
VM1 VM2 VM3
Libvirt
Libvirt Monitor
VM5 VM6
HostHost
Nova
2. Call Rebuild API for the down VM
3. Rebuild the VM
Down
0. Set callbacks for
libvert’s events hook
13Copyright©2016 NTT corp. All Rights Reserved.
Manager Process Down
1. Restart manager
process when it’s down
Process Monitor
Masakari
2. Notify manager process down
if fail to restart few times
Libvirt Nova-compute
Host A
Libvirt Nova-compute
Host B
Nova
3. Notify Nova to disable schedule
for Host A
Process Monitor
Down
14Copyright©2016 NTT corp. All Rights Reserved.
Host Down
RA
CIB
RA
RA
Node’s
Status
pacemaker
Heartbeat communications or
pacemaker-remote
Masakari
Check its Host’s status
1. Notify another host down
Start
Stop
Monitor
WatchDog&
Shutdowner
Host Fail Monitor
Polling
RA
CIB
RA
RA
Node’s
Status
pacemaker
Start
Stop
Monitor
WatchDog&
Shutdowner
Host Fail Monitor
Polling
Down
Host A Host B
Nova
2. Call Evacuate API for all VM on Host B
15Copyright©2016 NTT corp. All Rights Reserved.
How to use Masakari
1. Prerequisites
• Set up Nova and Compute Nodes with KVM
• Set up a shared storage per cluster for ephemeral disks (e.g. NFS)
2. Install and Configure Masakari
• Download source from github
• https://github.com/ntt-sic/masakari
• Install Masakari’s package
• Initialize Masakari’s DB
• Configure 4 Masakari’s config files
3. Start Masakari
• Start all process
• Add a reserved host prepared for host down
4. Wait any error
• Masakari only works when any error occurs
16Copyright©2016 NTT corp. All Rights Reserved.
Run Masakari in local
• Run masakari-deploy!!
http://github.com/ntt-sic/masakari-deploy
• For quick QA or demo
17Copyright©2016 NTT corp. All Rights Reserved.
Challenges
• No branch from OpenStack master
18Copyright©2016 NTT corp. All Rights Reserved.
Masakari Next Release
• 1.1.0 is supposed be released until Austin
Summit
• Supports Pacemaker-Remote for hostmonitor
• Supports PostgreSQL and other DB
• By using SQLAlchemy
• Supports CentOS
• With python installer and rpm packaging
• Uses python-client to call OpenStack API
19Copyright©2016 NTT corp. All Rights Reserved.
OpenStack HA コミュニティの現状
20Copyright©2016 NTT corp. All Rights Reserved.
OpenStack HA チーム
• openstack-ha チーム
• VM HA のユースケース議論や今後の実装方針考えるチーム
• IRC チャンネル: #openstack-ha
• IRC ミーティング: 月曜 18:00 #openstack-meeting
• Etherpad:
https://etherpad.openstack.org/p/automatic-evacuation
• 参加メンバ(企業)
• NTT, RedHat, SUSE, Intel, ...
ググっても多分みつかりません。
チーム名が一般的過ぎて別ページがヒットします。
21Copyright©2016 NTT corp. All Rights Reserved.
チームで議論中の VM HA 方式
1. Masakari
• https://github.com/ntt-sic/masakari
2. Resource-agent
• https://github.com/openstack/openstack-
resource-agents
3. Mistral workflow
• https://github.com/gryf/mistral-evacuate
• Mistral プロジェクトを利用した VM-HA フロー
• Mistral: ワークフローエンジン as a Service
• https://wiki.openstack.org/wiki/Mistral
22Copyright©2016 NTT corp. All Rights Reserved.
コミュニティ内関係図
VM HA 機能
Masakari
Resource-
agent
Mistral
workflow
HA VM
user story
大
Product WG
執筆
……
VM HA 機能の既存実装
大
HA チーム
HA チームと
Product WG
で連携しよう
今後の方向性を議論中
あるべき姿の議論中
23Copyright©2016 NTT corp. All Rights Reserved.
コミュニティの今後の展望
• コミュニティとしての VM HA の仕様・実装
• Product WG と協力
• 各種 VM HA の実装の方向性議論
• Masakari と Mistral のインテグレーションなど
• Austin Summit でチームのサマリーに関するセッションも有
ります
• High Availability for pets and hypervisors - State of the Nation
(https://www.openstack.org/summit/austin-2016/summit-
schedule/events/7327)
• コミュニティでの議論状況の共有が主な話題
• OpenStack HA チームの次回作に乞うご期待!!
24Copyright©2016 NTT corp. All Rights Reserved.
Masakari デモ
25Copyright©2016 NTT corp. All Rights Reserved.
デモシナリオ
1. VM Instance down
Host1 Host2
VM
down
1.vm down
2.restart
Controller
Nova Masakari
Host1 Host2
VM
down
1.host down
2.evacuate
Controller
Nova Masakari
2. Host down
26Copyright©2016 NTT corp. All Rights Reserved.
Github: https://github.com/ntt-sic/masakari
Mail: muroi.masahito@lab.ntt.co.jp
Pull Request 気軽にどうぞ
日本語でも OK です。

More Related Content

What's hot

[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트
[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트
[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트
OpenStack Korea Community
 
How VXLAN works on Linux
How VXLAN works on LinuxHow VXLAN works on Linux
How VXLAN works on Linux
Etsuji Nakai
 
오픈소스로 구축하는 클라우드 이야기
오픈소스로 구축하는 클라우드 이야기오픈소스로 구축하는 클라우드 이야기
오픈소스로 구축하는 클라우드 이야기
Nalee Jang
 
OpenStack超入門シリーズ いまさら聞けないSwiftの使い方
OpenStack超入門シリーズ いまさら聞けないSwiftの使い方OpenStack超入門シリーズ いまさら聞けないSwiftの使い方
OpenStack超入門シリーズ いまさら聞けないSwiftの使い方
Toru Makabe
 

What's hot (20)

[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여[오픈소스컨설팅]오픈스택에 대하여
[오픈소스컨설팅]오픈스택에 대하여
 
ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観ML2/OVN アーキテクチャ概観
ML2/OVN アーキテクチャ概観
 
OpenStack 개요 및 활용 사례 @ Community Open Camp with Microsoft
OpenStack 개요 및 활용 사례 @ Community Open Camp with MicrosoftOpenStack 개요 및 활용 사례 @ Community Open Camp with Microsoft
OpenStack 개요 및 활용 사례 @ Community Open Camp with Microsoft
 
[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트
[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트
[OpenStack Days Korea 2016] Track3 - 오픈스택 환경에서 공유 파일 시스템 구현하기: 마닐라(Manila) 프로젝트
 
TripleO Deep Dive
TripleO Deep DiveTripleO Deep Dive
TripleO Deep Dive
 
Masakari project onboarding
Masakari project onboardingMasakari project onboarding
Masakari project onboarding
 
Issues of OpenStack multi-region mode
Issues of OpenStack multi-region modeIssues of OpenStack multi-region mode
Issues of OpenStack multi-region mode
 
OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27OVN 設定サンプル | OVN config example 2015/12/27
OVN 設定サンプル | OVN config example 2015/12/27
 
TripleO Deep Dive 1.1
TripleO Deep Dive 1.1TripleO Deep Dive 1.1
TripleO Deep Dive 1.1
 
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~ - ...
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~  - ...「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~  - ...
「Neutronになって理解するOpenStack Network」~Neutron/Open vSwitchなどNeutronと周辺技術の解説~ - ...
 
The overview of lazypull with containerd Remote Snapshotter & Stargz Snapshotter
The overview of lazypull with containerd Remote Snapshotter & Stargz SnapshotterThe overview of lazypull with containerd Remote Snapshotter & Stargz Snapshotter
The overview of lazypull with containerd Remote Snapshotter & Stargz Snapshotter
 
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교  및 구축 방법[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교  및 구축 방법
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
 
Ceph アーキテクチャ概説
Ceph アーキテクチャ概説Ceph アーキテクチャ概説
Ceph アーキテクチャ概説
 
How VXLAN works on Linux
How VXLAN works on LinuxHow VXLAN works on Linux
How VXLAN works on Linux
 
오픈소스로 구축하는 클라우드 이야기
오픈소스로 구축하는 클라우드 이야기오픈소스로 구축하는 클라우드 이야기
오픈소스로 구축하는 클라우드 이야기
 
OpenStack超入門シリーズ いまさら聞けないSwiftの使い方
OpenStack超入門シリーズ いまさら聞けないSwiftの使い方OpenStack超入門シリーズ いまさら聞けないSwiftの使い方
OpenStack超入門シリーズ いまさら聞けないSwiftの使い方
 
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Building Multi-Site and Multi-OpenStack Cloud with OpenStack CascadingBuilding Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
Building Multi-Site and Multi-OpenStack Cloud with OpenStack Cascading
 
OpenStack概要 ~仮想ネットワーク~
OpenStack概要 ~仮想ネットワーク~OpenStack概要 ~仮想ネットワーク~
OpenStack概要 ~仮想ネットワーク~
 
知っているようで知らないNeutron -仮想ルータの冗長と分散- - OpenStack最新情報セミナー 2016年3月
知っているようで知らないNeutron -仮想ルータの冗長と分散- - OpenStack最新情報セミナー 2016年3月 知っているようで知らないNeutron -仮想ルータの冗長と分散- - OpenStack最新情報セミナー 2016年3月
知っているようで知らないNeutron -仮想ルータの冗長と分散- - OpenStack最新情報セミナー 2016年3月
 
Routed Provider Networks on OpenStack
Routed Provider Networks on OpenStack Routed Provider Networks on OpenStack
Routed Provider Networks on OpenStack
 

Viewers also liked

機械学習チュートリアル@Jubatus Casual Talks
機械学習チュートリアル@Jubatus Casual Talks機械学習チュートリアル@Jubatus Casual Talks
機械学習チュートリアル@Jubatus Casual Talks
Yuya Unno
 

Viewers also liked (20)

openstackの仮想マシンHA機能の現状と今後の方向性
openstackの仮想マシンHA機能の現状と今後の方向性openstackの仮想マシンHA機能の現状と今後の方向性
openstackの仮想マシンHA機能の現状と今後の方向性
 
DeNA private cloud のその後 - OpenStack最新情報セミナー(2017年3月)
DeNA private cloud のその後 - OpenStack最新情報セミナー(2017年3月)DeNA private cloud のその後 - OpenStack最新情報セミナー(2017年3月)
DeNA private cloud のその後 - OpenStack最新情報セミナー(2017年3月)
 
OpenStackでも重要な役割を果たすPacemakerを知ろう!
OpenStackでも重要な役割を果たすPacemakerを知ろう!OpenStackでも重要な役割を果たすPacemakerを知ろう!
OpenStackでも重要な役割を果たすPacemakerを知ろう!
 
Red Hat Enterprise Linux OpenStack Platform環境でのDocker活用テクニック
Red Hat Enterprise Linux OpenStack Platform環境でのDocker活用テクニックRed Hat Enterprise Linux OpenStack Platform環境でのDocker活用テクニック
Red Hat Enterprise Linux OpenStack Platform環境でのDocker活用テクニック
 
Openstack管理運用ソフトの決定版?!かもしれないAppFormix - OpenStack最新情報セミナー(2017年3月)
Openstack管理運用ソフトの決定版?!かもしれないAppFormix - OpenStack最新情報セミナー(2017年3月)Openstack管理運用ソフトの決定版?!かもしれないAppFormix - OpenStack最新情報セミナー(2017年3月)
Openstack管理運用ソフトの決定版?!かもしれないAppFormix - OpenStack最新情報セミナー(2017年3月)
 
OpenStack Best Practices and Considerations - terasky tech day
OpenStack Best Practices and Considerations  - terasky tech dayOpenStack Best Practices and Considerations  - terasky tech day
OpenStack Best Practices and Considerations - terasky tech day
 
最近のたまおきの取り組み 〜OpenStack+αの実現に向けて〜 - OpenStack最新情報セミナー(2017年3月)
最近のたまおきの取り組み 〜OpenStack+αの実現に向けて〜  - OpenStack最新情報セミナー(2017年3月)最近のたまおきの取り組み 〜OpenStack+αの実現に向けて〜  - OpenStack最新情報セミナー(2017年3月)
最近のたまおきの取り組み 〜OpenStack+αの実現に向けて〜 - OpenStack最新情報セミナー(2017年3月)
 
StackStorm で実現する、複数システムに対する統一インターフェイス提供と運用一元化の取り組み - OpenStack最新情報セミナー(2017年3月)
StackStorm で実現する、複数システムに対する統一インターフェイス提供と運用一元化の取り組み - OpenStack最新情報セミナー(2017年3月)StackStorm で実現する、複数システムに対する統一インターフェイス提供と運用一元化の取り組み - OpenStack最新情報セミナー(2017年3月)
StackStorm で実現する、複数システムに対する統一インターフェイス提供と運用一元化の取り組み - OpenStack最新情報セミナー(2017年3月)
 
OpenStack Ops Mid-cycle Meetup 参加報告
OpenStack Ops Mid-cycle Meetup 参加報告OpenStack Ops Mid-cycle Meetup 参加報告
OpenStack Ops Mid-cycle Meetup 参加報告
 
OpenStack Summit Tokyo 興味をひいたセッション
OpenStack Summit Tokyo 興味をひいたセッションOpenStack Summit Tokyo 興味をひいたセッション
OpenStack Summit Tokyo 興味をひいたセッション
 
ネットワークスイッチ構築実践 1.VLAN・LinkAggregation編
ネットワークスイッチ構築実践 1.VLAN・LinkAggregation編ネットワークスイッチ構築実践 1.VLAN・LinkAggregation編
ネットワークスイッチ構築実践 1.VLAN・LinkAggregation編
 
OpenStack入門 2016/06/10
OpenStack入門 2016/06/10OpenStack入門 2016/06/10
OpenStack入門 2016/06/10
 
今すぐ試せるブルーグリーンデプロイメント入門とその実装 - OpenStack最新情報セミナー(2017年3月)
今すぐ試せるブルーグリーンデプロイメント入門とその実装 - OpenStack最新情報セミナー(2017年3月)今すぐ試せるブルーグリーンデプロイメント入門とその実装 - OpenStack最新情報セミナー(2017年3月)
今すぐ試せるブルーグリーンデプロイメント入門とその実装 - OpenStack最新情報セミナー(2017年3月)
 
機械学習チュートリアル@Jubatus Casual Talks
機械学習チュートリアル@Jubatus Casual Talks機械学習チュートリアル@Jubatus Casual Talks
機械学習チュートリアル@Jubatus Casual Talks
 
Milano ops-meetup報告会
Milano ops-meetup報告会Milano ops-meetup報告会
Milano ops-meetup報告会
 
High Availability in OpenStack Cloud
High Availability in OpenStack CloudHigh Availability in OpenStack Cloud
High Availability in OpenStack Cloud
 
OpenStack Ops Mid-Cycle Meetup & Project Team Gathering出張報告
OpenStack Ops Mid-Cycle Meetup & Project Team Gathering出張報告OpenStack Ops Mid-Cycle Meetup & Project Team Gathering出張報告
OpenStack Ops Mid-Cycle Meetup & Project Team Gathering出張報告
 
Introduction to Magnum (JP)
Introduction to Magnum (JP)Introduction to Magnum (JP)
Introduction to Magnum (JP)
 
Mirantis超簡単Fuel Openstack インストール
Mirantis超簡単Fuel Openstack インストールMirantis超簡単Fuel Openstack インストール
Mirantis超簡単Fuel Openstack インストール
 
GlusterFS Masakari Talks
GlusterFS Masakari TalksGlusterFS Masakari Talks
GlusterFS Masakari Talks
 

Similar to OpenStackユーザ会資料 - Masakari

Tackling non-determinism in Hadoop - Testing and debugging distributed system...
Tackling non-determinism in Hadoop - Testing and debugging distributed system...Tackling non-determinism in Hadoop - Testing and debugging distributed system...
Tackling non-determinism in Hadoop - Testing and debugging distributed system...
Akihiro Suda
 
NFV Infrastructure Manager with High Performance Software Switch Lagopus
NFV Infrastructure Manager with High Performance Software Switch Lagopus NFV Infrastructure Manager with High Performance Software Switch Lagopus
NFV Infrastructure Manager with High Performance Software Switch Lagopus
Hirofumi Ichihara
 

Similar to OpenStackユーザ会資料 - Masakari (20)

OpenStack Sydney summit - OpenStack HA and Testing
OpenStack Sydney summit - OpenStack HA and TestingOpenStack Sydney summit - OpenStack HA and Testing
OpenStack Sydney summit - OpenStack HA and Testing
 
Production Plone on OpenStack Cloud
Production Plone on OpenStack CloudProduction Plone on OpenStack Cloud
Production Plone on OpenStack Cloud
 
20180417 hivemall meetup#4
20180417 hivemall meetup#420180417 hivemall meetup#4
20180417 hivemall meetup#4
 
Matcha
MatchaMatcha
Matcha
 
Apache Pulsar at Yahoo! Japan
Apache Pulsar at Yahoo! JapanApache Pulsar at Yahoo! Japan
Apache Pulsar at Yahoo! Japan
 
Evolve or Die: Enterprise Ready OpenStack upgrades with Kubernetes
Evolve or Die: Enterprise Ready OpenStack upgrades with KubernetesEvolve or Die: Enterprise Ready OpenStack upgrades with Kubernetes
Evolve or Die: Enterprise Ready OpenStack upgrades with Kubernetes
 
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月
OpenStackを利用したEnterprise Cloudを支える技術 - OpenStack最新情報セミナー 2016年5月
 
Flaky tests and bugs in Apache software (e.g. Hadoop)
Flaky tests and bugs in Apache software (e.g. Hadoop)Flaky tests and bugs in Apache software (e.g. Hadoop)
Flaky tests and bugs in Apache software (e.g. Hadoop)
 
Tackling non-determinism in Hadoop - Testing and debugging distributed system...
Tackling non-determinism in Hadoop - Testing and debugging distributed system...Tackling non-determinism in Hadoop - Testing and debugging distributed system...
Tackling non-determinism in Hadoop - Testing and debugging distributed system...
 
Neutron CI Run on Docker
Neutron CI Run on DockerNeutron CI Run on Docker
Neutron CI Run on Docker
 
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
 
Canonical ubuntu introduction_20170330
Canonical ubuntu introduction_20170330Canonical ubuntu introduction_20170330
Canonical ubuntu introduction_20170330
 
JavaOne 2016 - Faces Counter
JavaOne 2016 -  Faces CounterJavaOne 2016 -  Faces Counter
JavaOne 2016 - Faces Counter
 
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStackAutomated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
Automated Deployment & Benchmarking with Chef, Cobbler and Rally for OpenStack
 
No one puts java in the container
No one puts java in the containerNo one puts java in the container
No one puts java in the container
 
More Efficient Object Replication in OpenStack Summit Juno
More Efficient Object Replication in OpenStack Summit JunoMore Efficient Object Replication in OpenStack Summit Juno
More Efficient Object Replication in OpenStack Summit Juno
 
Open stack nova reverse engineer
Open stack nova reverse engineerOpen stack nova reverse engineer
Open stack nova reverse engineer
 
Copr HD OpenStack Day India
Copr HD OpenStack Day IndiaCopr HD OpenStack Day India
Copr HD OpenStack Day India
 
Using OpenStack to Accelerate New Product Development: Rik Harris, Telstra
Using OpenStack to Accelerate New Product Development: Rik Harris, TelstraUsing OpenStack to Accelerate New Product Development: Rik Harris, Telstra
Using OpenStack to Accelerate New Product Development: Rik Harris, Telstra
 
NFV Infrastructure Manager with High Performance Software Switch Lagopus
NFV Infrastructure Manager with High Performance Software Switch Lagopus NFV Infrastructure Manager with High Performance Software Switch Lagopus
NFV Infrastructure Manager with High Performance Software Switch Lagopus
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 

OpenStackユーザ会資料 - Masakari

  • 1. © 2016 NTT Software Innovation Center Masakari と HA コミュニティの状況 2016/03/24 室井 雅仁
  • 2. 2Copyright©2016 NTT corp. All Rights Reserved. 自己紹介 • 室井 雅仁 (むろい まさひと) • 所属: NTT • OpenStackを利用したOSSクラウドのアーキテクトを担当 • 社内向け OpenStack 環境の運用、コミュニティへのアップスト リーム • OpenStack Congress Core Reviewer • https://wiki.openstack.org/wiki/Congress • https://thinkit.co.jp/article/8381 • IRC: masahito • エディタ: Emacs 派
  • 3. 3Copyright©2016 NTT corp. All Rights Reserved. http://www.slideshare.net/masahito12/openstack- masakari
  • 4. 4Copyright©2016 NTT corp. All Rights Reserved. 本日のお品書き • Masakari • OpenStack HA コミュニティの現状 • Masakari デモ (時間があれば)
  • 5. 5Copyright©2016 NTT corp. All Rights Reserved. Masakari
  • 6. 6Copyright©2016 NTT corp. All Rights Reserved. What’s Masakari Copyright © いらすとや. All Rights Reserved. まさかり
  • 7. 7Copyright©2016 NTT corp. All Rights Reserved. What’s Masakari in OpenStack • Virtual Machine High Availability (VM-HA) service • Rescue Virtual Machine when any errors occur • Published as OSS at github https://github.com/ntt-sic/masakari
  • 8. 8Copyright©2016 NTT corp. All Rights Reserved. Motivations • Pets vs Cattle • Unable to change all Apps to Cloud Native at once • Open Source
  • 9. 9Copyright©2016 NTT corp. All Rights Reserved. Requirements for Pets Model • Detect 3 types of VM down • VM instance down • VM manager down • Host down • Recover VM within 5 mins • Work automatically
  • 10. 10Copyright©2016 NTT corp. All Rights Reserved. Architecture Overview ComputeNodesControllerNodes &BackendNodes
  • 11. 11Copyright©2016 NTT corp. All Rights Reserved. How to detect the 3 down • VM down • Monitoring libvert’s events • Manager Process down • Monitoring manager process • Host down • Monitoring Pacemaker status
  • 12. 12Copyright©2016 NTT corp. All Rights Reserved. Detect VM Down Libvirt Masakari 1. Notify down VM’s Info (VM-ID, Host Name, etc.) Libvirt Monitor Detect VM down VM1 VM2 VM3 Libvirt Libvirt Monitor VM5 VM6 HostHost Nova 2. Call Rebuild API for the down VM 3. Rebuild the VM Down 0. Set callbacks for libvert’s events hook
  • 13. 13Copyright©2016 NTT corp. All Rights Reserved. Manager Process Down 1. Restart manager process when it’s down Process Monitor Masakari 2. Notify manager process down if fail to restart few times Libvirt Nova-compute Host A Libvirt Nova-compute Host B Nova 3. Notify Nova to disable schedule for Host A Process Monitor Down
  • 14. 14Copyright©2016 NTT corp. All Rights Reserved. Host Down RA CIB RA RA Node’s Status pacemaker Heartbeat communications or pacemaker-remote Masakari Check its Host’s status 1. Notify another host down Start Stop Monitor WatchDog& Shutdowner Host Fail Monitor Polling RA CIB RA RA Node’s Status pacemaker Start Stop Monitor WatchDog& Shutdowner Host Fail Monitor Polling Down Host A Host B Nova 2. Call Evacuate API for all VM on Host B
  • 15. 15Copyright©2016 NTT corp. All Rights Reserved. How to use Masakari 1. Prerequisites • Set up Nova and Compute Nodes with KVM • Set up a shared storage per cluster for ephemeral disks (e.g. NFS) 2. Install and Configure Masakari • Download source from github • https://github.com/ntt-sic/masakari • Install Masakari’s package • Initialize Masakari’s DB • Configure 4 Masakari’s config files 3. Start Masakari • Start all process • Add a reserved host prepared for host down 4. Wait any error • Masakari only works when any error occurs
  • 16. 16Copyright©2016 NTT corp. All Rights Reserved. Run Masakari in local • Run masakari-deploy!! http://github.com/ntt-sic/masakari-deploy • For quick QA or demo
  • 17. 17Copyright©2016 NTT corp. All Rights Reserved. Challenges • No branch from OpenStack master
  • 18. 18Copyright©2016 NTT corp. All Rights Reserved. Masakari Next Release • 1.1.0 is supposed be released until Austin Summit • Supports Pacemaker-Remote for hostmonitor • Supports PostgreSQL and other DB • By using SQLAlchemy • Supports CentOS • With python installer and rpm packaging • Uses python-client to call OpenStack API
  • 19. 19Copyright©2016 NTT corp. All Rights Reserved. OpenStack HA コミュニティの現状
  • 20. 20Copyright©2016 NTT corp. All Rights Reserved. OpenStack HA チーム • openstack-ha チーム • VM HA のユースケース議論や今後の実装方針考えるチーム • IRC チャンネル: #openstack-ha • IRC ミーティング: 月曜 18:00 #openstack-meeting • Etherpad: https://etherpad.openstack.org/p/automatic-evacuation • 参加メンバ(企業) • NTT, RedHat, SUSE, Intel, ... ググっても多分みつかりません。 チーム名が一般的過ぎて別ページがヒットします。
  • 21. 21Copyright©2016 NTT corp. All Rights Reserved. チームで議論中の VM HA 方式 1. Masakari • https://github.com/ntt-sic/masakari 2. Resource-agent • https://github.com/openstack/openstack- resource-agents 3. Mistral workflow • https://github.com/gryf/mistral-evacuate • Mistral プロジェクトを利用した VM-HA フロー • Mistral: ワークフローエンジン as a Service • https://wiki.openstack.org/wiki/Mistral
  • 22. 22Copyright©2016 NTT corp. All Rights Reserved. コミュニティ内関係図 VM HA 機能 Masakari Resource- agent Mistral workflow HA VM user story 大 Product WG 執筆 …… VM HA 機能の既存実装 大 HA チーム HA チームと Product WG で連携しよう 今後の方向性を議論中 あるべき姿の議論中
  • 23. 23Copyright©2016 NTT corp. All Rights Reserved. コミュニティの今後の展望 • コミュニティとしての VM HA の仕様・実装 • Product WG と協力 • 各種 VM HA の実装の方向性議論 • Masakari と Mistral のインテグレーションなど • Austin Summit でチームのサマリーに関するセッションも有 ります • High Availability for pets and hypervisors - State of the Nation (https://www.openstack.org/summit/austin-2016/summit- schedule/events/7327) • コミュニティでの議論状況の共有が主な話題 • OpenStack HA チームの次回作に乞うご期待!!
  • 24. 24Copyright©2016 NTT corp. All Rights Reserved. Masakari デモ
  • 25. 25Copyright©2016 NTT corp. All Rights Reserved. デモシナリオ 1. VM Instance down Host1 Host2 VM down 1.vm down 2.restart Controller Nova Masakari Host1 Host2 VM down 1.host down 2.evacuate Controller Nova Masakari 2. Host down
  • 26. 26Copyright©2016 NTT corp. All Rights Reserved. Github: https://github.com/ntt-sic/masakari Mail: muroi.masahito@lab.ntt.co.jp Pull Request 気軽にどうぞ 日本語でも OK です。