Merge "Database connection pooling improvements"

This commit is contained in:
Zuul 2021-12-03 20:25:40 +00:00 committed by Gerrit Code Review
commit 1a22dc47de
2 changed files with 9 additions and 1 deletions

View File

@ -122,6 +122,10 @@ mistral_galera_user: mistral
mistral_galera_use_ssl: "{{ galera_use_ssl | default(False) }}"
mistral_galera_ssl_ca_cert: "{{ galera_ssl_ca_cert | default('') }}"
mistral_galera_port: "{{ galera_port | default('3306') }}"
mistral_db_max_overflow: "{{ openstack_db_max_overflow | default('50') }}"
mistral_db_max_pool_size: "{{ openstack_db_max_pool_size | default('5') }}"
mistral_db_pool_timeout: "{{ openstack_db_pool_timeout | default('30') }}"
mistral_db_connection_recycle_time: "{{ openstack_db_connection_recycle_time | default('600') }}"
# Configuration options
mistral_debug: "{{ debug | default(false) }}"

View File

@ -9,7 +9,11 @@ transport_url = {{ mistral_oslomsg_rpc_transport }}://{% for host in mistral_osl
allow_action_execution_deletion = True
[database]
connection = mysql+pymysql://{{ mistral_galera_user }}:{{ mistral_galera_password }}@{{ mistral_galera_address }}/{{ mistral_galera_database }}?charset=utf8{% if mistral_galera_use_ssl | bool %}&ssl_verify_cert=true{% if mistral_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ mistral_galera_ssl_ca_cert }}{% endif %}{% endif %}
connection = mysql+pymysql://{{ mistral_galera_user }}:{{ mistral_galera_password }}@{{ mistral_galera_address }}/{{ mistral_galera_database }}?charset=utf8{% if mistral_galera_use_ssl | bool %}&ssl_verify_cert=true{% if mistral_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ mistral_galera_ssl_ca_cert }}{% endif %}{% endif +%}
max_overflow = {{ mistral_db_max_overflow }}
max_pool_size = {{ mistral_db_max_pool_size }}
pool_timeout = {{ mistral_db_pool_timeout }}
connection_recycle_time = {{ mistral_db_connection_recycle_time }}
[keystone_authtoken]
auth_type = password