This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
Allow setting nomad resource limits for waypoint server pre_task
#4730
Labels
pre_task
#4730
Is your feature request related to a problem? Please describe.
The
pre_task
for the waypoint server and runner jobs default to 200 MHz CPU and 600 MB memory, without option of specifying their values. This means that I am unable to run waypoint on my small/resource constrained nomad cluster as waypoint would required2*600 MB
for thepre_task
parts of both the runner and server jobs.It is unexpected that the resources required for the server and runner respectively are actually
600 MB + x
and200 MHz + y
when specifyingx
andy
as the memory and CPU values.Describe the solution you'd like
Ability to configure the resources for the
pre_task
part of the waypoint server job when running waypoint install the same way it can be configured for the server and runner jobs with e.g.-nomad-server-cpu
and-nomad-server-memory
Describe alternatives you've considered
Increasing capacity of workers in the nomad cluster.
Explain any additional use-cases
n/a
Additional context
As far as I can tell from the code all the
pre_task
does is runchown
on a folder:waypoint/internal/installutil/nomad/nomad.go
Lines 231 to 254 in e97cd4a
waypoint/internal/installutil/nomad/nomad.go
Lines 16 to 23 in e97cd4a
This seems like a lot of resources to allocate in the
pre_task
to something so simple.The text was updated successfully, but these errors were encountered: