Skip to Content
Menu
This question has been flagged
1 Reply
6719 Views

Did someone used pgpool2 with odoo? What are your experience with this middleware?

We setup pgpool2 as a middleware between odoo and postgresql (master-slave, streaming replciation). If we use pgpool the queries are a bit slower. But the big problem is that after some requests the next request is hanging (especially in the lead/opportunity view). In the postgresql activity overview I found out that there is a "idle in ransaction" activity. If I kill this process odoo responds normally. For some reason odoo doesn't close the transaction. So all other queries are waiting for the transaction. If we use the master database directly this problem doesn't occur. Do you have any hints?

Config lines and further informations can be found at http://serverfault.com/questions/694463/pgpool2-stucks-in-idle-in-transaction

Avatar
Discard

@Christoph,

Have you considered sending this out to the community mailing lists:

https://www.odoo.com/groups

I'm sure you're not the only one who's working with pgpool2 and Odoo for streaming replication, and there are a number of very active Odoo experts on the Odoo community mailing lists who I think would definitely be interested in discussing this with you, as well as other options (ie. not pgpool2)..

Here's a discussion I came across on github recently regarding the master branch:

https://github.com/odoo/odoo/issues/5

I've been searching for a solution for a multi-master setup for Odoo, however I haven't found a solution yet. If you do find a solution please post back here with the results, as I for one would be very interested in your setup, and i'm sure there are many others also interested in this.

Best Answer

Pg-bouncer or Pg-Pool-II does not work for Odoo because queries are in transactions.  

You can try the Heimdall Proxy (https://www.heimdalldata.com/odoo). The Heimdall Proxy was specifically designed for Odoo to handle transactions and data consistency. It can support connection pooling, query caching, automated Postgres failover, and Read/Write split with Strong Consistency. Query caching will give you the biggest performance/scale boost. We have seen cache hit rates up to 90% on Odoo.

Avatar
Discard
Related Posts Replies Views Activity
4
May 21
9618
0
Aug 21
2387
0
May 20
2624
1
Jul 24
3496
2
Jan 24
10135