Skip to content

Commit

Permalink
Add workaround for keystonemiddleware/neutron memcached issue
Browse files Browse the repository at this point in the history
There is an issue where keystonemiddleware connections to memcached from
neutron-server grow beyond configured values [1], eventually reaching
the maximum number of connections accepted by memcached servers. Other
services do not appear to be affected by this issue.

A workaround is to use the advanced memcached pool. Despite its
documentation claiming to only work with Python 2, it appears to work
fine on Python 3.

[1] https://bugs.launchpad.net/keystonemiddleware/+bug/1883659

Change-Id: Ifbbc2022839cbc575848d830600241c61603c80b
Closes-Bug: #1892210
  • Loading branch information
priteau committed Aug 19, 2020
1 parent db6a9d6 commit 5a52d8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/roles/neutron/templates/neutron.conf.j2
Expand Up @@ -115,6 +115,9 @@ memcache_secret_key = {{ memcache_secret_key }}

memcached_servers = {% for host in groups['memcached'] %}{{ 'api' | kolla_address(host) | put_address_in_context('memcache') }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}

# Workaround for https://bugs.launchpad.net/keystonemiddleware/+bug/1883659
memcache_use_advanced_pool = True

[oslo_messaging_notifications]
transport_url = {{ notify_transport_url }}
{% if neutron_enabled_notification_topics %}
Expand Down
@@ -0,0 +1,8 @@
---
fixes:
- |
Fixes `LP#1892210
<https://bugs.launchpad.net/kolla-ansible/+bug/1892210>`__ where the number
of open connections to Memcached from ``neutron-server`` would grow over
time until reaching the maximum set by ``memcached_connection_limit`` (5000
by default), at which point the Memcached instance would stop working.

0 comments on commit 5a52d8e

Please sign in to comment.