Connection Migration in case Server Roles are Manually Changed from UI/API
It is required that to change the server role, a manual failover or a mark server offline be explicitly triggered. Changing the status of the server from ONLINE to OFFLINE won't trigger the failover action which gracefully closes server connections and the corresponding client connections are assigned to a queue until the time a new primary is found. This way the client connections are salvaged. Simply changing the status of the server won't achieve this.