odoo/docker

Odoo with high availability on AWS

EspiritoSantoAlex opened this issue · 1 comments

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.

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.

Footnotes

  1. https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html

  2. https://apps.odoo.com/apps/modules/16.0/session_db/