move master address computation to the cluster monitor