Emilien Macchi 6140ae6fc3 Reduce number of workers to 2 when possible
Reducing workers will help us to consume less memory reduce the number
of timeouts we have in upstream CI.

* Neutron & Swift: reduce from 4 to 2 workers
* When possible, set workers to 2: aodh, ceilometer, gnocchi.

Change-Id: Ie064a9ad0389f112bbb69f4253f7f6dbc26deb0a
2016-02-24 12:36:11 -05:00

50 lines
1.6 KiB
Puppet

class openstack_integration::gnocchi {
# gnocchi is not packaged in Ubuntu Cloud Archive
# https://bugs.launchpad.net/cloud-archive/+bug/1535740
if $::osfamily == 'RedHat' {
class { '::gnocchi':
verbose => true,
debug => true,
database_connection => 'mysql+pymysql://gnocchi:gnocchi@127.0.0.1/gnocchi?charset=utf8',
}
class { '::gnocchi::db::mysql':
password => 'gnocchi',
}
class { '::gnocchi::keystone::auth':
password => 'a_big_secret',
}
class { '::gnocchi::api':
enabled => true,
keystone_password => 'a_big_secret',
keystone_identity_uri => 'http://127.0.0.1:35357/',
keystone_auth_uri => 'http://127.0.0.1:35357/',
service_name => 'httpd',
}
include ::apache
class { '::gnocchi::wsgi::apache':
workers => 2,
ssl => false,
}
class { '::gnocchi::client': }
class { '::gnocchi::db::sync': }
class { '::gnocchi::metricd': }
class { '::gnocchi::storage': }
class { '::gnocchi::storage::ceph':
ceph_username => 'openstack',
ceph_keyring => '/etc/ceph/ceph.client.openstack.keyring',
}
# make sure ceph pool exists before running gnocchi (dbsync & services)
Exec['create-gnocchi'] -> Exec['gnocchi-db-sync']
class { '::gnocchi::statsd':
archive_policy_name => 'high',
flush_delay => '100',
# random datas:
resource_id => '07f26121-5777-48ba-8a0b-d70468133dd9',
user_id => 'f81e9b1f-9505-4298-bc33-43dfbd9a973b',
project_id => '203ef419-e73f-4b8a-a73f-3d599a72b18d',
}
}
}