Database connection pooling improvements
- Implemented new variable ``connection_recycle_time`` responsible for SQLAlchemy's connection recycling - Set new default values for db pooling variables which are inherited from the global ones. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/819424 Change-Id: Id7b0c26409a0d1b33a679201655a4dd08bacc57a
This commit is contained in:
parent
4546eb97ee
commit
b6307058ec
|
@ -61,6 +61,10 @@ aodh_galera_use_ssl: "{{ galera_use_ssl | default(False) }}"
|
|||
aodh_galera_ssl_ca_cert: "{{ galera_ssl_ca_cert | default('') }}"
|
||||
aodh_connection_string: "{{ aodh_db_type }}://{{ aodh_database_user }}:{{ aodh_container_db_password }}@{{ aodh_db_address }}/{{ aodh_database_name }}?charset=utf8{% if aodh_galera_use_ssl | bool %}&ssl_verify_cert=true{% if aodh_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ aodh_galera_ssl_ca_cert }}{% endif %}{% endif %}"
|
||||
aodh_galera_port: "{{ galera_port | default('3306') }}"
|
||||
aodh_db_max_overflow: "{{ openstack_db_max_overflow | default('50') }}"
|
||||
aodh_db_max_pool_size: "{{ openstack_db_max_pool_size | default('5') }}"
|
||||
aodh_db_pool_timeout: "{{ openstack_db_pool_timeout | default('30') }}"
|
||||
aodh_db_connection_recycle_time: "{{ openstack_db_connection_recycle_time | default('600') }}"
|
||||
|
||||
# Oslo Messaging
|
||||
# RPC
|
||||
|
|
|
@ -16,6 +16,10 @@ port = {{ aodh_service_port }}
|
|||
|
||||
[database]
|
||||
connection = {{ aodh_connection_string }}
|
||||
max_overflow = {{ aodh_db_max_overflow }}
|
||||
max_pool_size = {{ aodh_db_max_pool_size }}
|
||||
pool_timeout = {{ aodh_db_pool_timeout }}
|
||||
connection_recycle_time = {{ aodh_db_connection_recycle_time }}
|
||||
|
||||
[keystone_authtoken]
|
||||
insecure = {{ keystone_service_internaluri_insecure | bool }}
|
||||
|
|
Loading…
Reference in New Issue