AA: add tasks_per_node in allocate_node, unclean, ok