Odoo – Configuration for Postgres Database and Odoo App on different servers

Odoo – Configuration for Postgres Database and Odoo App on different servers

Make sure that you have properly configured Odoo on the app server and Postgres on the database server.

After that, you just need to have a few config changes.

On App Server:


The following parameters should be properly set in the Odoo config file:

  1. db_host = YourDatabaseServerIP
  2. db_port = 5432
  3. db_user = YourDatabaseUser
  4. db_password = YourDatabaseUserPassword

On Database Server:


  1. Mark “trust” to your App server IP in pg_hba.conf
  2. Assign the listen_addresses parameter as ‘*’ or ‘App Server IP’ in the Postgresql.conf file
    • #Don’t forget the single quotes here

And then as per your instance type and the number of concurrent database users you can set config file parameters if needed such as workers, limit_time_cpu, etc.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: