18b581656d
This commit updates the API to pass the MemoryMaxMB field, and the CLI to show the max set for the task. Also, start parsing the MemoryMaxMB in hcl2, as it's set by tags. A sample CLI output; note the additional `Max: ` for "task": ``` $ nomad alloc status 96fbeb0b ID = 96fbeb0b-a0b3-aa95-62bf-b8a39492fd5c [...] Task "cgroup-fetcher" is "running" Task Resources CPU Memory Disk Addresses 0/500 MHz 32 MiB/20 MiB 300 MiB Task Events: [...] Task "task" is "running" Task Resources CPU Memory Disk Addresses 0/500 MHz 176 KiB/20 MiB 300 MiB Max: 30 MiB Task Events: [...] ``` |
||
---|---|---|
.. | ||
contexts | ||
acl.go | ||
agent.go | ||
allocations.go | ||
api.go | ||
constraint.go | ||
csi.go | ||
deployments.go | ||
evaluations.go | ||
event_stream.go | ||
fs.go | ||
go.mod | ||
go.sum | ||
ioutil.go | ||
jobs.go | ||
namespace.go | ||
nodes.go | ||
operator.go | ||
operator_autopilot.go | ||
operator_metrics.go | ||
quota.go | ||
raw.go | ||
recommendations.go | ||
regions.go | ||
resources.go | ||
scaling.go | ||
search.go | ||
sentinel.go | ||
services.go | ||
status.go | ||
system.go | ||
tasks.go | ||
utils.go |