Autofailover and pgpool
** Which example are you working with? **
How should this 2 cooperate?Lets assume default configs for pgpool. Pgpool points to 2 services - clustername and clustername-replica.in case we have 3 replicas(all 3 behind replica service) + 1 primary. killing primary - makes pgpool to point all traffic to clustername-replica service as main pod behind clustername was unavailable. but after - autofailover promotes one replica-pod to primary and binds it to clustername service. but pgpool continues to point all traffic to clustername-replica service. direct connect to pod behind clustername service works fine, but connection to pgpool - gives read-only session
What is the current behavior?
see above
What is the expected behavior?
maybe this 2 are contradictory and shouldn't be use as failover simultaneously. or maybe they can cooperate
Other information (e.g. detailed explanation, related issues, etc)
Setting AutofailReplaceReplica: false makes it more weird. Killing primary pod - deletes primary pod service. hiding all 3 replicas behind one pgpool-node
- Operating System:Fedora 29
- Where is this running ( Local , Cloud Provider) Local
- Storage being used (NFS, Hostpath, Gluster, etc): Hostpath
- Container Image Tag: 2.3.0
- PostgreSQL Version: 10.6
- Platform (Docker, Kubernetes, OpenShift): Minishift
- Platform Version: 3.11
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.