Odoo Help


Session storage to run more than one odoo server

on 12/9/14, 7:18 AM 1,789 views

For a customer I want to run more than one odoo server with a load balancer in front.

The problem is that after switching the odoo server the user get an error with "session expired". Is there a way to share the session data between these servers?

I can fix the users by their ip addresses to certan servers but this is not the way I like.

Any Solution?

on 6/29/15, 6:43 AM



| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 6/29/15, 8:03 AM

I'd suggest configuration like :

1. load balancer + n app servers + 1 db server

app servers should have one shared folder for data dir ( on some nas , san or simmilar), mounted with rw permissions and SAME user, on all of them, and then you put that folder as data_dir in config file... 
that way you have balanced load on app servers, and all the data files accesible to all servers (via single data dir )

data_dir is new config option for v8 ( this trick will not work in v7 or eralier version) - folder contains all session files , as well as all attachments and downloaded modules per database... 

This is easier version, more sophisticated includes also n db_servers wich should then be carefuly replicated and synced..

Hope this will help a bit.. 

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 12/9/14, 7:18 AM
Seen: 1789 times
Last updated: 8/11/16, 7:40 AM