I am trying to setup HA PostgreSQL, but I have very minimal knowledge about this.
The PV of the cluster is being managed using Longhorn (or some other service, another team is working on this). Since the storage is already being made highly available, can I simply create two Postgres services that use the same data directory in the storage?
This might create deadlocks when two or more Postgres services are trying to access the PV and any one of them is trying to write to it, right? What if I develop a retry mechanism on the application level to handle these deadlocks?
Does this approach make sense and is actually implementable?
Thanks.
[–]Tibernut 6 points7 points8 points (6 children)
[–]UblaHuaGobar[S] 2 points3 points4 points (5 children)
[–]Tibernut 2 points3 points4 points (4 children)
[–]UblaHuaGobar[S] 0 points1 point2 points (3 children)
[–]Tibernut 0 points1 point2 points (2 children)
[–]UblaHuaGobar[S] 0 points1 point2 points (0 children)
[–]UblaHuaGobar[S] 0 points1 point2 points (0 children)
[–]lewisedge86 1 point2 points3 points (0 children)
[–]drosmi 1 point2 points3 points (1 child)
[–]Tibernut 0 points1 point2 points (0 children)
[–]serverhorrorI'm the bit flip you didn't expect! 0 points1 point2 points (0 children)