Enable memcached failover on node failure

Add OPTIONS to horizon_session_caches to gracefully handle
memcached node failures instead of returning HTTP 500 errors.

Change-Id: I1bdc7fa9d2371f11b344802eee6613d827165140
Signed-off-by: Dmitriy Chubinidze <dcu995@gmail.com>
This commit is contained in:
Dmitriy Chubinidze
2026-04-14 08:54:27 +00:00
parent 5db53cd8e4
commit 6474b17fd8
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -148,6 +148,9 @@ horizon_session_caches:
default:
BACKEND: "django.core.cache.backends.memcached.PyMemcacheCache"
LOCATION: "{{ horizon_memcached_servers.split(',') }}"
OPTIONS:
ignore_exc: true
use_pooling: "{{ (horizon_memcached_servers.split(',') | length > 1) }}"
horizon_session_timeout: 1800
## Horizon Help URL Path
@@ -0,0 +1,6 @@
---
fixes:
- |
Fixed Horizon returning HTTP 500 when a memcached node becomes
unreachable. Horizon session cache now bypasses dead nodes instead
of raising a connection error, keeping the dashboard operational.