Open nobuto-m opened 1 month ago
On a side note, the raft support is deprecated in patroni upstream as of 3.0.0.
Yes, the raft is not supported upstream, but it is supported and maintained by our Team for all our users (till some point in time).
Looks like the upstream assumes two PostgreSQL nodes and one witness node. So my understanding is running the cluster only with two nodes is not supported.
https://patroni.readthedocs.io/en/latest/yaml_configuration.html#raft-deprecated
Q: It is possible to run Patroni and PostgreSQL only on two nodes?
A: Yes, on the third node you can run patroni_raft_controller (without Patroni and PostgreSQL). In such a setup, one can temporarily lose one node without affecting the primary.
Steps to reproduce
juju deploy postgresql --base ubuntu@22.04 --channel 14/stable -n 2
Expected behavior
It's either:
Actual behavior
Similar topic with https://github.com/canonical/postgresql-operator/issues/566.
Juju status looks okay at a glance. However, the living unit doesn't say which unit is the primary at the moment.
Also, the action states the dead unit is the primary, which shouldn't be.
The patroni's member list cannot be fetched since the quorum of the raft was lost.
On a side note, the raft support is deprecated in patroni upstream as of 3.0.0. https://patroni.readthedocs.io/en/latest/releases.html#version-3-0-0
Versions
Operating system: jammy
Juju CLI: 3.5.3
Juju agent: 3.5.3
Charm revision: 14/stable 429
LXD: N/A
Log output
Juju debug log: model_debug.log
Additional context