Skip to content

Commit

Permalink
shared: use real alloc runner in nodesim job
Browse files Browse the repository at this point in the history
Use new flag `-alloc-runner-type` introduced in
hashicorp-forge/nomad-nodesim#24 to spawn real
alloc runners in nodesim, allowing test loads to use the mock driver
with real configuration.

Also bumps memory reservation to account for the additional load.
  • Loading branch information
lgfa29 committed Apr 11, 2024
1 parent 8b23f30 commit 23cc622
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ job "${terraform_job_name}" {
"-node-num=50",
"-work-dir=#{NOMAD_TASK_DIR}",
"-config=#{NOMAD_TASK_DIR}/config.hcl",
"-alloc-runner-type=real",
%{ for addr in terraform_job_servers ~}
"-server-addr=${addr}",
%{ endfor ~}
Expand All @@ -52,7 +53,7 @@ EOH

resources {
cpu = 150
memory = 256
memory = 512
}
}

Expand All @@ -68,6 +69,7 @@ EOH
"-node-num=50",
"-work-dir=#{NOMAD_TASK_DIR}",
"-config=#{NOMAD_TASK_DIR}/config.hcl",
"-alloc-runner-type=real",
%{ for addr in terraform_job_servers ~}
"-server-addr=${addr}",
%{ endfor ~}
Expand All @@ -94,7 +96,7 @@ EOH

resources {
cpu = 150
memory = 256
memory = 512
}
}
}
Expand Down

0 comments on commit 23cc622

Please sign in to comment.