Odoo 12, Performance DB and Python Tips
Odoo 12, Performance DB and Python Tips
Tips &
Tricks
Olivier Dony
@odony
1 Deploying
Deployment Architecture
Rules of thumb
+ Enforce limits
+ Recycle processes
Activate multi-worker to use your fancy hardware! + Perform better
+ Sync changes
How many users? ~ 5-10 per Worker e.g. 24 active workers = 180 users
Deployment Architecture
Scaling: example 1 Backend
+
Frontend
Odoo Server
n
Workers: 20
o
at
p lic
re
100 users 16c/32t
Xeon E5 2640v3 –
10000 visitors/day 2.6GHz
Odoo Server (B) 64 GB RAM
Workers: 20
Deployment Architecture
Scaling: example 2
Frontend Backend
Odoo
Workers:10 NFS
DB + File
Load
Balancer Odoo
NFS Server
Workers:10
NFS
Backend (DB): max I/O, RAM and Speed 64GB + SSD + 3.5GHz Base CPU speed
Frontend (HTTP): max Speed and # Cores 6c/12t 3.5GHz Base CPU speed
2 Measuring &
Monitoring
Watch your deployment’s
performance
Establish your
performance baseline
Watch your deployment’s Suggested tool: Munin
performance
regularly
Optimizing your Deployment
PostgreSQL