Odoo Help

Welcome!

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

2

Session storage to run more than one odoo server

By
Christoph
on 12/9/14, 7:18 AM 1,047 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?

OpenWorks
on 6/29/15, 6:43 AM
0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

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

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



Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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