64b6c9261e
Current folder name New folder name Book title ---------------------------------------------------------- basic-install DELETE cli-guide DELETE common common NEW admin-guide-cloud Cloud Administrators Guide docbkx-example DELETE openstack-block-storage-admin DELETE openstack-compute-admin DELETE openstack-config config-reference OpenStack Configuration Reference openstack-ha high-availability-guide OpenStack High Availabilty Guide openstack-image image-guide OpenStack Virtual Machine Image Guide openstack-install install-guide OpenStack Installation Guide openstack-network-connectivity-admin admin-guide-network OpenStack Networking Administration Guide openstack-object-storage-admin DELETE openstack-security security-guide OpenStack Security Guide openstack-training training-guide OpenStack Training Guide openstack-user user-guide OpenStack End User Guide openstack-user-admin user-guide-admin OpenStack Admin User Guide glossary NEW OpenStack Glossary bug: #1220407 Change-Id: Id5ffc774b966ba7b9a591743a877aa10ab3094c7 author: diane fleming
64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
[[s-ceilometer-agent-central]]
|
|
==== Highly available Ceilometer Central Agent
|
|
|
|
Ceilometer is the metering service in OpenStack.
|
|
Central Agent polls for resource utilization statistics for resources not tied
|
|
to instances or compute nodes.
|
|
|
|
NOTE: Due to limitations of a polling model, a single instance of this agent
|
|
can be polling a given list of meters. In this setup, we install this service
|
|
on the API nodes also in the active / passive mode.
|
|
|
|
|
|
Making the Ceilometer Central Agent service highly available in active / passive mode involves
|
|
managing its daemon with the Pacemaker cluster manager,
|
|
|
|
NOTE: You will find at http://docs.openstack.org/developer/ceilometer/install/manual.html#installing-the-central-agent[this page]
|
|
the process to install Ceilometer Central Agent.
|
|
|
|
|
|
===== Adding Ceilometer Central Agent resource to Pacemaker
|
|
|
|
First of all, you need to download the resource agent to your system :
|
|
|
|
----
|
|
cd /usr/lib/ocf/resource.d/openstack
|
|
wget https://raw.github.com/madkiss/openstack-resource-agents/master/ocf/ceilometer-agent-central
|
|
chmod a+rx *
|
|
----
|
|
|
|
You may then proceed with adding the Pacemaker configuration for
|
|
Ceilometer Central Agent resource. Connect to the Pacemaker cluster with +crm
|
|
configure+, and add the following cluster resources:
|
|
|
|
----
|
|
include::includes/pacemaker-ceilometer_agent_central.crm[]
|
|
----
|
|
|
|
This configuration creates
|
|
|
|
* +p_ceilometer-agent-central+, a resource for manage Ceilometer Central Agent service
|
|
|
|
+crm configure+ supports batch input, so you may copy and paste the
|
|
above into your live pacemaker configuration, and then make changes as
|
|
required.
|
|
|
|
Once completed, commit your configuration changes by entering +commit+
|
|
from the +crm configure+ menu. Pacemaker will then start the Ceilometer Central Agent
|
|
service, and its dependent resources, on one of your nodes.
|
|
|
|
===== Configuring Ceilometer Central Agent service
|
|
|
|
Edit +/etc/ceilometer/ceilometer.conf+ :
|
|
----
|
|
# We have to use MySQL connection to store datas :
|
|
sql_connection=mysql://ceilometer:password@192.168.42.101/ceilometer
|
|
|
|
# We use API VIP for Identity Service connection :
|
|
os_auth_url=http://192.168.42.103:5000/v2.0
|
|
|
|
# We send notifications to High Available RabbitMQ :
|
|
notifier_strategy = rabbit
|
|
rabbit_host = 192.168.42.102
|
|
----
|