Skip to content

Commit

Permalink
Configure External Slurmdbd Host and Port in cookbook
Browse files Browse the repository at this point in the history
Adapt External Slurmdbd configuration on the PC cluster side
to the Host and Port subparameter of the ExternalSlurmdbd
schema.

Adapt unit tests accordingly.

Signed-off-by: Jacopo De Amicis <jdamicis@amazon.it>
  • Loading branch information
jdeamicis committed Feb 5, 2024
1 parent 9394fab commit cdce680
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ SelectTypeParameters=CR_CPU
{# #}AccountingStorageType=accounting_storage/slurmdbd
{# #}{% if scaling_config.Database.Uri is defined %}
{# #}AccountingStorageHost={{ head_node_config.head_node_hostname }}
{# #}{% elif scaling_config.ExternalSlurmdbd != None %}
{# #}AccountingStorageHost={{ scaling_config.ExternalSlurmdbd }}
{# #}AccountingStoragePort=6819
{# #}{% elif scaling_config.ExternalSlurmdbd.Host is defined %}
{# #}AccountingStorageHost={{ scaling_config.ExternalSlurmdbd.Host }}
{# #}AccountingStoragePort={{ scaling_config.ExternalSlurmdbd.Port }}
{# #}{% endif %}
{# #}AccountingStoragePort=6819
{# #}AccountingStorageUser={{ slurmdbd_user }}
{# #}JobAcctGatherType=jobacct_gather/cgroup
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ResumeTimeout=1600
SelectTypeParameters=CR_CPU
AccountingStorageType=accounting_storage/slurmdbd
AccountingStorageHost=test.slurmdbd.host
AccountingStoragePort=6819
AccountingStoragePort=12345
AccountingStorageUser=slurm
JobAcctGatherType=jobacct_gather/cgroup

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ Scheduling:
Scheduler: slurm
SlurmSettings:
ScaledownIdletime: 10
ExternalSlurmdbd: test.slurmdbd.host
ExternalSlurmdbd:
Host: test.slurmdbd.host
Port: 12345
Database: null

0 comments on commit cdce680

Please sign in to comment.