-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to use non-default profiles
* Added no-xattr profile to nnf-dm-config config map to run `dcp --xattrs none` * Having another profile in there makes it easier for int-test * DM controller now looks retrieves the profile specified by dm.spec.profile Copy Offload API does not yet support this Signed-off-by: Blake Devcich <[email protected]>
- Loading branch information
Showing
10 changed files
with
133 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,44 @@ | ||
# Each profile is capable of providing different configurations for data movement. | ||
# Note: For now, only the default profile is supported. | ||
profiles: | ||
|
||
# Default profile that is used for all data movement activity. | ||
default: | ||
# The number of slots specified in the MPI hostfile. A value less than 1 disables the use | ||
# of slots in the hostfile. | ||
slots: 8 | ||
# The number of slots specified in the MPI hostfile. A value less than 1 disables the use | ||
# of slots in the hostfile. | ||
slots: 8 | ||
|
||
# The number of max_slots specified in the MPI hostfile. A value less than 1 disables the use | ||
# of max_slots in the hostfile. | ||
maxSlots: 0 | ||
|
||
# The number of max_slots specified in the MPI hostfile. A value less than 1 disables the use | ||
# of max_slots in the hostfile. | ||
maxSlots: 0 | ||
# The full command to execute data movement. $VARS are replaced by the nnf software. Available | ||
# $VARS: | ||
# HOSTFILE: hostfile that is created and used for mpirun. Contains a list of hosts and the | ||
# slots/max_slots for each host. This hostfile is created at `/tmp/<dm-name>/hostfile` | ||
# UID: User ID that is inherited from the Workflow | ||
# GID: Group ID that is inherited from the Workflow | ||
# SRC: source for the data movement | ||
# DEST destination for the data movement | ||
# default: command: ulimit -n 2048 && mpirun --allow-run-as-root --hostfile $HOSTFILE dcp --progress 1 --uid $UID --gid $GID $SRC $DEST | ||
command: ulimit -n 2048 && mpirun --allow-run-as-root --hostfile $HOSTFILE dcp --progress 1 --uid $UID --gid $GID $SRC $DEST | ||
|
||
# The full command to execute data movement. $VARS are replaced by the nnf software. Available | ||
# $VARS: | ||
# HOSTFILE: hostfile that is created and used for mpirun. Contains a list of hosts and the | ||
# slots/max_slots for each host. This hostfile is created at `/tmp/<dm-name>/hostfile` | ||
# UID: User ID that is inherited from the Workflow | ||
# GID: Group ID that is inherited from the Workflow | ||
# SRC: source for the data movement | ||
# DEST destination for the data movement | ||
# default: command: ulimit -n 2048 && mpirun --allow-run-as-root --hostfile $HOSTFILE dcp --progress 1 --uid $UID --gid $GID $SRC $DEST | ||
command: ulimit -n 2048 && mpirun --allow-run-as-root --hostfile $HOSTFILE dcp --progress 1 --uid $UID --gid $GID $SRC $DEST | ||
# If true, enable the command's stdout to be saved in the log when the command completes | ||
# successfully. On failure, the output is always logged. | ||
logStdout: false | ||
|
||
# If true, enable the command's stdout to be saved in the log when the command completes | ||
# successfully. On failure, the output is always logged. | ||
logStdout: false | ||
# Similar to logStdout, store the command's stdout in Status.Message when the command | ||
# completes successfully. On failure, the output is always stored. | ||
storeStdout: false | ||
|
||
# Similar to logStdout, store the command's stdout in Status.Message when the command | ||
# completes successfully. On failure, the output is always stored. | ||
storeStdout: false | ||
# Same as default profile but tell dcp not to copy xattrs | ||
no-xattr: | ||
slots: 8 | ||
maxSlots: 0 | ||
command: ulimit -n 2048 && mpirun --allow-run-as-root --hostfile $HOSTFILE dcp --progress 1 --xattrs none --uid $UID --gid $GID $SRC $DEST | ||
logStdout: false | ||
storeStdout: false | ||
|
||
# NnfDataMovement resources have the ability to collect and store the progress percentage and the | ||
# last few lines of output in the CommandStatus field. This number is used for the interval to collect | ||
# the progress data. `dcp --progress N` must be included in the data movement command in order for | ||
# progress to be collected. A value less than 1 disables this functionality. | ||
progressIntervalSeconds: 5 | ||
progressIntervalSeconds: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 12 additions & 5 deletions
17
vendor/github.com/NearNodeFlash/nnf-sos/api/v1alpha1/nnf_datamovement_types.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 13 additions & 2 deletions
15
vendor/github.com/NearNodeFlash/nnf-sos/api/v1alpha1/nnf_datamovementmanager_types.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
....com/NearNodeFlash/nnf-sos/config/crd/bases/nnf.cray.hpe.com_nnfdatamovementmanagers.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
.../github.com/NearNodeFlash/nnf-sos/config/crd/bases/nnf.cray.hpe.com_nnfdatamovements.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters