我有两台配置有postgres和pgpool的计算机,它们在主/从流复制模式下运行。如预期的那样,复制工作正常。
1. Currently, node 0 is the primary and node 1 is the slave
2. Node 0 goes down and node 1 becomes the primary and the pool status shows
that node 0 is down and node 1 is the primary.
3. After bringing the node 0 up, the status still remains the same which is
expected.
4. So, to change that status , the node is attached back to node 0 which
changes the status of node 0 to up but also it changes the node 0 to primary
and node 1 to secondary which is unexpected.
我试图了解即使主节点仍在运行,节点0为何成为主节点。 感谢您的帮助