deb-ceilometer/install-guide/source/database/environment-nosql-database-obs.rst
Ildiko Vancsa b33f32b714 Add install-guide for ceilometer
This adds ceilometer-specific contents of the OpenStack Installation Guide
in the ceilometer repo per [1]. A separate change will remove the
ceilometer contents from the OpenStack Installation Guide for Newton per [2].

The ceilometer install-guide structure is based on Install Guide
Cookiecutter [3].

Also adds tox.ini environment for install-guide and adds
openstackdocs-theme to test-requirements.txt.

[1] http://specs.openstack.org/openstack/docs-specs/specs/newton/project-specific-installguides.html
[2] http://specs.openstack.org/openstack/docs-specs/specs/newton/installguide.html
[3] https://review.openstack.org/#/c/314229/

Partially-Implements: blueprint projectspecificinstallguide
Change-Id: Iffc5d7243e9eeb74c9dd7b559ef3de7123269293
2016-06-24 15:34:51 +02:00

2.1 KiB

NoSQL database for openSUSE and SUSE Linux Enterprise

The Telemetry service uses a NoSQL database to store information. The database typically runs on the controller node. The procedures in this guide use MongoDB.

Install and configure components

  1. Enable the Open Build Service repositories for MongoDB based on your openSUSE or SLES version:

    On openSUSE:

    # zypper addrepo -f obs://server:database/openSUSE_Leap_42.1 Database

    On SLES:

    # zypper addrepo -f obs://server:database/SLE_12_SP1 Database

    Note

    The packages are signed by GPG key 05905EA8. You should verify the fingerprint of the imported GPG key before using it.

    Key Name:         server:database OBS Project <server:database@build.opensuse.org>
    Key Fingerprint:  116EB863 31583E47 E63CDF4D 562111AC 05905EA8
    Key Created:      Mon 08 Dec 2014 09:54:12 AM UTC
    Key Expires:      Wed 15 Feb 2017 09:54:12 AM UTC

    Install the MongoDB package:

    # zypper install mongodb
  2. Edit the /etc/mongodb.conf file and complete the following actions:

    • Configure the bind_ip key to use the management interface IP address of the controller node.

      bind_ip = 10.0.0.11
    • By default, MongoDB creates several 1 GB journal files in the /var/lib/mongodb/journal directory. If you want to reduce the size of each journal file to 128 MB and limit total journal space consumption to 512 MB, assert the smallfiles key:

      smallfiles = true

      You can also disable journaling. For more information, see the MongoDB manual.

Finalize installation

  • Start the MongoDB service and configure it to start when the system boots:

    # systemctl enable mongodb.service
    # systemctl start mongodb.service