The following function enables you to configure which member of a single-primary replication group is the primary.
Appoints a specific member of the group as the new primary, overriding any election process. Pass in
member_uuidwhich is the
server_uuidof the member that you want to become the new primary. Must be issued on a member of a replication group running in single-primary mode.
A string containing the result of the operation, for example whether it was successful or not.
For more information, see Section 22.214.171.124, “Changing a Group's Primary Member”