Skip to content

Commit

Permalink
Merge pull request #1227 from griznog/docs-parallel-overlay-builds
Browse files Browse the repository at this point in the history
Parallel overlay building examples.
  • Loading branch information
mslacken committed May 24, 2024
2 parents 08b45ed + 5757162 commit 9e96977
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Added

- Add examples for building overlays in parallel to documentation
- Add the ability to boot nodes with `wwid=[interface]`, which replaces
`interface` with the interface MAC address
- Added https://github.com/Masterminds/sprig functions to templates #1030
Expand Down
16 changes: 16 additions & 0 deletions userdocs/contents/overlays.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,22 @@ built. Specific overlays can be selected with ``-O`` flag. For
debugging purposes the templates can be written to a directory given
via the ``-o`` flag.

On clusters with large numbers of nodes a significant speedup can be achieved
by building overlays in parallel. Adding parallel overlay building to `wwctl`
is planned, see issue `#1087 <https://github.com/warewulf/warewulf/issues/1087>`_.
Until parallel overlay building is implemented, builds can be easily done in
parallel with Gnu `parallel` or `xargs`, for example:

.. code-block:: console
# Gnu parallel
wwctl node list | awk '{print $1}' | grep -v "NODE " | parallel -j 12 \
wwctl overlay build -N {}
# xargs
wwctl node list | awk '{print $1}' | grep -v "NODE " | xargs -n 1 -P 12 \
wwctl overlay build -N
By default Warewulf will build/update and cache overlays as needed
(configurable in the ``warewulf.conf``).

Expand Down

0 comments on commit 9e96977

Please sign in to comment.