cluster-broccoli icon indicating copy to clipboard operation
cluster-broccoli copied to clipboard

Cluster resource information

Open FRosner opened this issue 9 years ago • 5 comments

Problem

It would be nice to see some more information about resource utilization.

Solution

  • [ ] Individual resources used of each instance on each node
  • [ ] Overall available resources of each node (https://www.nomadproject.io/docs/http/nodes.html / https://www.nomadproject.io/docs/http/node.html)

FRosner avatar Jul 04 '16 15:07 FRosner

Can we better scope what resources we're interested in? Cpu won't work. Also network.

pliguori avatar Aug 21 '16 10:08 pliguori

@pliguori Why will CPU not work? Why will network not work? I wanted to check Atlas before I implement sth. like this.

FRosner avatar Aug 22 '16 07:08 FRosner

@frosner: for CPU, you'd only be able to find out the current percentage of used/available CPU Time. For network, you don't get anything from nomad client stats. ref: https://www.nomadproject.io/docs/http/client-stats.html

pliguori avatar Aug 25 '16 16:08 pliguori

I was trying it out. The problem I see is that the API calls should look like this:

  • [x] 1. GET /v1/agent/members
  • [ ] 2. foreach(member) GET /v1/client/stats

call number 2 would be problematic because in a multi-VLAN deployment you don't have ensured communication to all agents.

pliguori avatar Aug 25 '16 16:08 pliguori

I thought about /v1/node (https://www.nomadproject.io/docs/http/node.html). When you use the CLI and go for nomad node-status you can see the used out of maximum CPU, RAM and Disk for the node.

FRosner avatar Aug 25 '16 16:08 FRosner