Commit 7ba8f98
cmd: support addition of node 0 brokers in flux-batch/alloc
Problem: For subinstances of Flux with large node counts, it may be
useful to launch an extra set of brokers on node 0 of the allocation
to assist with handling message distribution, but there's no easy
way for users to request that in flux-alloc and flux-batch.
Add a new `--add-brokers=N` option to `flux alloc` and `flux batch`
which requests that `N` extra brokers be started on node 0 of the
allocation. The option is hidden and undocumented for now in case
a better solution is implemented in the future. The `--add-brokers`
option is only available when a number of nodes is explicitly requested
with `-N, --nodes`.
The `--add-brokers` option adjusts the job's taskmap to force extra
brokers onto the first allocated node and automatically excludes the
extra ranks to ensure their resources are not available for scheduling.
The jobspec is also updated to reflect the updated task count.1 parent 221eb5f commit 7ba8f98
1 file changed
+33
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1661 | 1661 | | |
1662 | 1662 | | |
1663 | 1663 | | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
1664 | 1667 | | |
1665 | 1668 | | |
1666 | 1669 | | |
| |||
1739 | 1742 | | |
1740 | 1743 | | |
1741 | 1744 | | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1742 | 1764 | | |
1743 | 1765 | | |
1744 | | - | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
0 commit comments