Mahmood Ali
40164b3dc6
Use max 3 precision in displaying floats
...
When formating floats in `nomad node status`, use a maximum precision of
3.
2018-12-10 12:18:24 -05:00
Mahmood Ali
a802984c9a
device attributes in nomad node status -verbose
...
This reports device attributes like the following:
```
$ nomad node status -self -verbose
ID = f7adb958-29e1-2a5a-2303-9d61ffaab33a
Name = mars.local
Class = <none>
DC = dc1
Drain = false
Eligibility = eligible
Status = ready
Uptime = 12h40m13s
Drivers
Driver Detected Healthy Message Time
docker true true healthy 2018-12-10T11:47:19-05:00
...
Attributes
cpu.arch = amd64
cpu.frequency = 2200
cpu.modelname = Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
cpu.numcores = 12
...
Device Group Attributes
Device Group = nomad/file/mock
block_device = sda1
filesystem = ext4
size = 63.2 GB
Meta
```
2018-12-10 12:18:24 -05:00
Mahmood Ali
c212716dda
Add NodeResource Device types in api package
2018-11-14 14:42:36 -05:00
Alex Dadgar
e9ddf2c533
parse affinities and constraints on devices
2018-10-11 14:05:19 -07:00
Alex Dadgar
e47ddbdd9f
parse devices
2018-10-08 16:09:41 -07:00
Alex Dadgar
8b9b77dd59
Define device request structs
2018-10-08 15:38:03 -07:00
Fabian Holler
957712c587
revert change to increase min. CPU resource value from 20 to 100
...
In the commit 622d3ddb92
"Fixed test and moved constants into standalone func" the minimum CPU
resource value for a job was increased from 100 to 20.
This can break the nomad setup for people that used lower CPU
values and are at the maximum MHz value of the available CPU on a
machine.
Change the minimum back to 20 MHz to ensure downwards compatibility.
2018-01-02 16:09:44 +01:00
Charlie Voiselle
904d171108
gofmt and goimports
2017-11-13 12:25:02 -05:00
Charlie Voiselle
622d3ddb92
Fixed test and moved constants into standalone func
...
In #3520 , work was done to true up the defaults for Nomad resource
stanzas with the documentation. This fixes the tests that I
accidentally broke in the process. Some questions were raised about
using dynamic elements as part of expects, which is why I opted to
copy the MinResources pattern. During this refactor I also noticed
that structs.go had a similar issue and an inconsistent minium for CPU.
2017-11-13 12:05:30 -05:00
Charlie Voiselle
7c98e466fc
Rolled back documentation change in favor of correcting the default
2017-11-07 17:17:49 -05:00
Alex Dadgar
e0d165812b
Fix api.NetworkResource fields
2017-04-07 18:36:43 -07:00
Alex Dadgar
55e7ad7fd9
Remove defaulting from parse and fix parser tests
...
This PR removes defaulting from the parse, fixes some regressions that
existed as part of the parser refactor and fixes the tests.
2017-02-22 12:30:05 -08:00
Diptanu Choudhury
5502a669e8
Added tests
2017-02-16 13:52:39 -08:00
Diptanu Choudhury
f551dcb83e
Making the job spec return api.Job
2017-02-16 13:52:39 -08:00
Diptanu Choudhury
879c6c665f
Showing Task Resources in alloc status
2016-03-11 14:28:51 -08:00
Diptanu Choudhury
e8236c0081
Fixed the parsing and encoding logic
2015-11-16 13:10:57 -08:00
Chris Bednarski
1b449fd89b
Add dynamic ports to api resources; copy dynamic ports into offer
2015-09-23 18:01:49 -07:00
Armon Dadgar
b81105bd09
Change CPU from float64 to int
2015-09-23 11:14:32 -07:00
Ryan Uber
5d1e515112
api: restructure client
2015-09-09 13:05:27 -07:00