cluster: initialize replicaSet based on discovered hosts.