zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.29k stars 974 forks source link

Use raft from patroni #1847

Open pierreozoux opened 2 years ago

pierreozoux commented 2 years ago

Please, answer some short questions which should help us to understand your problem / question better?

We just read the changelog of patroni 2.0.0 and in the context of the issue when k8s api goes down, we are quiet interested about the new raft algo embeded in patroni.

We are wondering if it is on your roadmap? And/or if you would accept PR on this sense?

Thanks a lot for your work, we love this operator :heart:

Cheers!

CyberDem0n commented 2 years ago

I would say that the raft support isn't stable enough for production. You'll probably get more problems with it than with K8s API. Also please keep in mind that there is no "hybrid" mode, where Patroni switches to the raft if K8s API isn't accessible.

Last, but not least, with raft one MUST always run more than two pods, and if two pods out of three somehow are down - the master will still go to a read-only.