elect primary or secondary shard for unassigned shards