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
@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.
There's also a discussion here that you may be interested in:
https://www.linkedin.com/grp/post/165657-42912805
and a forum post here that you may be interested in as well:
https://www.odoo.com/forum/help-1/question/postgresql-replication-problem-with-pgpool2-and-transient-model-and-binary-field-52325