Allow Configurable Allocation GC Threshold #13632
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/config
type/enhancement
Currently the Nomad config offers several
*_gc_threshold
options which allow users to prevent various items in the raft state from being garbage collected after they enter a terminal state for a limited duration. This feature has been valuable when debugging failed jobs or deployments since they will remain visible even if a GC is ran.A similar config option for allocations would be useful for debugging failed allocations. Currently it appears that allocations are marked eligible for GC as soon as they enter a terminal state.
Proposal
I propose the addition of an
alloc_gc_threshold
config option that allows allocations to be immune from garbage collection for the specified duration after they enter a terminal state.Attempted Solutions
I am currently unaware of a workaround, but would be interested in any recommendations!
The text was updated successfully, but these errors were encountered: