Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

Multi instance sharing same database

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
architecturedatabases
1 Antworten
6496 Ansichten
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
Verwerfen
Avatar
Nomadoo
Beste Antwort

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
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
How do I delete a database?
databases
Avatar
Avatar
Avatar
3
Sept. 25
1382
Modules icons are missing after restoring database to another server
databases
Avatar
Avatar
1
Mai 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
Aug. 20
3905
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Ausbildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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