session_db
Store sessions in a database instead of the filesystem. This simplifies the configuration of horizontally scalable deployments, by avoiding the need for a distributed filesystem to store the Odoo sessions.
Key Features
- session: Stores HTTP sessions in a PostgreSQL database instead of the filesystem.
- session: Automatically creates the http_sessions table with sid, write_date, and payload columns if it does not exist.
- session: Provides create, read, update, and delete operations for session management.
- session: Implements retry logic for database operations in case of connection failures.
- session: Uses locking mechanisms to ensure thread safety in multi-worker environments.
- session: Supports vacuuming of expired sessions based on a configurable maximum lifetime.
- configuration: Configures the PostgreSQL database connection using the SESSION_DB_URI environment variable.
- security: Recommends using a dedicated database and PostgreSQL user for enhanced security.