Install kafka relative packages on computes, other fixes

- ceilometer polling agent on computes depends on oslo.messaging.kafka
and kafka-python >= 1.0.0. In this CR we install it on computes.
- metering_partitions number fix

Change-Id: Ibfc5f96b0a2ad836278f86c7343c467574890fbd
This commit is contained in:
Ilya Tyaptin 2016-09-21 19:26:19 +03:00
parent 899ca96af5
commit 5e1f37d594
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,11 @@ notice('MODULAR: fuel-plugin-telemetry: configure-compute.pp')
if hiera('telemetry::kafka::enabled') {
package { 'python-kafka':
ensure => '1.2.5-1~u14.04+mos1'
} ->
package { 'python-oslo.messaging.kafka': }
$kafka_ips = hiera('telemetry::kafka::broker_list')
$kafka_url = "moskafka://${kafka_ips}"
ceilometer_config {

View File

@ -8,7 +8,8 @@ $network_metadata = hiera_hash('network_metadata')
$controllers = get_nodes_hash_by_roles($network_metadata, ['controller', 'primary-controller'])
$controllers_amount = count($controllers)
$notifications_partitions = max($controllers_amount/3,1)*$::processorcount
$metering_partitions = $controllers_amount
$kafka_nodes_count = count(hiera('telemetry::kafka::nodes_list'))
$metering_partitions = $kafka_nodes_count*4
# Connection info