Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odoo with high availability on AWS #506

Open
EspiritoSantoAlex opened this issue May 27, 2024 · 1 comment
Open

Odoo with high availability on AWS #506

EspiritoSantoAlex opened this issue May 27, 2024 · 1 comment

Comments

@EspiritoSantoAlex
Copy link

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
Copy link

amh-mw commented May 27, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants