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

Odoo and pgcat pooler with Multi-threaded runtime

Iscriviti

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

La domanda è stata contrassegnata
postgresqlpoolpooleLoadBalancerloadbalancer
1 Rispondi
5742 Visualizzazioni
Avatar
Edgar Ortigoza

Hello, do someone has already installed odoo with pgcat ?

the repository is on github  postgresml/pgcat

Pgcat is a PostgreSQL pooler and proxy (like pgbouncer) with support for sharding, load balancing, failover and mirroring, with  Multi-threaded runtime

The big benefit of PgCat is multi-threaded. If you use pgbouncer at scale, you very likely have run into the problem that pgbouncer is ultimately a single-threaded asynchronous connection based pooler.

It is pretty good at handling a lot of connections, but if you have a lot of activities for individual connections, that's where you'll run into bottlenecks.  PgCat don't have this issue.


I have tried it with success (work very well), my config is in the comment below.

The dev version usually has some errors with odoo, the version that currently works for me is 1.1.1 and 1.1.0



some features

FeatureStatusComments
Transaction poolingStableIdentical to PgBouncer with notable improvements for handling bad clients and abandoned transactions.
Session poolingStableIdentical to PgBouncer.
Multi-threaded runtimeStableUsing Tokio asynchronous runtime, the pooler takes advantage of multicore machines.
Load balancing of read queriesStableQueries are automatically load balanced between replicas and the primary.
FailoverStableQueries are automatically rerouted around broken replicas, validated by regular health checks.
Admin database statisticsStablePooler statistics and administration via the pgbouncer and pgcat databases.
Prometheus statisticsStableStatistics are reported via a HTTP endpoint for Prometheus.
SSL/TLSStableClients can connect to the pooler using TLS. Pooler can connect to Postgres servers using TLS.
Client/Server authenticationStableClients can connect using MD5 authentication, supported by libpq and all Postgres client drivers. PgCat can connect to Postgres using MD5 and SCRAM-SHA-256.
Live configuration reloadingStableIdentical to PgBouncer; all settings can be reloaded dynamically (except host and port).
Auth passthroughStableMD5 password authentication can be configured to use an auth_query so no cleartext passwords are needed in the config file.
Sharding using extended SQL syntaxExperimentalClients can dynamically configure the pooler to route queries to specific shards.
Sharding using comments parsing/RegexExperimentalClients can include shard information (sharding key, shard ID) in the query comments.
Automatic shardingExperimentalPgCat can parse queries, detect sharding keys automatically, and route queries to the correct shard.
MirroringExperimentalMirror queries between multiple databases in order to test servers with realistic production traffic.


0
Avatar
Abbandona
Edgar Ortigoza
Autore

THIS CONFIG WORK FOR ME with docker container pgcat 1.1.1 and postgres installed in the host
# in postgresql.conf use
listen_addresses = '*'
# and in pg_hba.conf
host all all 172.19.0.0/16 md5

#################################################
[general]

host = "172.19.0.250" # or "0.0.0.0" ip for client login
port = 6431 # port for client login

worker_threads = 10
autoreload = 15000
server_tls = false
verify_server_certificate = false
#statement_timeout = 0
idle_client_in_transaction_timeout = 0 # milliseconds
# How long to wait before aborting a server connection (ms).
connect_timeout = 5000 # milliseconds
# How long an idle connection with a server is left open (ms).
idle_timeout = 30000 # milliseconds

# Admin like postgres
admin_username = "odoo"
admin_password = "SecurePasswd"

[pools.odoo.users.1] # [pools.database.users.(user_index)] this case is user 1
username = "odoo"
password = "SecurePasswd"
pool_size = 100
pool_mode = "transaction"
[pools.odoo.shards.0] # [pools.database.shards.(shard_id)] this case I use 0 for my localhost
servers = [
["172.19.0.1", 5432, "primary"]]
database = "odoo"

[pools.database1.users.1] # user 1
username = "odoo"
password = "SecurePasswd"
pool_size = 100
pool_mode = "transaction"
[pools.database1.shards.0]
servers = [
["172.19.0.1", 5432, "primary"]]
database = "database1"

[pools.database2.users.2] # for user 2
username = "user2"
password = "SecurePasswd"
pool_size = 100
pool_mode = "transaction"
[pools.database2.shards.0] # id for localhost
servers = [
["172.19.0.1", 5432, "primary"]]
database = "database2"

[pools.database3.users.2] # user 2
username = "user2"
password = "SecurePasswd"
pool_size = 100
pool_mode = "transaction"
[pools.database3.shards.0]
servers = [
["172.19.0.1", 5432, "primary"]]
database = "database3"

[pools.database4.users.3] # user 3
username = "user3"
password = "SecurePasswd"
pool_size = 100
pool_mode = "transaction"
[pools.database4.shards.0]
servers = [
["172.19.0.1", 5432, "primary"]]
database = "database4"
###################################################

Edgar Ortigoza
Autore

New version of pgcat 1.2.0 work nice
my config
THIS CONFIG WORK FOR ME pgcat 1.2.0 in the host and postgres installed in the host
# in postgresql.conf use
listen_addresses = '127.0.0.1'
# and in pg_hba.conf
host all all 127.0.0.1/32 md5

for docker
host = "172.19.0.1" # custom docker network ip for client login
port = 8431 # port for client login

Avatar
Edgar Ortigoza
Autore Risposta migliore
  1. Install Rust (latest stable will work great)
  2. cargo build --release  
  3. Change the config in pgcat.toml to fit your setup 
  4. #################################################

[general]


host = "172.19.0.250" # this is custom network for docker or "172.19.0.1" ip pgcat instaled in the host

port = 6431 # custom port for client login

worker_threads = 10

autoreload = 15000

server_tls = false

verify_server_certificate = false

#statement_timeout = 0

idle_client_in_transaction_timeout = 0 # milliseconds

# How long to wait before aborting a server connection (ms).

connect_timeout = 5000 # milliseconds

# How long an idle connection with a server is left open (ms).

idle_timeout = 30000 # milliseconds

# Admin like postgres

admin_username = "postgres"   # or other user with superuser role

admin_password = "SecurePasswd"



[pools.odoo.users.1] # [pools.database.users.(user_index)] this case is user 1

username = "odoo"

password = "SecurePasswd"

pool_size = 100

pool_mode = "transaction"

[pools.odoo.shards.0] # [pools.database.shards.(shard_id)] this case I use 0 for my localhost

servers = [

["127.0.0.1", 5432, "primary"]]

database = "odoo"



[pools.database1.users.1] # user 1

username = "odoo"

password = "SecurePasswd"

pool_size = 100

pool_mode = "transaction"

[pools.database1.shards.0]

servers = [

["127.0.0.1", 5432, "primary"]]

database = "database1"



[pools.database2.users.2] # for user 2

username = "user2"

password = "SecurePasswd"

pool_size = 100

pool_mode = "transaction"

[pools.database2.shards.0] # id for localhost

servers = [

["127.0.0.1", 5432, "primary"]]

database = "database2"



[pools.database3.users.2] # user 2

username = "user2"

password = "SecurePasswd"

pool_size = 100

pool_mode = "transaction"

[pools.database3.shards.0]

servers = [

["127.0.0.1", 5432, "primary"]]

database = "database3"



[pools.database4.users.3] # user 3

username = "user3"

password = "SecurePasswd"

pool_size = 100

pool_mode = "transaction"

[pools.database4.shards.0]

servers = [

["127.0.0.1", 5432, "primary"]]

database = "database4"


###################################################



New version of pgcat 1.2.0 work nice

my config with pgcat installed in the host with postgres in the host

# in postgresql.conf use

listen_addresses = '127.0.0.1'

# and in pg_hba.conf

host all all 127.0.0.1/32 md5

for docker

host = "172.19.0.1" # custom docker network ip for client login

port = 8431 # port for client login

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à
When Odoo 14 connects to PostgreSQL 15.7, the connection is idle but cannot be released
postgresql
Avatar
0
feb 25
3033
psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: fe_sendauth: no password supplied
postgresql
Avatar
Avatar
Avatar
2
gen 25
10374
Odoo backend to Google Data Studio Risolto
postgresql
Avatar
Avatar
2
gen 24
10140
Reason why Odoo being slow when there is huge data inside the database
postgresql
Avatar
Avatar
Avatar
Avatar
7
gen 24
51261
Postgresql db connection failing often and causing http 500 error Odoo v11
postgresql
Avatar
0
mar 23
3001
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