Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

When should Database be separated on Separate Server.

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
serverdatabasepostgresql
1 Responder
4497 Vistas
Avatar
Hamdy ElSherbiny

It is not very Clear in Odoo documentation when to decide to have PostgreSQL database on a dedicated server.

Is it recommended to have it in the same Odoo Server?

What are the factors I should consider to separate the DB into another Server?


I appreciate your kind advice?

0
Avatar
Descartar
Avatar
Ramon Rios
Mejor respuesta

That isn't exlicitly clear in Odoo's documentation because the "best" answer often depends on your specific needs and scale.

For small to medium-sized Odoo deployments, it is generally recommended and common practice to have the PostgreSQL database running on the same server as the Odoo application.

Why it's often recommended for smaller setups:

  • Simplicity: Easier to set up, manage, and troubleshoot. You have fewer servers to maintain.
  • Cost-Effective: Only one server is needed, reducing hosting costs.
  • Lower Latency: Odoo communicates with the database over localhost or a very fast internal network, minimizing communication delays. This is often faster than network hops between separate servers.
  • Resource Sharing (if balanced): For lighter loads, the server's CPU, RAM, and disk I/O can be efficiently shared between Odoo and PostgreSQL.

What are the factors you should consider to separate the DB into another Server?

Separating the PostgreSQL database onto a dedicated server becomes highly recommended as your Odoo deployment grows in size, complexity, or criticality. Here are the key factors to consider:

  1. Performance and Scalability:
    • High User Count: If you have a large number of concurrent Odoo users (e.g., 50+ active users).
    • Large Data Volume: If your database is expected to grow very large (hundreds of GBs or TBs) with extensive historical data, many attachments, or complex module data.
    • Complex Operations: If Odoo is performing very resource-intensive operations frequently (e.g., complex reports, heavy integrations, large data imports/exports).
    • Resource Contention: Odoo and PostgreSQL are both CPU, RAM, and I/O intensive. On a single server, they can compete for these resources, leading to bottlenecks. Separating them allows each to have dedicated hardware resources.
  2. Resource Isolation:
    • If you notice that either Odoo or PostgreSQL is consistently maxing out CPU, RAM, or disk I/O on your single server, separating them allows you to scale each component independently. You can give the database server more RAM and faster SSDs, and the Odoo server more CPU cores.
  3. Security and Compliance:
    • Enhanced Security: A dedicated database server can be placed in a more restricted network segment, with tighter firewall rules, reducing its exposure to potential threats.
    • Compliance Requirements: Certain industry regulations or compliance standards may mandate physical or logical separation of data layers.
  4. Backup and Recovery:
    • Simplified Backups: Backing up a dedicated database server can be more straightforward and efficient, especially for large databases.
    • Point-in-Time Recovery: Easier to implement advanced backup strategies like streaming replication and point-in-time recovery for the database.
  5. High Availability (HA) and Disaster Recovery (DR):
    • For mission-critical Odoo instances, you might want to set up PostgreSQL replication (e.g., master-replica) for high availability. This inherently requires at least two database servers.
    • Separation is a prerequisite for robust DR strategies.
  6. Management and Specialization:
    • If you have dedicated database administrators (DBAs) or need very specific PostgreSQL tuning, having a dedicated server allows them to manage it independently without affecting the Odoo application server.
  7. Cost and Complexity (The Downsides of Separation):
    • Increased Cost: You will need at least two servers (one for Odoo, one for PostgreSQL).
    • Increased Complexity: More network configuration, more points of failure, more components to monitor and manage.
    • Network Latency: While often minimal in a good data center, there will always be some network latency between two separate servers compared to localhost. This is usually negligible unless the network is poorly configured or geographically distant.

Summary of Advice:

  • Keep them together (same server): For most small to medium Odoo deployments (e.g., up to 30-50-100 concurrent users, database size under 500-1TB), a single, well-resourced server is often the most efficient and manageable solution.
  • Consider separating (dedicated server): When your Odoo instance becomes mission-critical, experiences consistent resource bottlenecks, serves a large number of concurrent users, handles very large data volumes, or if you have specific security/compliance requirements.
1
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Database Migration
database postgresql
Avatar
Avatar
1
jul 23
6718
How to save the column of the database when deleting the module?
database postgresql
Avatar
Avatar
1
mar 15
6362
Why does the server need to restart after creation of new DB?
server database
Avatar
0
mar 15
4548
How to integrate Microsoft SQL Server with Odoo? Resuelto
server database integration postgresql microsoft
Avatar
Avatar
Avatar
Avatar
5
ago 24
27515
v16: Longpolling not working (not logging info in the IDE) Resuelto
server database postgresql longpoll longpolling
Avatar
1
dic 22
5300
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now