Merge "osprofiler support redis"

This commit is contained in:
Zuul 2018-06-07 11:27:55 +00:00 committed by Gerrit Code Review
commit e88b9a7ad4
18 changed files with 36 additions and 48 deletions

View File

@ -541,6 +541,20 @@ elasticsearch_address: "{{ kolla_internal_fqdn }}"
enable_elasticsearch: "{{ 'yes' if enable_central_logging | bool or enable_freezer | bool or enable_osprofiler | bool or enable_skydive | bool or enable_monasca | bool else 'no' }}"
enable_kibana: "{{ 'yes' if enable_central_logging | bool else 'no' }}"
####################
# Redis options
####################
redis_address: "{{ kolla_internal_fqdn }}"
####################
# Osprofiler options
####################
# valid values: ["elasticsearch", "redis"]
osprofiler_backend: "elasticsearch"
elasticsearch_connection_string: "elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}"
redis_connection_string: "redis://:{{ redis_master_password }}@{{ redis_address }}:{{ redis_port }}"
osprofiler_backend_connection_string: "{{ redis_connection_string if osprofiler_backend == 'redis' else elasticsearch_connection_string }}"
####################
# RabbitMQ options
####################

View File

@ -203,9 +203,7 @@ helper_command=sudo cinder-rootwrap /etc/cinder/rootwrap.conf privsep-helper --c
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}
{% if enable_barbican | bool %}

View File

@ -103,7 +103,5 @@ policy_file = {{ glance_policy_file }}
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -50,7 +50,5 @@ policy_file = {{ glance_policy_file }}
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -103,7 +103,5 @@ enable_proxy_headers_parsing = True
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -52,9 +52,7 @@ driver = messagingv2
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}
{% if enable_grafana | bool %}

View File

@ -103,7 +103,5 @@ policy_file = {{ magnum_policy_file }}
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -67,9 +67,7 @@ policy_file = {{ mistral_policy_file }}
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}
[coordination]

View File

@ -152,9 +152,7 @@ ipv6_ptr_zone_prefix_size = 116
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}
{% if enable_opendaylight_qos | bool %}

View File

@ -277,9 +277,7 @@ notify_on_state_change = vm_and_task_state
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}
{% if enable_barbican | bool %}

View File

@ -129,7 +129,5 @@ notifications_topics_exchanges = ironic_versioned_notifications,ironic
{# enabled = true #}
{# trace_sqlalchemy = true #}
{# hmac_keys = {{ osprofiler_secret }} #}
{# {% if enable_elasticsearch | bool %} #}
{# connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }} #}
{# {% endif %} #}
{# connection_string = {{ osprofiler_backend_connection_string }} #}
{# {% endif %} #}

View File

@ -62,7 +62,5 @@ policy_file = {{ senlin_policy_file }}
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -22,7 +22,5 @@ max_retries = -1
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -48,7 +48,5 @@ driver = noop
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -54,7 +54,5 @@ driver = noop
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -64,7 +64,5 @@ policy_file = {{ vitrage_policy_file }}
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}

View File

@ -94,9 +94,7 @@ endpoint_type = internalURL
enabled = true
trace_sqlalchemy = true
hmac_keys = {{ osprofiler_secret }}
{% if enable_elasticsearch | bool %}
connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }}
{% endif %}
connection_string = {{ osprofiler_backend_connection_string }}
{% endif %}
[oslo_concurrency]

View File

@ -162,6 +162,7 @@ kolla_internal_vip_address: "10.10.10.254"
#enable_congress: "no"
#enable_designate: "no"
#enable_destroy_images: "no"
#enable_elasticsearch: "{{ 'yes' if enable_central_logging | bool or enable_freezer | bool or enable_osprofiler | bool or enable_skydive | bool else 'no' }}"
#enable_etcd: "no"
#enable_fluentd: "yes"
#enable_freezer: "no"
@ -306,6 +307,11 @@ kolla_internal_vip_address: "10.10.10.254"
# in glance, so default value should be set to "no".
glance_enable_rolling_upgrade: "no"
####################
# Osprofiler options
####################
# valid values: ["elasticsearch", "redis"]
#osprofiler_backend: "elasticsearch"
##################
# Barbican options