An oslo.config enabled dogpile.cache.
Go to file
Thomas Goirand bae5561d4d Clean-up memcache connection sockets
The ConnectionPool currently opens sockets, but never closes them. As a
result, any client using oslo.cache memcache pool leaves sockets in a
CLOSE_WAIT state, with the source port not being re-usable.

In our production system, were we have A LOT of activity, this creates
a storm of non-reusable ports: all source ports are in use, making the
node unuseable for other things.

This patch adds a __del__ destructor closing inactive connections,
fixing the issue.

Closes-Bug: #2043121
Change-Id: I09d632346c76d1aff7c534f0d040162d1985f548
2023-11-13 15:46:59 +01:00
doc Remove unnecessary unicode prefixes 2022-04-19 15:07:53 +08:00
oslo_cache Clean-up memcache connection sockets 2023-11-13 15:46:59 +01:00
playbooks/tests/functional Refactoring functional tests based on standard usages 2020-05-28 14:34:47 +02:00
releasenotes Update master for stable/2023.2 2023-09-07 09:35:52 +00:00
tools Avoid tox_install.sh for constraints support 2019-05-04 07:02:41 +02:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:42:30 +00:00
.gitignore Adding functional tests 2020-05-14 14:45:12 +02:00
.gitreview OpenDev Migration Patch 2019-04-19 19:29:50 +00:00
.mailmap Initial commit from oslo cookiecutter template 2015-04-15 11:22:01 -05:00
.pre-commit-config.yaml Move flake8 as a pre-commit local target. 2021-03-23 13:07:33 +01:00
.stestr.conf Adding functional tests 2020-05-14 14:45:12 +02:00
.zuul.yaml Moves supported python runtimes from version 3.8 to 3.10 2023-04-10 12:57:38 +09:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:18:10 +02:00
HACKING.rst update the doc URLs 2017-07-11 21:51:41 +08:00
LICENSE Initial commit from oslo cookiecutter template 2015-04-15 11:22:01 -05:00
README.rst Replace git.openstack.org URLs with opendev.org URLs. 2019-05-09 09:15:16 +02:00
bindep.txt Add Memcached functional tests to gate 2020-08-20 14:41:47 +02:00
requirements.txt Expose pymemcache's HashClient public params 2022-01-21 08:54:13 +01:00
setup.cfg Revert "Moves supported python runtimes from version 3.8 to 3.10" 2023-05-05 18:55:01 +00:00
setup.py remove outdated header 2020-02-10 18:34:34 +01:00
test-requirements.txt Bump bandit 2023-05-17 16:03:23 +02:00
tox.ini Fix issues related to tox4 2023-02-17 13:14:58 +00:00

README.rst

Team and repository tags

image

oslo.cache

Latest Version

Downloads

oslo.cache aims to provide a generic caching mechanism for OpenStack projects by wrapping the dogpile.cache library. The dogpile.cache library provides support memoization, key value storage and interfaces to common caching backends such as Memcached.