kolla-ansible/ansible/roles/monasca/templates
Pierre Riteau c81772024c Reduce the use of SQLAlchemy connection pooling
When the internal VIP is moved in the event of a failure of the active
controller, OpenStack services can become unresponsive as they try to
talk with MariaDB using connections from the SQLAlchemy pool.

It has been argued that OpenStack doesn't really need to use connection
pooling with MariaDB [1]. This commit reduces the use of connection
pooling via two configuration options:

- max_pool_size is set to 1 to allow only a single connection in the
  pool (it is not possible to disable connection pooling entirely via
  oslo.db, and max_pool_size = 0 means unlimited pool size)
- lower connection_recycle_time from the default of one hour to 10
  seconds, which means the single connection in the pool will be
  recreated regularly

These settings have shown better reactivity of the system in the event
of a failover.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-April/061808.html

Change-Id: Ib6a62d4428db9b95569314084090472870417f3d
Closes-Bug: #1896635
2020-09-22 17:54:45 +02:00
..
monasca-agent-collector Add load monitoring plugin config for Monasca 2019-06-07 10:54:55 +01:00
monasca-agent-forwarder Fix bug in deploying monasca_agent_forwarder 2020-06-05 23:28:28 +08:00
monasca-agent-statsd Support deploying the Monasca Agent 2018-11-02 13:04:05 +00:00
monasca-api Reduce the use of SQLAlchemy connection pooling 2020-09-22 17:54:45 +02:00
monasca-grafana Implement IPv6 support in the control plane 2019-10-16 10:24:35 +02:00
monasca-log-metrics Logstash 6 support 2020-07-15 08:54:53 +00:00
monasca-log-persister Logstash 6 support 2020-07-15 08:54:53 +00:00
monasca-log-transformer Logstash 6 support 2020-07-15 08:54:53 +00:00
monasca-notification Use Confluent Kafka client in remaining Monasca services 2020-07-15 09:55:25 +01:00
monasca-persister Use Confluent Kafka client in remaining Monasca services 2020-07-15 09:55:25 +01:00
monasca-thresh Implement IPv6 support in the control plane 2019-10-16 10:24:35 +02:00