From bd708d9433e9a01b04a74fa51355dced68bb392f Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Wed, 9 May 2018 21:09:54 +0800 Subject: [PATCH] Make the workers configurable for gnocchi metricd By default, the workers for gnocchi_metricd is 5[0], it's too small for production environment, this PS to make it configurable, in this way, user can change it according to actual needs. [0]: https://github.com/openstack/kolla-ansible/blob/master/ansible/group_vars/all.yml#L356 Change-Id: Ibf4dec793f02c407547c77963cc13799d044b90f --- ansible/roles/gnocchi/defaults/main.yml | 2 ++ ansible/roles/gnocchi/templates/gnocchi.conf.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/gnocchi/defaults/main.yml b/ansible/roles/gnocchi/defaults/main.yml index 6fd320c461..613b91881a 100644 --- a/ansible/roles/gnocchi/defaults/main.yml +++ b/ansible/roles/gnocchi/defaults/main.yml @@ -84,6 +84,8 @@ gnocchi_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn }}:{{ g gnocchi_logging_debug: "{{ openstack_logging_debug }}" +gnocchi_metricd_workers: "{{ openstack_service_workers }}" + gnocchi_keystone_user: "gnocchi" openstack_gnocchi_auth: "{{ openstack_auth }}" diff --git a/ansible/roles/gnocchi/templates/gnocchi.conf.j2 b/ansible/roles/gnocchi/templates/gnocchi.conf.j2 index 7e0e07f55d..fa4f19ecd3 100644 --- a/ansible/roles/gnocchi/templates/gnocchi.conf.j2 +++ b/ansible/roles/gnocchi/templates/gnocchi.conf.j2 @@ -36,7 +36,7 @@ archive_policy_name = low flush_delay=10 [metricd] -workers = {{ openstack_service_workers }} +workers = {{ gnocchi_metricd_workers }} [indexer] url = mysql+pymysql://{{ gnocchi_database_user }}:{{ gnocchi_database_password }}@{{ gnocchi_database_address }}/{{ gnocchi_database_name }}