Overview
The Xloud Dashboard stores user session data (authentication tokens, UI state, flash messages) in a configurable backend. The default is Memcached — suitable for most production deployments. In high-availability configurations where multiple Dashboard instances are load-balanced, the session backend must be shared across all nodes.Prerequisites
- SSH access to the Dashboard host
- The session backend service (Memcached, Redis, or database) must already be running and accessible from the Dashboard host
Session Storage Configuration
- XDeploy
- CLI
Session storage is automatically configured during deployment. The default backend
(Memcached) is provisioned and connected to the Dashboard without manual intervention.For advanced customization (such as switching to Redis or adjusting session parameters):
Open Advanced Configuration
Navigate to XDeploy → Advanced Configuration and select horizon in the
Service Tree.
Edit local_settings.py
Select or create
local_settings.py in the file list. Modify the SESSION_ENGINE
and CACHES configuration as needed (see the backend-specific examples in the
CLI tab for reference values).Click Save Current File.For most deployments, the default Memcached configuration requires no changes.
Only modify session storage when switching backends or tuning HA behaviour.
Session Backend Comparison
| Backend | HA Support | Performance | Persistence | When to Use |
|---|---|---|---|---|
| Memcached | Yes (shared cluster) | Fastest | No (data lost on restart) | Default — recommended for most deployments |
| Redis | Yes (Sentinel or Cluster) | Fast | Optional (RDB/AOF) | When session persistence is required |
| Database | Yes (shared DB) | Slower | Yes | Legacy or when no caching layer available |
| Cookie | N/A (client-side) | N/A | Client-managed | Development only — insecure for production |
Memcached (Default)
Xloud XAVS deploys Memcached as part of the standard stack. The Dashboard is pre-configured to use it.local_settings.py — Memcached session
Single-node Memcached
Redis
Redis provides session persistence and supports Sentinel and Cluster modes for HA.Install Redis client library
Install django-redis in the Horizon container
django-redis to the Horizon image build.Database Sessions
Database sessions store session data in the Djangodjango_session table. Suitable when no caching infrastructure is available but performs worse under load due to database round-trips on every request.
local_settings.py — Database session
Create session table
Session Expiry and Security
Session security settings
Next Steps
Quotas & Limits
Configure project quotas and resource limits
Projects & Users
Manage project membership and user accounts
Token Configuration
Configure Keystone token lifetimes and rotation
Security Hardening
Broader infrastructure security configuration