hashicorp / hashicorp/nomad

check_restart with a ignore fails pahse

Open
#16,441 2 comments 0 reactions 0 assignees View on GitHub
stage/needs-investigation theme/jobspec theme/service-discovery type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Proposal
Actutally if we define a check_restart in a service or check definition, the only way to overlap the start or restart phase of an allocation is to set a grace time.

This works so far so good but makes the allocation unavailiable during this grace time. Escpacially this increase the boot time of the cluster.

Is it possible to make checks during the grace time as defined in checks' interval defintion and ignore failures but mark the service as available if the check is positive during the grace time ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how check_restart, service or check definitions, grace time, and check intervals interact during an allocation's start or restart phase. Clarify the desired state transitions and failure-handling rules, then verify that checks during grace time can mark a service available without making the allocation unavailable when a check fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.