From f67262f0e7e7d5d59c3f36492d8fdaad8d6f269b Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Mon, 22 Jul 2019 14:57:52 +0000 Subject: [PATCH] Lower the memcache_socket_timeout to one second Lowering this setting still allows for reasonable confidence of a timeout without tanking performance. Certain downstream projects have already made this optimization: https://github.com/crowbar/crowbar-openstack/pull/1429 Change-Id: Iaca2f8cc09a6acae425c020a9d14da3ffde05dec --- oslo_cache/_opts.py | 2 +- .../notes/lower_socket_timeout-ff5680a6be23bdb2.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/lower_socket_timeout-ff5680a6be23bdb2.yaml diff --git a/oslo_cache/_opts.py b/oslo_cache/_opts.py index a78e8615..137924dc 100644 --- a/oslo_cache/_opts.py +++ b/oslo_cache/_opts.py @@ -83,7 +83,7 @@ FILE_OPTIONS = { ' before it is tried again. (dogpile.cache.memcache and' ' oslo_cache.memcache_pool backends only).'), cfg.FloatOpt('memcache_socket_timeout', - default=3.0, + default=1.0, help='Timeout in seconds for every call to a server.' ' (dogpile.cache.memcache and oslo_cache.memcache_pool' ' backends only).'), diff --git a/releasenotes/notes/lower_socket_timeout-ff5680a6be23bdb2.yaml b/releasenotes/notes/lower_socket_timeout-ff5680a6be23bdb2.yaml new file mode 100644 index 00000000..b0f72a25 --- /dev/null +++ b/releasenotes/notes/lower_socket_timeout-ff5680a6be23bdb2.yaml @@ -0,0 +1,9 @@ +--- +upgrade: + - | + The default value for ``memcache_socket_timeout`` has been lowered from 3 + seconds to 1 second. The positive side-effect of this can be found in + downstream `changes + `_. If you + deployment relies explicitly on a timeout of 3 seconds, please set that + override in your configuration.