reactive-tech/kubegres

failover promblem of replica

kokorousaki opened this issue · 0 comments

When I disable failover, whether by stopping the primary pod using pg_ctl (simulating a crash) or deleting the pod, a new pod will be created (or restarted) with the same name.
However, when testing the replica pod with the same operation, regardless of the method used, a new pod with a different name is restarted each time, and eventually, a new PVC is also created.
So, is there any way to ensure that after my replica pod goes down, a new pod with the same name as the original one can be restarted?
Thanks.