Overview
Proper configuration is crucial for Odoo performance, security, and reliability. This guide covers all configuration options available in deployERP for fine-tuning your instances.Configuration Methods
Dashboard UI
Visual configuration through web interface
Configuration Files
Direct editing of odoo.conf
API
Programmatic configuration updates
Core Configuration
Database Settings
PostgreSQL server hostname
- Usually
localhostfor same-server database - Can be remote database IP/hostname
PostgreSQL server port
Database user for Odoo connections
Database user password (encrypted in storage)
Default database name
- Can be comma-separated list for multi-database
- Use
Falseto show database selector
Template for creating new databases
Server Settings
HTTP service port (internal)
Longpolling/websocket port
Enable when behind reverse proxy
Modules loaded for all databases
Performance Configuration
Worker Configuration
Optimize worker settings based on server resources:Memory Limits
Configure memory limits per worker:| Setting | Description | Calculation | Example (4GB RAM) |
|---|---|---|---|
limit_memory_soft | Soft limit per worker | RAM * 0.8 / workers | 640 MB |
limit_memory_hard | Hard limit per worker | RAM * 0.9 / workers | 768 MB |
Request Limits
Control request processing:CPU time limit per request (seconds)
- Prevents runaway queries
- Increase for heavy computations
Total time limit per request (seconds)
- Includes database wait time
- Should be 2x CPU limit
Maximum number of requests per worker
- Worker restarts after limit
- Prevents memory leaks
Security Configuration
Access Control
Master password for database operations
- Required for database creation/deletion
- Should be complex and secure
- Stored encrypted
Show database list on login
- Disable for production
- Security best practice
Database visibility filter
- Example:
^%d$for subdomain matching - Example:
^productionfor specific prefix
Network Security
Email Configuration
SMTP Settings
Configure outgoing email:SMTP server hostname
- Example:
smtp.gmail.com - Example:
email-smtp.us-east-1.amazonaws.com
SMTP server port
- 587 for TLS
- 465 for SSL
- 25 for unencrypted (not recommended)
Use SSL/TLS encryption
SMTP authentication username
SMTP authentication password
Default sender email address
Email Templates
Logging Configuration
Log Levels
Configure logging verbosity:Global log level:
critical: Only critical errorserror: Errors onlywarn: Warnings and aboveinfo: Informational messages (default)debug: Detailed debug informationdebug_sql: Include SQL queries
Specific module logging:
Log Rotation
Advanced Configuration
Multiprocessing
Database Options
File Storage
Module Configuration
Module Management
Comma-separated list of module directories:
Path to upgrade scripts directory
Languages to load on startup:
Auto-install Configuration
Caching Configuration
Redis Integration
Enable Redis for improved performance:Static Asset Caching
Environment-Specific Configuration
Development Settings
Production Settings
Configuration via API
Update configuration programmatically:Configuration Best Practices
Start Conservative
Start Conservative
Begin with default settings and adjust based on monitoring data
Monitor Impact
Monitor Impact
Track performance metrics after each configuration change
Document Changes
Document Changes
Keep a changelog of configuration modifications
Test Thoroughly
Test Thoroughly
Test configuration changes in staging before production
Regular Reviews
Regular Reviews
Review and optimize configuration quarterly
Troubleshooting
Common Configuration Issues
| Issue | Cause | Solution |
|---|---|---|
| High memory usage | Too many workers | Reduce worker count |
| Slow requests | Low CPU limit | Increase limit_time_cpu |
| Connection errors | Wrong database settings | Verify db_host and credentials |
| Email failures | SMTP misconfiguration | Check SMTP settings and firewall |

