Skip to content

Overwrite default-values #15199

Open
Open
@fraenku

Description

@fraenku

Proposal

The restart and reschedule-stanza use some default-values depending on the type of the job (service, batch, etc).
The default service and system job restart policy is for example
restart { interval = "30m" attempts = 2 delay = "15s" mode = "fail" }
These default values are senseful in a lot of cases, but they may vary depending of the kind of jobs (critical jobs or experimental jobs) and the environment (testing, preprod, prod). Therefore it would be an interesting feature to have the possibility to overwrite these values.

Probably it would make sense for also other stanzas as well.

Use-cases

In Europe 'Energy' is quite an issue at the moment:
A lot of countries are afraid of not having enough energy (oil, gaz, elecricity) during the winter season.
Therefore a lot of companies/countries/household are thinking of ways to save energy.
In IT one way to save elecrtricty is to spare using resources like CPU. Therefore it could be interesting to have a reschedule-stanza with default-values unlimited = 'false' instead of unlimited = 'true'. This however is not possible today. The only possibility to change it, is to adapt all job-specification which can be quite rather laborious depending on the number of jobs a cluster is handling.

Attempted Solutions

Having default-values set in one of the configuration-files of nomad (/etc/nomad.d), for examle
restart { interval = "30m" attempts = 1 delay = "15s" mode = "fail" }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Roadmapping

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions