Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Multi instance sharing same database

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
architecturedatabases
1 Rispondi
6494 Visualizzazioni
Avatar
Souhail

Does anyone have some idea on how we can set up a multi odoo instance sharing the same database ? 

And do you have some ideas on how odoo handles the concurent updates, data conflict and how to handle sessions and cache in this type of architecture 


Thanks in advance,

0
Avatar
Abbandona
Avatar
Nomadoo
Risposta migliore

Setting up multiple Odoo instances sharing the same database is commonly referred to as Odoo multi-instance deployment. Each instance represents a separate Odoo server, while they all interact with the same database. This setup is useful for scenarios where you want to isolate different environments (e.g., production, staging, testing) while sharing a single database.


Here are the general steps to set up a multi-instance deployment:

1. Install Odoo:

Install Odoo on each server where you want to set up an instance. You can use the same Odoo codebase for all instances.

2. Configure Odoo Instances:

For each Odoo instance, configure the following settings in the odoo.conf file:


[options]

addons_path = /path/to/your/addons,/path/to/common/addons


Ensure that the addons_path includes the path to your custom addons and the path to common addons shared among all instances.

3. Database Configuration:


All instances should connect to the same PostgreSQL database. Configure the dbfilter option in the odoo.conf file for each instance:



[options]

dbfilter = ^your_database_name$


This ensures that each instance only sees its specific database.

4. Handling Concurrent Updates and Data Conflicts:


Odoo handles concurrent updates and data conflicts at the database level through the PostgreSQL database. PostgreSQL supports transactions and ensures data consistency.

5. Handling Sessions and Cache:


Odoo uses a server-side session mechanism. Each Odoo instance maintains its own session. However, shared data like cache and sessions can be managed using external tools:


    Load Balancer:

        Use a load balancer to distribute traffic among multiple Odoo instances.

        Sticky sessions can be configured to make sure requests from the same user are directed to the same Odoo instance.


    Shared Cache:

        If necessary, consider using a shared cache system (e.g., Redis) to store common cache data.


    Session Management:

        Odoo maintains its own session mechanism, but you can configure the load balancer to manage sessions or use an external session management system.


Additional Considerations:


    Filestore:

        If file storage is shared among instances, ensure that the filestore is accessible to all Odoo instances.


    Scheduled Jobs:

        Be cautious with scheduled jobs. Ensure that jobs are distributed among instances or schedule them only on one instance.


    Version Consistency:

        Keep all instances running the same version of Odoo to avoid compatibility issues.


    Logging and Monitoring:

        Set up logging and monitoring to identify issues and track performance.


Remember, while sharing a database among multiple Odoo instances can offer benefits in terms of resource utilization and load balancing, it also introduces complexities in terms of coordination, consistency, and potential conflicts. Always thoroughly test such deployments in a staging environment before deploying in production.

0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
How do I delete a database?
databases
Avatar
Avatar
Avatar
3
set 25
1382
Modules icons are missing after restoring database to another server
databases
Avatar
Avatar
1
mag 22
4999
make database copy for testing
databases
Avatar
Avatar
1
apr 22
7190
Database reinstallation
databases
Avatar
Avatar
2
nov 20
4922
Database Auto Backup Issue
databases
Avatar
1
ago 20
3905
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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