hashicorp / hashicorp/nomad

Force Stop Button in Nomad GUI under Allocation Page

Open
#18,633 1 comment 2 reactions 0 assignees View on GitHub
stage/needs-discussion theme/ui type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Proposal
I would like to have a button on this page which allows me to `force stop` a given allocation and task.
Currently, it is possible through CLI:
```bash
nomad alloc signal -task node-exporter 10a70dd4-5bdb-8f12-eda4-faa51e686334
```
![image](https://github.com/hashicorp/nomad/assets/9644409/675fc479-c0de-4f2b-a199-6826f6038776)

### Use-cases
1. It will allow nomal operator to quickly kill a task before waiting for nomad force kill `kill_timeout` to kick in.
* task can be a zombie.
* task is just taking too much and operator is in middle of incident.
* developer want to quickly test something within task realm instead of killing whole job.
* may be a given node is having issue and I want to quickly kill task on that node.

### Attempted Solutions
1. Use CLI
```bash
nomad alloc signal -task node-exporter 10a70dd4-5bdb-8f12-eda4-faa51e686334
```
2. Use nomad node drain feature to send force stop signal to all processes but it comes at a cost that I am losing system jobs which are very crucial for me like system metric / logs/ etc.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Nomad GUI Allocation Page and compare its existing allocation and task controls with the documented `nomad alloc signal -task ...` command. Confirm with maintainers how force stopping one selected task should work without draining the allocation, then verify the GUI exposes that action for the stated use cases.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.