Current version of masakari is maintained as a OpenStack official project [1]. Current documentation is here [2]. Since we are actively developing latest version of masakari in [1], I would like to tag this repo as UNMAINTAINED. Thank you all for your contribution and support. Please feel free to contact masakari team for any help on latest version of masakari or any other masakari related issues.
[1] https://wiki.openstack.org/wiki/Masakari
[2] https://docs.openstack.org/masakari/latest/
Masakari provides a Virtual Machine High Availability(VMHA), and rescues a KVM-based Virtual Machine(VM) from a failure events of the following:
Try masakari-deploy for all-in-one scripts to deploy it on your laptop.
openstack system
pacemaker
packages
create user (user: openstack) and setup passwordless for 'sudo'
set up '/etc/hosts' or DNS server for host name resolving
ex) Ubuntu
# cd (each components directory) * ex: masakari, hostmonitor etc
# ./debian/rules binary
# dpkg -i (each components).deb
create database and tables for masakari
# cd masakari-controller/db
# vi db.conf
DB_USER=<mysql user>
DB_PASSWORD=<mysql user password>
DB_HOST=<mysql host ip>
# bash create_vmha_database.sh
# vi /etc/masakari/masakari-controller.conf
...
[db]
host = <mysql host ip>
name = vm_ha
user = <mysql user>
passwd = <mysql user password>
charset = utf8
...
[nova]
domain = <keystone top level domain name>
admin_user = <admin user>
admin_password = <admin user password>
auth_url = <auth_url>
project_name = <tenant name>
...
# vi /etc/masakari/masakari-instancemonitor.conf
[callback]
# Event notification destination URL
url = http://<masakari server ip>:15868
...
# regionID
regionID=<openstack region name. ex) RegionOne >
...
# vi /etc/masakari/masakari-hostmonitor.conf
# URL of recovery controller
RM_URL="http://<masakari server ip>:15868"
...
# Region unit
# This item is necessary
REGION_ID="<openstack region name ex) RegionOne>"
# vi /etc/masakari/masakari-processmonitor.conf
RESOURCE_MANAGER_URL="http://<masakari server ip>:15868"
...
REGION_ID=<openstack region name. ex) RegionOne >
If a nova-compute host fails, masakari evacuates instances on the failed host to the reserved host. In advance, you reserve one or two host(s) per a pacemaker cluster. Please follow this instruction.
# cd masakari/utils
# python reserve_host_manage.py --mode add --port "226.94.1.1:5405" --host compute2 --db-user root --db-password mysql --db-host 127.0.0.1
# python reserve_host_manage.py --mode list --db-user root --db-password mysql --db-host 127.0.0.1
# python reserve_host_manage.py --mode delete --port "226.94.1.1:5405" --host compute2 --db-user root --db-password mysql --db-host 127.0.0.1
# python reserve_host_manage.py --mode update --port "226.94.1.1:5405" --before-host compute2 --after-host compute1 --db-user root --db-password mysql --db-host 127.0.0.1
Copyright (C) 2015 Nippon Telegraph and Telephone Corporation. Released under Apache License 2.0.