hashicorp / hashicorp/nomad

UI doesn't report reserved resources correctly (cpu and memory)

Open
#8,694 5 comments 5 reactions 0 assignees View on GitHub
stage/needs-investigation theme/ui type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Hi folks,

Related to our mistake in #8689, after fixing the memory reserved to be 50% of the node, the client in the UI will still report the full memory and CPU.

The VM has 985 MiB of memory, using the following `reserved` params:

```json
"reserved": {
"memory": 493,
"cpu": 259
},
```

Nomad UI:

![Screen Shot 2020-08-19 at 11 08 57](https://user-images.githubusercontent.com/1475276/90673405-8d84d880-e20c-11ea-962a-515bfffa46fe.png)

Trying to schedule a job with 512 MiB of memory fails **as expected** (so we got the reserved logic right 🤟 ):

```
==> Evaluation "f4037bba" finished with status "complete" but failed to place all allocations:
Task Group "httpbin" (failed to place 1 allocation):
* Resources exhausted on 1 nodes
* Dimension "memory" exhausted on 1 nodes
Evaluation "19e8bfe9" waiting for additional capacity to place remainder
```

@jrasell I'm fairly confident this is misleading.

Let us know, cheers!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Nomad UI report with the 985 MiB node and the reserved CPU and memory values from the issue, then trace the UI's resource display. Compare the displayed totals with the scheduling behavior described in the issue. Done means the UI reports resource capacity consistently with the reserved values while the existing scheduling behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.