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.
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..
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/9/14, 7:18 AM|
|Seen: 990 times|
|Last updated: 8/11/16, 7:40 AM|