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:
@@ -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.
|
||||
Reference in New Issue
Block a user