<div dir="ltr"><div>Correction - rather than change "this-server-name" I swap the primary/backup role in the peers list.</div><div>I couldn't find a way to do that via API without replacing the entire configuration via config-set.</div><div><br></div><div>Thanks folks, --dmr<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 2, 2022 at 9:53 AM David Ramsey <<a href="mailto:dmr@ramseyfamily.org">dmr@ramseyfamily.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>We are concerned about losing heartbeats between distant servers and encountering a "split brain" scenario, so we are considering a more manual failover using the passive-backup mode of HA.<br></div><div><br></div><div>What is the best practice for promoting a backup server to active? Docs simply say that it "requires manual intervention from the administrator".</div><div><br></div><div>I can't seem to find a native API mechanism for this. The best way I can think of seems to be ensuring that the primary can't come back online and then changing the passive-backup server's "this-server-name" to BE the primary.<br></div><div><br></div><div>This seems like a kludge. How are others doing this?</div><div><br></div><div>Thanks! --dmr<br></div></div>
</blockquote></div>