Automated master slave setup

Hi,

We are pondering on a solution for the possibility of automating the master to slave switch over and back. We want to understand if we have had any discussion previously around such ideas. We need some help in discussing the same.

@pradiptakundu @angshuonline @vmalini @tejakancherla @buvaneswariarun