Commit Graph

67 Commits

Author SHA1 Message Date
Alex Dadgar
d200a835c9 Fix handling of restart in TaskEvents 2016-10-06 15:06:54 -07:00
Alex Dadgar
b976633e4d Start of integration 2016-10-06 15:05:49 -07:00
Alex Dadgar
d49dda45e3 Merge pull request #1713 from hashicorp/f-alloc-runner-vault
Vault integration in client
2016-09-20 16:15:55 -07:00
Alex Dadgar
7f608add4f alloc-status 2016-09-14 18:27:13 -07:00
Alex Dadgar
bec6adb2ee Vault token threaded 2016-09-14 13:30:01 -07:00
Mathias Lafeldt
af2072237d Fix typo in alloc-status output 2016-09-13 17:47:11 +02:00
Mathias Lafeldt
385552ddea Make alloc-status -short work without allocation stats 2016-08-29 17:45:23 +02:00
Cameron Davison
89d3feb420 add Created At to nomad alloc-status 2016-08-18 21:25:32 -05:00
Alex Dadgar
cc4b0ff7c5 Merge pull request #1540 from novilabs/add-creation-time-to-job-status
Add creation time to job status
2016-08-15 21:04:14 -07:00
Kenjiro Nakayama
7d804a41c7 Add test to check both -json and -t are not specified 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
4edc906be4 Support JSON and template data output list when no args specified 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
4a3f63f641 Update help and error message 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
02613e170b Stop using format option and support json and t option 2016-08-09 21:06:20 +09:00
Kenjiro Nakayama
6c694014b4 Support JSON and template format with nomad CLI 2016-08-09 21:06:20 +09:00
Cameron Davison
0b7acd5825 move formatUnixNanoTime into a utility function 2016-08-08 21:24:38 -05:00
Alex Dadgar
590e5e9e9c Merge pull request #1457 from hashicorp/f-kill-event
Add killing event and mark task as not running when killed
2016-07-22 17:33:18 -07:00
Alex Dadgar
7bb0a2336a Add killing event and mark task as not running when killed 2016-07-21 15:49:54 -07:00
Kenjiro Nakayama
d8cf69f627 [tiny] Output MHz to CPU resouces in alloc-status 2016-07-20 19:46:34 +09:00
Sean Chittenden
800d1db732 Improve the error messages when obtaining node and alloc stats 2016-06-17 13:24:10 -07:00
Sean Chittenden
59666bad74 Lump this fix in with gopsutils: guard against errors from stats. 2016-06-17 13:24:10 -07:00
Alex Dadgar
f3c1ef20fe use base 1024 for bytes not 1000 2016-06-12 14:20:39 -07:00
Alex Dadgar
dd444ba869 reworked alloc-status command 2016-06-12 14:08:47 -07:00
Alex Dadgar
fb81caa1bb unify cli output 2016-06-12 13:16:07 -07:00
Alex Dadgar
1a7df4e7d2 Allocation resources returned in a struct 2016-06-11 21:04:10 -07:00
Diptanu Choudhury
d31034941a Not reset-ing the list of pids if they don't change 2016-06-11 01:19:50 +02:00
Diptanu Choudhury
d696284c03 Using humanize to convert memory usage to MB 2016-06-10 22:24:33 +02:00
Diptanu Choudhury
c13e750a02 Calculating the cpu ticks in nomad client 2016-06-10 22:22:32 +02:00
Alex Dadgar
693c8f9e42 Alloc-status only shows measured statistics and fixes to CPU calculations 2016-06-10 10:38:29 -07:00
Diptanu Choudhury
4fc5eedfa7 Moving the stats error to the bottom of alloc status 2016-06-08 12:28:41 -04:00
Diptanu Choudhury
52dd756afe Fixed the formating of % in nomad alloc status 2016-06-08 08:53:33 -04:00
Diptanu Choudhury
cc2b47b939 Indicating which values are percentages 2016-06-06 16:10:34 -07:00
Diptanu Choudhury
7699b68641 Showing task resource usage in alloc status 2016-06-06 16:10:34 -07:00
Alex Dadgar
757bc66321 fix wait result being nil and some panics in the cli 2016-05-31 23:09:05 +00:00
Alex Dadgar
aaac26f486 Merge pull request #1206 from hashicorp/f-eval-status
Introduce eval-status and deprecate eval-monitor
2016-05-31 11:19:44 -07:00
Diptanu Choudhury
6132ccc230 Added pidstats in task resource usage struct 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
50250b1455 Added the nomad stats command 2016-05-28 19:42:34 -07:00
Alex Dadgar
38dbe768e7 Add eval-status and remove eval-monitor 2016-05-27 11:50:15 -07:00
Alex Dadgar
da543308f2 Sort the task resources in alloc-status 2016-04-07 14:55:48 -07:00
Alex Dadgar
3fbe8a1642 node-status -self command and docs 2016-03-29 12:36:24 -07:00
Alex Dadgar
6e779b863e Explain restart decision and display in alloc-status 2016-03-25 12:47:14 -07:00
Alex Dadgar
cd89a97529 Operator specifiable blacklist for task's using certain users 2016-03-24 10:55:14 -07:00
Alex Dadgar
63e172747a Reduce verbosity of alloc-status 2016-03-20 16:52:24 -07:00
Diptanu Choudhury
3fd9aaafea Always defaulting to prefix match 2016-03-17 17:25:38 -07:00
Alex Dadgar
bdc7fdebe1 Download artifacts and remove old code for drivers 2016-03-15 13:28:57 -07:00
Diptanu Choudhury
879c6c665f Showing Task Resources in alloc status 2016-03-11 14:28:51 -08:00
Jake Champlin
9ed3150f6e Cleanup style, and make cleaner 2016-03-07 09:58:35 -05:00
Jake Champlin
35410e1487 Print resource usage w/ alloc-status + node-status
When alloc-status is called, in it's long form only, print the resource
utilization for that single allocation.

When node-status is called, in it's long form only, print the TOTAL
resource utilization that is occurring on that single node.

Nomad Alloc Status:

```
% nomad alloc-status 195d3bf2
ID              = 195d3bf2
Eval ID         = c917e3ee
Name            = example.cache[1]
Node ID         = 1b2520a7
Job ID          = example
Client Status   = running
Evaluated Nodes = 1
Filtered Nodes  = 0
Exhausted Nodes = 0
Allocation Time = 17.73µs
Failures        = 0

==> Task "redis" is "running"
Recent Events:
Time                   Type      Description
04/03/16 21:20:45 EST  Started   Task started by client
04/03/16 21:20:42 EST  Received  Task received by client

==> Status
Allocation "195d3bf2" status "running" (0/1 nodes filtered)
  * Score "1b2520a7-6714-e78d-a8f7-68467dda6db7.binpack" = 1.209464
  * Score "1b2520a7-6714-e78d-a8f7-68467dda6db7.job-anti-affinity" = -10.000000

==> Resources
CPU  MemoryMB  DiskMB  IOPS
500  256       300     0
```

Nomad Node Status:

```
% nomad node-status 57b3a55a
ID         = 57b3a55a
Name       = biscuits
Class      = <none>
DC         = dc1
Drain      = false
Status     = ready
Attributes = arch:amd64, cpu.frequency:3753.458875, cpu.modelname:Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, cpu.numcores:8, cpu.totalcompute:30027.671000, driver.docker:1, driver.docker.version:1.10.2, driver.exec:1, driver.raw_exec:1, hostname:biscuits, kernel.name:linux, kernel.version:4.4.0-9-generic, memory.totalbytes:25208934400, os.name:ubuntu, os.version:16.04, unique.cgroup.mountpoint:/sys/fs/cgroup, unique.network.ip-address:127.0.0.1, unique.storage.bytesfree:219781419008, unique.storage.bytestotal:246059892736, unique.storage.volume:/dev/sdb3

==> Allocations
ID        Eval ID   Job ID   Task Group  Desired Status  Client Status
2c236883  aa11aca8  example  cache       run             running
32f6e3d6  aa11aca8  example  cache       run             running

==> Resource Utilization
CPU   MemoryMB  DiskMB  IOPS
1000  512       600     0
```
2016-03-07 09:58:35 -05:00
Alex Dadgar
e0224b8a35 Refactor task runner to include driver starting into restart policy and add recoverable errors 2016-02-28 16:56:05 -08:00
Diptanu Choudhury
68269b5f39 Formatting time to RFC822 2016-01-27 14:56:17 -08:00
Alex Dadgar
4836bd5656 limit length of string, taking into account its length 2016-01-27 10:42:10 -08:00