James Rasell
ee92bf86d8
Add NodeName to the alloc/job status outputs.
...
Currently when operators need to log onto a machine where an alloc
is running they will need to perform both an alloc/job status
call and then a call to discover the node name from the node list.
This updates both the job status and alloc status output to include
the node name within the information to make operator use easier.
Closes #2359
Cloess #1180
2019-04-10 10:34:10 -05:00
Mahmood Ali
b5c20aa50b
Track Basic Memory Usage as reported by cgroups
...
Track current memory usage, `memory.usage_in_bytes`, in addition to
`memory.max_memory_usage_in_bytes` and friends. This number is closer
what Docker reports.
Related to https://github.com/hashicorp/nomad/issues/5165 .
2019-01-14 18:47:52 -05:00
Alex Dadgar
0953d913ed
Deprecate IOPS
...
IOPS have been modelled as a resource since Nomad 0.1 but has never
actually been detected and there is no plan in the short term to add
detection. This is because IOPS is a bit simplistic of a unit to define
the performance requirements from the underlying storage system. In its
current state it adds unnecessary confusion and can be removed without
impacting any users. This PR leaves IOPS defined at the jobspec parsing
level and in the api/ resources since these are the two public uses of
the field. These should be considered deprecated and only exist to allow
users to stop using them during the Nomad 0.9.x release. In the future,
there should be no expectation that the field will exist.
2018-12-06 15:09:26 -08:00
Mahmood Ali
551a13b7b6
show Device Stats header in alloc status
2018-11-16 17:34:37 -05:00
Mahmood Ali
17eb416df7
tweak whitespace in device stats output
2018-11-16 10:37:39 -05:00
Mahmood Ali
4f18086d35
Display device stats in nomad alloc status
2018-11-16 10:26:32 -05:00
Alex Dadgar
a62e412b88
Refactor - wip
2018-06-12 10:23:45 -07:00
Alex Dadgar
8be599af94
Mark canaries on creation, and unmark on promotion
2018-05-07 14:50:01 -05:00
Nick Ethier
45b0ce9177
command: improve help text when invalid arguments are given
2018-04-18 12:02:11 -04:00
Michael Schurter
1b1a8d44fd
cli: remove outdated hints
...
Hints no longer apply in the 0.8 Node RPC world.
2018-04-09 12:09:47 -07:00
Alex Dadgar
c7fc6571d8
use subcommands
2018-03-21 20:27:32 -07:00
Preetha Appan
55d17cf26f
Hide the number of reschedule attempts for unlimited rescheduling
2018-03-19 18:06:15 -05:00
Preetha Appan
2ab03a13e0
fix method comment
2018-03-14 16:10:32 -05:00
Preetha Appan
69c4a58c34
Show reschedule eligibility time in alloc-status when followup evalid is available
2018-03-14 16:10:32 -05:00
Josh Soref
e1eb3e4684
spelling: sanitize
2018-03-11 18:52:59 +00:00
Preetha Appan
953d5d9df3
Code review feedback
2018-01-31 09:58:05 -06:00
Preetha Appan
d047a24867
Always show reschedule tracking and next alloc id in alloc status
2018-01-31 09:58:05 -06:00
Preetha Appan
421533341d
Show info about remaining reschedule attempts relative to alloc modify time
2018-01-31 09:58:05 -06:00
Preetha Appan
ca83498e90
Show some information about rescheduling in alloc-status cli
2018-01-31 09:58:05 -06:00
Preetha Appan
4e307587f0
Fixes bug with display message logic due to deprecating GenericSource. Also added more test cases to cover a bunch more edge cases
2017-11-13 11:14:57 -06:00
Preetha Appan
b3631f3d32
Remove event GenericSource, and address other code review comments. Also added deprecation info in comments.
2017-11-03 10:10:06 -05:00
Preetha Appan
6bc2553eb7
Address some code review comments
2017-11-03 09:13:01 -05:00
Preetha Appan
d63e693679
Move logic for determinic event display message to task_runner, added two new fields DisplayMessage and Details.
2017-11-03 09:13:01 -05:00
Preetha Appan
33475d169a
New pretty printer that imitates the short form from time.Duration.String() with approximated values for days and beyond. Used in cli output for allocation create/modify times
2017-11-01 15:16:38 -05:00
Preetha Appan
92fcff3989
Adds modify time to job/alloc status CLI output, and pretty prints
2017-11-01 15:13:48 -05:00
Alex Dadgar
a9e3a41407
Enable more linters
2017-09-26 15:26:33 -07:00
Alex Dadgar
c85e8aa02f
Merge pull request #3127 from hashicorp/b-tls-api
...
Fix TLSServerName for Node API Client
2017-08-29 16:10:58 -07:00
Alex Dadgar
5d65af523d
Check for errors initializing client for autocomplete
2017-08-29 14:29:32 -07:00
Alex Dadgar
b86e05b4a0
use helper
2017-08-29 10:04:02 -07:00
Alex Dadgar
0852c0ab3a
status commands handle uuid prefixes with hyphens
2017-08-29 09:43:28 -07:00
Alex Dadgar
ce3c316592
don't limit on one arg
2017-08-28 13:40:04 -07:00
Alex Dadgar
85a1899dfa
Reduce startup time on Mac
...
This PR moves creating the API client into the returned predict
function. The creation of the client causes a lookup of all the system
certificates and doing that for each command on mac was extremely slow.
2017-08-28 11:29:27 -07:00
Alex Dadgar
4d97b302a0
Search respects QueryOptions and returns QueryMeta
...
@chelseakomlo heads up on this change
2017-08-27 22:17:51 -07:00
Chelsea Holland Komlo
ac7669e90a
small fixes and cleanup
2017-08-23 23:04:47 +00:00
Chelsea Holland Komlo
335cf888b0
use PredictAnything when an flag accepts an argument
2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
c1e5c7132a
enable autocompletion of flags
2017-08-23 22:57:07 +00:00
Alex Dadgar
d493797b49
move autocomplete functions to top for consistency of placement
2017-08-22 13:41:42 -07:00
Chelsea Holland Komlo
ca6562adbd
tab completion should only happen once
2017-08-16 17:04:47 +00:00
Chelsea Holland Komlo
3319fb5822
fixups from code review
2017-08-14 17:56:03 +00:00
Chelsea Holland Komlo
4edc38d5c2
using contexts constants in replace of string contexts
...
fix up endpoints
2017-08-14 17:38:10 +00:00
Chelsea Holland Komlo
01b3338b71
use constants for contexts
2017-08-14 17:38:10 +00:00
Chelsea Holland Komlo
7c5ef641c1
change endpoint to /v1/search
2017-08-14 17:38:10 +00:00
Chelsea Holland Komlo
787f7bc0c4
rename to cluster search
...
comment updates
2017-08-14 17:36:14 +00:00
Chelsea Holland Komlo
34bb3d36bd
autocomplete for allocation ids
2017-08-14 17:35:35 +00:00
Alex Dadgar
43d2c425d1
Emit generic task events
2017-08-07 21:26:04 -07:00
Alex Dadgar
aa05302ed8
Ensure backwards compatibility between 0.6.X CLI and 0.5.X
...
This PR goes through the CLI commands and ensures that a 0.6.X cli
gracefully handles interacting with a 0.5.X Nomad Agent.
Fixes https://github.com/hashicorp/nomad/issues/2918
2017-07-28 10:20:47 -07:00
Alex Dadgar
e1c631064a
@jippi Changed my mind! Good suggestion
2017-07-07 12:12:48 -07:00
Alex Dadgar
e5d8c0888f
alloc-status
2017-07-07 12:12:48 -07:00
Alex Dadgar
c5b1e2dcc1
alloc-list shows version
2017-07-07 12:12:48 -07:00
Alex Dadgar
468c886282
Formatting abilities
2017-07-07 12:07:07 -07:00