Reduce the max_pool_size parameter from default 5 to 2, to reduce the max number of connections each process needs. Reduce connection_recycle_time from 200 to 20, to reduce life duration of a connection, allowing faster recovery in case of failure of a mysql-router. Configure horizon-k8s to persist connections for 20 seconds, and enable connection healthchecks to make sure the connection is usable. Change-Id: Id88d5a8643b8dd2db618e18c8ad556f3e92282ba
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
[DEFAULT]
|
|
debug = {{ options.debug }}
|
|
lock_path = /var/lock/barbican
|
|
state_path = /var/lib/barbican
|
|
|
|
host_href = ""
|
|
transport_url = {{ amqp.transport_url }}
|
|
|
|
{% include "parts/section-database" %}
|
|
|
|
{% include "parts/section-identity" %}
|
|
# XXX Region should come from the id relation here
|
|
region_name = {{ options.region }}
|
|
|
|
{% include "parts/section-service-user" %}
|
|
|
|
[secretstore]
|
|
{% if vault_kv and vault_kv.approle_role_id -%}
|
|
enabled_secretstore_plugins = vault_plugin
|
|
{% else -%}
|
|
enabled_secretstore_plugins = store_crypto
|
|
{% endif -%}
|
|
|
|
[crypto]
|
|
enabled_crypto_plugins = simple_crypto
|
|
|
|
[simple_crypto_plugin]
|
|
# the kek should be a 32-byte value which is base64 encoded
|
|
kek = 'YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY='
|
|
|
|
{% if vault_kv and vault_kv.approle_secret_id -%}
|
|
[vault_plugin]
|
|
approle_role_id = {{ vault_kv.approle_role_id }}
|
|
approle_secret_id = {{ vault_kv.approle_secret_id }}
|
|
kv_mountpoint = {{ vault_kv.kv_mountpoint }}
|
|
vault_url = {{ vault_kv.vault_url }}
|
|
use_ssl = True
|
|
ssl_ca_crt_file = {{ vault_kv.ca_crt_file }}
|
|
{% endif -%}
|
|
|
|
{% include "parts/section-oslo-messaging-rabbit" %}
|