I have a cluster like that node1(gtm), node2(gtm-slave), node3(gtm-proxy1, coord1, datanode1)I setup those nodes using pgxc_ctl. I am testing the gtm failover. Here is what I did:
- copy pgxc_ctl.conf from node1 to node2
- shutdown node1
- ssh int node2 and type pgxc_ctl, then type failover gtm
- ssh into node3, and type gtm_ctl reconnect -Z gtm_proxy -D proxydir -o "-s node2 -t 20001"
- try psql it give me error "FATAL: Could not obtain a transaction ID from GTM. The GTM might have failed or lost connectivity"
so I type "stop all" and "init all", looks like it fixed the issue. But I don't think I should need to restart the cluster. Anyone have a suggestions