forked from aws/aws-parallelcluster-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for external slurmdbd in Slurm configuration (aws#2595)
Use ExternalSlurmdbd to render AccountingStorageHost when defined. Add unit test case to cover external slurmdbd scenario. Adapt other unit tests for Slurm configuration rendering when Slurm Accounting is used. --- Signed-off-by: Jacopo De Amicis <[email protected]>
- Loading branch information
Showing
13 changed files
with
76 additions
and
6 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,3 +87,4 @@ Scheduling: | |
ScaledownIdletime: 10 | ||
EnableMemoryBasedScheduling: false | ||
Database: null | ||
ExternalSlurmdbd: null |
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 |
---|---|---|
|
@@ -89,3 +89,4 @@ Scheduling: | |
ScaledownIdletime: 10 | ||
EnableMemoryBasedScheduling: true | ||
Database: null | ||
ExternalSlurmdbd: null |
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 |
---|---|---|
|
@@ -86,3 +86,4 @@ Scheduling: | |
SlurmSettings: | ||
ScaledownIdletime: 10 | ||
Database: null | ||
ExternalSlurmdbd: null |
18 changes: 18 additions & 0 deletions
18
...urm_config_files_slurm_accounting/expected_outputs/slurm_parallelcluster_externaldbd.conf
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# slurm_parallelcluster.conf is managed by the pcluster processes. | ||
# Do not modify. | ||
# Please use CustomSlurmSettings in the ParallelCluster configuration file to add user-specific slurm configuration | ||
# options | ||
|
||
SlurmctldHost=ip-1-0-0-0(ip.1.0.0.0) | ||
SuspendTime=600 | ||
ResumeTimeout=1600 | ||
SelectTypeParameters=CR_CPU | ||
AccountingStorageType=accounting_storage/slurmdbd | ||
AccountingStorageHost=test.slurmdbd.host | ||
AccountingStoragePort=6819 | ||
AccountingStorageUser=slurm | ||
JobAcctGatherType=jobacct_gather/cgroup | ||
|
||
include <DIR>/pcluster/slurm_parallelcluster_efa_partition.conf | ||
|
||
SuspendExcNodes=efa-st-efa-c5n-[1-1] |
3 changes: 3 additions & 0 deletions
3
...g_files_slurm_accounting/expected_outputs/slurm_parallelcluster_slurmdbd_externaldbd.conf
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# slurm_parallelcluster_slurmdbd.conf is managed by the pcluster processes. | ||
# Do not modify. | ||
# Please add user-specific slurmdbd configuration options in slurmdbd.conf |
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 |
---|---|---|
|
@@ -24,3 +24,4 @@ Scheduling: | |
SlurmSettings: | ||
ScaledownIdletime: 10 | ||
Database: null | ||
ExternalSlurmdbd: null |
27 changes: 27 additions & 0 deletions
27
...generator/test_generate_slurm_config_files_slurm_accounting/sample_input_externaldbd.yaml
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Scheduling: | ||
SlurmQueues: | ||
- CapacityType: ONDEMAND | ||
ComputeResources: | ||
- DisableSimultaneousMultithreading: true | ||
Efa: | ||
Enabled: true | ||
GdrSupport: false | ||
InstanceType: c5n.18xlarge | ||
MaxCount: 5 | ||
MinCount: 1 | ||
Name: efa-c5n | ||
SpotPrice: null | ||
StaticNodePriority: 1 | ||
DynamicNodePriority: 1000 | ||
ComputeSettings: null | ||
CustomActions: null | ||
Iam: | ||
AdditionalIamPolicies: [] | ||
InstanceRole: null | ||
S3Access: null | ||
Name: efa | ||
Scheduler: slurm | ||
SlurmSettings: | ||
ScaledownIdletime: 10 | ||
ExternalSlurmdbd: test.slurmdbd.host | ||
Database: null |
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