generate node assignments for cluster