This question has been flagged
2 Replies
7034 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.

Avatar
Discard

Any Solution?

Best Answer

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.. 



Avatar
Discard