odoo / docker

Other
931 stars 1.51k forks source link

Odoo with high availability on AWS #506

Open EspiritoSantoAlex opened 1 month ago

EspiritoSantoAlex commented 1 month ago

I am implementing Odoo ERP to work with high availability on AWS. I configured the Docker cluster service called ECS, but when I use more than one instance, Odoo seems to lose control of sessions, generating different types of errors and bad behavior. What should I configure to fix this problem?

P.S. Using just a single instance, Odoo works perfectly.

amh-mw commented 1 month ago

Odoo stores session files on disk on each instance, so depending on which instance is connected to, the session may or may not be there. A couple ideas:

  1. Configure ALB ^1 to use same instance for a given session.
  2. Install an Odoo module ^2 to store sessions in the database instead.