Changed the header in the documentation to reflect that the docs are covered under the CCBY 3.0 license. Change-Id: I29f3f1a2491c28b1a4ee12a7b97a7ab00c919867 Closes-Bug: 1526331
3.1 KiB
Installing Watcher
This document describes how to install Watcher in order to use it. If
you are intending to develop on or with Watcher, please read ../dev/environment.
Prerequisites
The source install instructions specifically avoid using platform specific packages, instead using the source for the code and the Python Package Index (PyPi).
It's expected that your system already has python2.7, latest version of pip, and git available.
Your system shall also have some additional system libraries:
On Ubuntu (tested on 14.04LTS):
$ sudo apt-get install python-dev libssl-dev libmysqlclient-dev libffi-devOn Fedora-based distributions e.g., Fedora/RHEL/CentOS/Scientific Linux (tested on CentOS 7.1):
$ sudo yum install gcc python-devel openssl-devel libffi-devel mysql-devel
Installing from Source
Clone the Watcher repository:
$ git clone https://git.openstack.org/openstack/watcher.git
$ cd watcherInstall the Watcher modules:
# python setup.py installThe following commands should be available on the command-line path:
watcher-apithe Watcher Web service used to handle RESTful requestswatcher-decision-enginethe Watcher Decision Engine used to build action plans, according to optimization goals to achieve.watcher-applierthe Watcher Applier module, used to apply action planwatcher-db-manageused to bootstrap Watcher data
You will find sample configuration files in
etc/watcher:
watcher.conf.sample
Install the Watcher modules dependencies:
# pip install -r requirements.txtFrom here, refer to configuration to declare Watcher as a new service into
Keystone and to configure its different modules. Once configured, you
should be able to run the Watcher services by issuing these
commands:
$ watcher-api
$ watcher-decision-engine
$ watcher-applierBy default, this will show logging on the console from which it was started. Once started, you can use the Watcher Client to play with Watcher service.
Installing from packages: PyPI
Watcher package is available on PyPI repository. To install Watcher on your system:
$ sudo pip install python-watcherThe Watcher services along with its dependencies should then be automatically installed on your system.
Once installed, you still need to declare Watcher as a new service
into Keystone and to configure its different modules, which you can find
described in configuration.