You must be aware that now odoo has released version 11 officially. To know odoo 11 features click here
In this tutorial I’ll explain you how to install high availability odoo version 11(Community version) on ubuntu 16.04
Note : There is no major difference for installing odoo community and odoo enterprise version.
Overall System Architecture
If python is already installed, make sure you have installed python version 3.5 or above. Previous versions of python are not compatible with odoo 11.
In this tutorial, I assume that you have properly configured your network for the required servers and you have basic networking knowledge to replace/change ip addresses mentioned throughout this tutorial with the appropriate ip addresses.
Database Server(s) Installation
Step 1 : Installation
Before you proceed for the installation, make sure you have configured locale settings properly.
Step 2 : Create user with password
Step 3 : Allow remote connection from application servers
All below lines in /etc/postgresql/9.5/main/pg_hba.conf file on top
Restart postgresql service
Application Server(s) Installation
Follow mentioned steps on each of the application server(s) to install odoo application only. For simplicity I will be using the debian package to install the odoo server, you can also follow the manual installation process from other tutorials.
Step 1 : Download latest version
Step 2 : Install odoo
Before you proceed for this command make sure that your locale is setup properly if you are using VPS.
If you encounter the blow error during the installation.
This command will installed all the dependency libraries on the system.
Note : Debian package installer by default install postgresql as dependent package, we can stop the postgresql service and remove service from the system startup service list.
Step 3 : Database configurations
Let’s help application server to find the database from the configuration file. (/etc/odoo/openerp-server.conf)
Note : Don’t forgot to replace your database name and database password with appropriate values.
Step 4 : Custom Modules
To install the custom modules on all application server, you need to configure NFS to share the directory which can be accessible from all the application and which should be mounted automatically on system startup.
After successful configuration of NFS on all application server you can add mount path in addons_path param(can be found on odoo configuration file)
Load Balancer Installation
Step 1 : Install nginx
Step 2 : Nginx site configuration
Create a configuration file under /etc/nginx/sites-enabled/xyz.com.conf with below content. Don’t forgot to change the domain name and SSL certificate path.
Step 3 : Restart nginx service