Author: |
Camptocamp,Odoo Community Association (OCA) |
License: |
AGPL-3 |
Branch: |
revert-101-13.0-monitoring_check_db_connection |
Repository: |
akretion/odoo-cloud-platform |
Dependencies: |
base |
Languages: |
Python (140, 83.8%),
and
reStructuredText (27, 16.2%) |
Other branches: |
10.0,
11.0,
12.0,
13.0,
7.0,
8.0,
9.0,
9.0-improvement,
9.0-monitoring_check_db_connection,
denis_v13,
merge-branch-1151-12.0.1.1.0,
merge-branch-1151-12.0.1.2.0,
merge-branch-1151-135_update_project_and_submodules-4b5c59d2,
merge-branch-1151-79_install_migrated_modules-263768bc,
merge-branch-1151-79_install_migrated_modules-a314611d,
merge-branch-1151-BSQOQ12-78-263768bc,
merge-branch-1151-BSQOQ12-78-a59e0754,
merge-branch-1151-BSQOQ12-78-c8f9399f,
merge-branch-1151-master,
merge-branch-1305-master,
merge-branch-1674-8.0.0.0.1,
merge-branch-1674-8.0.0.0.2,
merge-branch-1674-legacy-4665808d,
merge-branch-1674-legacy-92b0cc25,
merge-branch-1955-12.0-04330cea,
merge-branch-1955-12.0-b19bf503,
merge-branch-1955-13_initialize_branch_v12-06a09553,
merge-branch-2176-11.0.0,
merge-branch-2176-11.0.1,
merge-branch-2176-11.0.3,
merge-branch-2176-11.1.0,
merge-branch-2176-11.2.0,
merge-branch-2176-master,
merge-branch-2221-fix-swift-14021d9d,
merge-branch-2221-ovh-56-qty-received-scenario-8d7505aa,
merge-branch-2221-update_submodules_for_travis-9fd09271,
merge-branch-2258-12.1.1,
merge-branch-2258-12.1.2,
merge-branch-2258-add_odoo_cloud_platform-3acc3ca7,
merge-branch-2258-master,
merge-branch-2477-12.0.0.1.0,
merge-branch-2477-12.0.1.0.0,
merge-branch-2477-12.0.1.1.0,
merge-branch-2477-12.0.1.2.0,
merge-branch-2477-12.0.1.2.1,
merge-branch-2477-13.0-init-c2f22125,
merge-branch-2477-13.0-init2-da62cb54,
merge-branch-2477-master-23e1b9ac,
merge-branch-2477-master-266b01e9,
merge-branch-2477-master-7c6dc33f,
merge-branch-2543-add-base_fileurl_field-2cd8af10,
merge-branch-2543-bsrd-199_update_odoo_cloud_platform-86233f82,
merge-branch-2543-bssmb-25_web_url_fields_s3-188365c5,
merge-branch-2543-bssmb-25_web_url_fields_s3-2fe4a35d,
merge-branch-2543-bssmb-25_web_url_fields_s3-758bda9d,
merge-branch-2543-bssmb-25_web_url_fields_s3-830e055f,
merge-branch-2543-bssmb-25_web_url_fields_s3-d89c01bb,
merge-branch-2543-mig-base_webdb-4436c761,
merge-branch-2757-13.0.0.1.0,
merge-branch-2757-master-6cfa4609,
merge-branch-2762-BSRD-286_Check_odoo-cloud-platform-1de6d1d5,
merge-branch-2762-BSRD-286_Check_odoo-cloud-platform-32273415,
merge-branch-2762-BSRD-286_Check_odoo-cloud-platform-c3cfd274,
merge-branch-559-gste-44-89edcceb,
merge-branch-559-gste-44-b88ff338,
revert-100-12.0-monitoring_check_db_connection,
revert-102-10.0-monitoring_check_db_connection,
revert-98-9.0-monitoring_check_db_connection,
and
revert-99-11.0-monitoring_check_db_connection |
Other repositories: |
ERPLibre/odoo-cloud-platform,
GSLabIt/odoo-cloud-platform,
Jeisonpernia/hibou-odoo-suite,
MjAbuz/odoo-cloud-platform,
NCS-75/hibou-odoo-suite,
NCS-75/odoo-cloud-platform,
Numigi/hibou-odoo-suite,
PCatinean/odoo-cloud-platform,
RL-OtherApps/odoo-cloud-platform,
TelmoSenseFly/odoo-cloud-platform,
TheCloneMaster/hibou-odoo-suite,
Tonow-c2c/odoo-cloud-platform,
Wiserby/odoo-cloud-platform,
aadarsh977/hibou-odoo-suite,
acarmisc/odoo-cloud-platform,
acsone/odoo-cloud-platform,
agrista/odoo-cloud-platform,
ap-wtioit/odoo-cloud-platform,
asiellb/odoo-cloud-platform,
avoinsystems/odoo-cloud-platform,
brian10048/hibou-odoo-suite,
camptocamp/odoo-cloud-platform,
cdxfish/hibou-odoo-suite,
celm1990/odoo-cloud-platform,
cialuo/odoo-cloud-platform,
dani-xtendoo/hibou-odoo-suite,
difra/odoo-cloud-platform,
digitalliuzg/hibou-odoo-suite,
exosoftware/c2c-odoo-cloud-platform,
grindtildeath/odoo-cloud-platform,
guewen/odoo-cloud-platform,
gurneyalex/odoo-cloud-platform,
hibou-io/camptocamp-cloud-platform,
hibou-io/hibou-odoo-suite,
ircodoo/odoo-cloud-platform,
itsalgeria/odoo-cloud-platform,
jeffryjdelarosa/hibou-odoo-suite,
jromero-octagono/hibou-odoo-suite,
junariltd/odoo-cloud-platform,
leemannd/odoo-cloud-platform,
leodoooca/hibou-odoo-suite,
loftwah/odoo-cloud-platform,
modoolar/odoo-cloud-platform,
mohamed-helmy/odoo-cloud-platform,
mudismud/odoo-cloud-platform,
mulaudzicalvin/hibou-odoo-suite,
odoo-modules/hibou-odoo-suite,
oondeo/odoo-cloud-platform,
p-tombez/odoo-cloud-platform,
pasgou/odoo-cloud-platform,
paulpwo/odoo-cloud-platform,
royalline1/hibou-odoo-suite,
royalline1/odoo-cloud-platform,
sadeqamin/hibou-odoo-suite,
sadeqamin/odoo-cloud-platform,
sbidoul/odoo-cloud-platform,
sebalix/odoo-cloud-platform,
sebastienbeau/odoo-cloud-platform,
simahawk/odoo-cloud-platform,
sm2x/hibou-odoo-suite,
sm2x/odoo-cloud-platform,
smussie/odoo-cloud-platform,
suningwz/hibou-odoo-suite,
suningwz/odoo-cloud-platform,
tate11/hibou-odoo-suite,
tate11/odoo-cloud-platform,
tirix/odoo-cloud-platform,
tschanzt/odoo-cloud-platform,
ursais/odoo-cloud-platform-1,
usmanfarzandali/hibou-odoo-suite,
vidtsin/odoo-cloud-platform,
vrenaville/odoo-cloud-platform,
wahello/odoo-cloud-platform,
xuanox/odoo-cloud-platform,
yasmanycastillo/hibou-odoo-suite,
yvaucher/odoo-cloud-platform,
and
zakiuu/odoo-cloud-platform |
<h1 class="title">Sessions in Redis</h1>
<p>This addon allows to store the web sessions in Redis.</p>
<a name="configuration"></a>
<h2>Configuration</h2>
<p>The storage of sessions in Redis is activated using environment variables.</p>
<ul class="simple">
<li><code>ODOO_SESSION_REDIS</code> has to be <code>1</code> or <code>true</code></li>
<li><code>ODOO_SESSION_REDIS_HOST</code> is the redis hostname (default is <code>localhost</code>)</li>
<li><code>ODOO_SESSION_REDIS_PORT</code> is the redis port (default is <code>6379</code>)</li>
<li><code>ODOO_SESSION_REDIS_PASSWORD</code> is the password for the AUTH command
(optional)</li>
<li><code>ODOO_SESSION_REDIS_PREFIX</code> is the prefix for the session keys (optional)</li>
<li><code>ODOO_SESSION_REDIS_EXPIRATION</code> is the time in seconds before expiration of
the sessions (default is 7 days)</li>
</ul>
<p>The keys are set to <code>session:<session id></code>.
When a prefix is defined, the keys are <code>session:<prefix>:<session id></code></p>
<p>This addon must be added in the server wide addons with (<code>--load</code> option):</p>
<p><code>--load=web,session_redis</code></p>
<a name="limitations"></a>
<h2>Limitations</h2>
<ul class="simple">
<li>The server has to be restarted in order for the sessions to be stored in
Redis.</li>
<li>All the users will have to login again as their previous session will be
dropped.</li>
<li>The addon monkey-patch <code>odoo.http.Root.session_store</code> with a custom
method when the Redis mode is active, so incompatibilities with other addons
is possible if they do the same.</li>
</ul>